summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2012-10-05 08:18:10 +0000
committerDirkjan Ochtman <djc@gentoo.org>2012-10-05 08:18:10 +0000
commitbfbafdab0c83ffe38c1985fd6b4351116d5bb339 (patch)
treec41a13fdda5bb132bc92b3f19f66635fc69c447c /dev-lang/erlang
parentUpdate pkgcore dependency. (diff)
downloadhistorical-bfbafdab0c83ffe38c1985fd6b4351116d5bb339.tar.gz
historical-bfbafdab0c83ffe38c1985fd6b4351116d5bb339.tar.bz2
historical-bfbafdab0c83ffe38c1985fd6b4351116d5bb339.zip
Version bump erlang to 15.2.2.
Package-Manager: portage-2.1.11.23/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/erlang')
-rw-r--r--dev-lang/erlang/ChangeLog8
-rw-r--r--dev-lang/erlang/Manifest16
-rw-r--r--dev-lang/erlang/erlang-15.2.2.ebuild176
3 files changed, 198 insertions, 2 deletions
diff --git a/dev-lang/erlang/ChangeLog b/dev-lang/erlang/ChangeLog
index f6a5b129e1b7..039d3237c2fe 100644
--- a/dev-lang/erlang/ChangeLog
+++ b/dev-lang/erlang/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/erlang
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.221 2012/06/17 17:49:57 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.222 2012/10/05 08:18:10 djc Exp $
+
+*erlang-15.2.2 (05 Oct 2012)
+
+ 05 Oct 2012; Dirkjan Ochtman <djc@gentoo.org> +erlang-15.2.2.ebuild:
+ Version bump to 15.2.2, fix bugs 434870, 434832, 434150 (thanks to
+ billiob@gmail.com).
17 Jun 2012; Raúl Porcel <armin76@gentoo.org> erlang-15.2.ebuild:
alpha/sparc stable wrt #413825
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest
index accca4854e99..d4f15f012076 100644
--- a/dev-lang/erlang/Manifest
+++ b/dev-lang/erlang/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX 50erlang-gentoo.el 134 SHA256 97e1da82cae31a554134d7370739520e4c67b2544e5a13f887651a62e710b4d4 SHA512 7a862e0ef1e96e88a484e80aeb92eb4465c7e8661efb0291c28abc13225eb3aa69442fe29417f5ad0d264e54399d645d9cd4713bc9869b48e87a91e50b9b2473 WHIRLPOOL 6080f0f76c90f2e5f4577e8a6fc6dd046fc671078eda215c5bd33138aad61c2f2dfc585372966b65fcca24a46df0921a3fd2c4af02c68ef02f2fff443336c702
AUX epmd.init 515 SHA256 d60df142ee0e47e9d55f543effe99b057dbf763586cadffb05a82ce74edeb494 SHA512 f99d27cabafe1207a892624393f70f88222da3ad60ae245f4b2a83fc170be97191e18268f03beea49cabd88a0962202bc78b6902e55b3f29fd0cc87374ec46af WHIRLPOOL 6ff4a1b797f00d604657f9fc5ac96d3215405c2fe5b7b209aaf2d109fb7f4e5c5ddeedbc296e8b9071e10b23c44f1b6fedd8813631f5eb7e944b81202f7a4533
AUX erlang-14.2.2-interface.patch 288 SHA256 05caa069eef56fa6cab7d076c8b5bba05f9b893ca3475bb9d9a4f6d80b722c32 SHA512 fdf74c4dce9d76a4741b8052a7c61b65a70c46ef6cd407bf812171311833dfa6aa3840d62640364b74bb5b2c351b43fd4fa3ad0f4c5bd68a49c534ee6a1ca61a WHIRLPOOL a8dfb36acda49e8bc5692631aa83cfab1856b2aa2b6647bbe6ed3289fc8b09daef88fe962cf661c26999157d7fecf7cc7319338c1dd3cb1a8fac7f949888c942
@@ -5,17 +8,28 @@ DIST otp_doc_html_R13B04.tar.gz 27440785 SHA256 fdad0db55ab9339703e7cd61626b5cca
DIST otp_doc_html_R14B04.tar.gz 28816088 SHA256 3b066d23d82667e2d0477856b22ea94262d65baf7366babe1c10d8bddc28ab5a SHA512 412afa4680216ed0e1405f2e439c35d5bfa98f66fea81bcb8ae825c034c095b2868df8833e089f0dde2be20c5f9175f0526098877703b38bc67af5803eec973d WHIRLPOOL 05515c5079544855f25655e200236f3bf5ccdf013b22c5bc13d00b03d63a0aa90487fe05b9edbaa8e33217d7c15306ea3c1a4f6b5be0c363383c8cbeea845c6b
DIST otp_doc_html_R15B.tar.gz 28996680 SHA256 40504ad983b450a2c6f7611b3be88ebd6349079764520cca050e9c8f6e79dc93 SHA512 ddb6c143c9eb315d9bc2672e96dd91b33e011825fe340ee34a42341eb8f519381e87e77ef5252e35f8dcb21804e03ccb22d9b06b4c64fb3e08f001790b98bb5a WHIRLPOOL b9a6a0a9371e1b898b3e99a76d70447d481fcb89fd9e8d8bd32c53c714610bc6b8c9fc599aa059927c336b46168d4be216e8fc3be91ba17fdeda6ec74d04b1bb
DIST otp_doc_html_R15B01.tar.gz 30235738 SHA256 0b6eb18855b451882ff5be07d3c25b497b256ead14d6be98791bf056b958a8e7 SHA512 f531a9e9b65e1eaf47727569dafbc9da19d6f2064be14abc5598218345b5a15b82813f997c9a636115de6e59b65c09c31a411560d7eeacb5be8a06ac36a0f604 WHIRLPOOL 173c612e30e693b98469965a61996a454e2e2c801a1de238fcc76e36fdd29a37edb377db507b865b9ff1bfa975f3aa6d1d8d64f975c81885d6123615a22da2d3
+DIST otp_doc_html_R15B02.tar.gz 30385932 SHA256 be166976a651da4ea2588b9d277a6684a2d4318b37e8fc029365e992ec404518 SHA512 5cb08b0e13e621738f4b4c44376eaf728593a0e2288ecf5b0c8d47c237ca9549f9d6f0a4d689b5939d9c2066800182da921e04fc541a6176de253e4bde4f2c9f WHIRLPOOL 1dec3112e258d83f9f8df223b1d62949ece384c1ecdae54c84dcf0ce521c7d2e17895c8d7b45b4dc18f06dffee6de42ead83093799399ade49c1d792c2a3636a
DIST otp_doc_man_R13B04.tar.gz 1033584 SHA256 3646198b64bbea0f3760987d20d3392b0b5b2955394a917b92a2c6664a310dd6 SHA512 938afb93fa66d010f822a5071166e5659711d39caf860a72f2d7043a2585a54c20cf51d3ddb4a96b569dff7e6f6487ef4171653f08381c94585512440262ba06 WHIRLPOOL e27d923742f52d4dac31331dd2d54619aab4689acf5a8a2cd85ec08a6567dd5a13c471c70fecb047d534cb64f0dd9df664e8e25177d3efebc810b8a09963e169
DIST otp_doc_man_R14B04.tar.gz 1117663 SHA256 8514511e8a8ac3f3f67db06f333548edf283d9a8afcbc9e9eeca7b1af9a107da SHA512 fb1a150217c8fe644fae44c28955bcd8e433f89811a0d2ef2d7db308998d150ef727478c77d4e2dab4d1c71602000f2a1cd537b0895195ec402c52a71d6fa1f2 WHIRLPOOL a34468624a51318e057238d93ff73679dd92fb5246d572e921525fda893b4c6b0ef7f23c2c80dbdfe79d5666c4701989870f641596fc6187f1cc9e2520e8e06d
DIST otp_doc_man_R15B.tar.gz 1122044 SHA256 1839cc4cab3120401989e0e1d7ad6872a59e2fd9d3cd82f05ca8c4ebef18eb6b SHA512 226c67e8edfccba607b717f5af65efc537bd9352a5622ec5083ffe41d12b19740bc351d7d23aa4d7d22f05febe8aee805b413d197652077b5529351e5058f07b WHIRLPOOL 45f2644506f7c6220ddc468ea5b12844f548b897d95d3763561ddf78f069cf4654191f02ed7d8773e4becfa0ee5929a9061a03b48f2a284dc9c7b2f0a4019deb
DIST otp_doc_man_R15B01.tar.gz 1287293 SHA256 5032bcb992369543139136896ba67b4f8fa58fd3d223941a01a39063b221212c SHA512 cb63350583418f5c988cdeff485771d0fceb55d649ec8af745c24fc3c2179fa8d4cb7cca362e8e17090d501ca1fd0a9487fc926bd44e1ea10f4dd3a088b4d548 WHIRLPOOL 4388e68341ab2d958babef47b2e1d6159f74347fdd74d239dea1b72cce110d70f69e40cf5183ceed153926be338db837acb3e666e4cff9f154d2c2b63de1ced9
+DIST otp_doc_man_R15B02.tar.gz 1298793 SHA256 e27ed26259a2560b81e02b89190ae2a3bf0a777dc2e875f9615adab0a5388f95 SHA512 f76bfadb543f3fa6b0fb2362a230e285a232f0239f97f599c980221015e98cbd0fac5b5cb3bc7d1ac0fbf13e121d4e8d374d75218cc4ed6dbc945731c74c19cc WHIRLPOOL 0894810921fb54f962363d0fd362861f25f86281d757cfb7a4f6529a537dc474dbc365164599c8fc817392df8a1d97558016312b560907a16fb090340ff187ae
DIST otp_src_R13B04.tar.gz 59060560 SHA256 e2694383b3857f5edfc242b8c3acbfba4683e448387fa124d8e587cba234af43 SHA512 d7e6612594030c738cda28104d0c91e420cb1ba9eb65919befa29fa269955c124356f5a5b6e1affd92630fd4d29270a3c5d7f65862b5c85a1fd1ac6fde15f600 WHIRLPOOL f82786a4fb47eea41316fe0077a4eed34731f2902edb2bd883d0d1b4e2aaf7f92625337e744435c0418898980263c1f37981eaaffcc7fde883158b2b4753350f
DIST otp_src_R14B04.tar.gz 70773703 SHA256 099b35910e635b9148ac90f70fd9dd592920ed02406eb26c349efd8d1e959b6e SHA512 e6049e6954f88149a9313dd1100c5d4bbec07bbfc6b88a2d684b7580052e70c4c030247f4ddafa43d68fb3fd213c91cf906a8ac3d0ee76d8cdff8cb530c44f76 WHIRLPOOL 77843b54ba1331e63a3d867bc8392079eb4bacf26a05b323fd90d2c9b90c95e995a456c2b0a7840678bc8f312e231beb755489264528aa4ef11728bd44bb0d61
DIST otp_src_R15B.tar.gz 74100507 SHA256 5bc34fc34fc890f84bae7ff1f7c81fbec2c9aa28a0ef51a57d7a8192204d8aa2 SHA512 1817cd49c9b1a192aed209a14321ad9525e7a9b59e4fa0a318a33a7382af41226c3c9bf7c522a24020be2591fd17236616305515f0ae7ce8bc76a285c066da07 WHIRLPOOL 5b78d0f6d911c091b6531a1961a3ae5e84b4851d711e0db654794202197b14c33d080b1609f47602ad768e72927fcf0bf009345cba6046ec080c8f7b9ab4d1c1
DIST otp_src_R15B01.tar.gz 75592537 SHA256 f94f7de7328af3c0cdc42089c1a4ecd03bf98ec680f47eb5e6cddc50261cabde SHA512 feda81b71ef31268c57ad63d9eba3990f127938185c928dab6d213d1f6147515830e0a1e2f87b6df52e283e6ff18360fb0575b2101ab52c6c715c7fe532dc755 WHIRLPOOL e3a962552ddcb3039befb473103e95149b17b4e50dbf645cd3e780d49d685ef612cf4d4c8d45330f97b3961b30c0d84ed9d3f6535e2d53d35681c2b8b1055b11
+DIST otp_src_R15B02.tar.gz 75959087 SHA256 03eb0bd640916666ff83df1330912225fbf555e0c8cf58bb35d8307a314f1158 SHA512 65efaa986c6764e6e6db8a9f19eda6ea3920962ec4274979ffc267b0b25a69261265474fb6c25ad7df9e77e0545bf8cb211b3fd10699000285b56f9dc68fb76c WHIRLPOOL b3953e89097b0de8464f1bba03b91063bde98fb80fc4f6f657cbfceddec15feb78673f56adda13aa685c21e417be20fbeaa25b86e86f3174ebc5c7c045589621
EBUILD erlang-13.2.4.ebuild 5166 SHA256 101dfc49700c02666afef4bbc48fc7dddb175099eaedc2e4daecdfd814c42b2d SHA512 137d9ab3ff1a2a150a3870f4102ea4479696bb52230b863b7673d710d0f4658290ab548c8a191abe8db9643e4c4632961aa2bafa9fe18ecf461c97c58ccc432a WHIRLPOOL fab071fce7146ee822a6081a6f543dad3c825de9f4e6b79537ecf30e9409ca4babbced142e0ceb06af95f0de209472a1d5aee3dc4d1b0a65f4ba949271ed6d28
EBUILD erlang-14.2.4.ebuild 5423 SHA256 90f1cbf7efff54a0d3fb5e2d83b1c7a7632fe89ba39a3a5abae567a6ac614e1f SHA512 b73ff33f729eae443590602bbff372630c40fea8266f9af039fbfe5d1e304a242ee3ddb68d256797bcbd1063bfc76147d00b08db471ff331cd7752c7fa8053f1 WHIRLPOOL dd4f72c53ddeb870b2bf92ce88133eb7f64b0c50c21c96bc4ab1189a4f7d431de82d48ab4fc62e20c319e7391179cee28a5f5dbf830c3ca28bf54aaf81498fa7
EBUILD erlang-15.2.1.ebuild 5363 SHA256 01dd26900faf0e2bb03f8757be25f9837c434137b471e0367b34eafcd805a8fa SHA512 1fbada11404faa91f1454f76d0dfee4e094a23078019ba60f573c7f5ce1b20a717ca15cd7eb97a5799e896cba4f767c6a9bb3ba5510ba541a17093134bc17c9e WHIRLPOOL 4c71477bf658de5f43c18175b2773f07c34e56d8a403f03ce0e45db34c4f7246bbbec5b0272abc3290b0e08941ccd8a5a5505274a468d43ec50fbf8a06046e4e
+EBUILD erlang-15.2.2.ebuild 5403 SHA256 8a1fe2f5d53e9d1ab6f00fa9899131cab7a1dd4b19c0167772effdd1f88dfddc SHA512 b85bdc00addfd58b1c17792514ece4efedd67876a51510e6fb190112e7b1eb4029c19db69fd33a731308ea902dd87c8851a2a2391bc520048909e0d488a474ed WHIRLPOOL 8576633d4ac47dd7c4495549664a81bad786f34ee432b69670fe08e1ac373e5ecea3ab1abcdaabd424fad5496d9f12966ab58972ffaa049b2973eb2de53ba7fb
EBUILD erlang-15.2.ebuild 5358 SHA256 b0367f07a0ed1993fdfd0b18ad6c5b86ac65e7b6b596dc38b659bb840d58eb89 SHA512 356bd1edc1aa9e821c97caf0cf371e51f037754c63c241a87e3c78927ed20350d577d77ba4cfc52fcd8a99dab2970898ac17c937acfd4e57d6f1db98c44e9ec1 WHIRLPOOL ef1a797e3df70551d3e8c776189f3ba76d53fe02a01c4ac85fc8393d7df4034722b1617bd23537d90e4b5742ea508be5e6b0360391a66aa97acb48c0d394a38e
-MISC ChangeLog 35393 SHA256 d4013c359f5641222317a8458c97aa23dc1f1846406d69845201dc2891f5b5ea SHA512 0bf122c3be9c0db85e070bf9a607ecbbc4f0daaf35ee260fb64ce280f9fdff6a409dc4d39a969f3b17a5876103cb2cadcc17fc0a015c8d36172e33982f2300eb WHIRLPOOL df5cc924680ffb07bf33347c17079bb5e7816f5d190628d95ab2995905ac1af35bcb06bf6686e064b0db4e47ab5f3cf75a81182d38c40d1f39b43dba69572805
+MISC ChangeLog 35582 SHA256 a1c2300cf112dfb2408be627233ecec6238ade5732fff2838a89c047e527b9ac SHA512 29f5fd174d25be05267c0aa264052560b75aa3c51edce2161b85fa2a3cd82360c68354f7ac772f158b6ca2e4a9dc494eb5189d92d60423a6786537e04f9cb310 WHIRLPOOL fe702660e0382b44caa4d8020fa92eedfcfca50ea168fc69f82259de4beb8759eb2014267b576d710de5f7c0f145a31cfa07263699722566ec003f04b71b03af
MISC metadata.xml 852 SHA256 5782640d216cf818d9088bd5eb963002210d83e9eb47e98edfd3844fe579dc27 SHA512 1b22c6d550e7ca634694408f000bd99827aa86037db59b1bb3ca7a2b4259c38d69caac14b0a0db6611f7888dfcdc7972ee70e57a716eb2ac7684aa043b9d3208 WHIRLPOOL 748a8b4560773d970987880ef457194437024ee0f72b3ae9972f6033a5fc14da8e2835dab385c559ae0fe22e2bd31e8e4da3dc946e504388588d23baa39208bd
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREIAAYFAlBul8cACgkQxeMuLWsGW/vVFACfTfIj2Om1ZIWlHnGlmw6g12VA
+Z5wAoID5G7NkQ5Q3coihmCwb7L7Hio8e
+=vaE/
+-----END PGP SIGNATURE-----
diff --git a/dev-lang/erlang/erlang-15.2.2.ebuild b/dev-lang/erlang/erlang-15.2.2.ebuild
new file mode 100644
index 000000000000..1eef94718775
--- /dev/null
+++ b/dev-lang/erlang/erlang-15.2.2.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-15.2.2.ebuild,v 1.1 2012/10/05 08:18:10 djc Exp $
+
+EAPI=3
+WX_GTK_VER="2.8"
+
+inherit elisp-common eutils java-pkg-opt-2 multilib versionator wxwidgets
+
+# NOTE: If you need symlinks for binaries please tell maintainers or
+# open up a bug to let it be created.
+
+# erlang uses a really weird versioning scheme which caused quite a few problems
+# already. Thus we do a slight modification converting all letters to digits to
+# make it more sane (see e.g. #26420)
+
+# the next line selects the right source.
+ERL_VER=($(get_version_components))
+MY_PV="R$(get_major_version)B0${ERL_VER[2]}"
+
+# ATTN!! Take care when processing the C, etc version!
+MY_P=otp_src_${MY_PV}
+
+DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
+HOMEPAGE="http://www.erlang.org/"
+SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
+ http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
+ doc? ( http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
+
+LICENSE="ErlPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="compat-ethread doc emacs halfword hipe java kpoll odbc smp sctp ssl tk wxwidgets"
+
+RDEPEND=">=dev-lang/perl-5.6.1
+ ssl? ( >=dev-libs/openssl-0.9.7d )
+ emacs? ( virtual/emacs )
+ java? ( >=virtual/jdk-1.2 )
+ odbc? ( dev-db/unixODBC )"
+DEPEND="${RDEPEND}
+ wxwidgets? ( x11-libs/wxGTK:2.8[opengl] )
+ sctp? ( net-misc/lksctp-tools )
+ tk? ( dev-lang/tk )"
+
+S="${WORKDIR}/${MY_P}"
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ use wxwidgets && wxwidgets_pkg_setup
+ if use halfword ; then
+ use amd64 || die "halfword support is limited to amd64"
+ fi
+}
+
+src_prepare() {
+ use odbc || sed -i 's: odbc : :' lib/Makefile
+
+ # bug 263129, don't ignore LDFLAGS, reported upstream
+ sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in || die
+
+ # don't ignore LDFLAGS, reported upstream
+ sed -e 's:LDFLAGS = \$(ODBC_LIB) \$(EI_LDFLAGS):LDFLAGS += \$(ODBC_LIB) \$(EI_LDFLAGS):' -i "${S}"/lib/odbc/c_src/Makefile.in || die
+
+ if ! use wxwidgets; then
+ sed -i 's: wx : :' lib/Makefile
+ rm -rf lib/wx
+ fi
+
+ # Nasty workaround, reported upstream
+ cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in || die
+
+ # bug 383697
+ sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c || die
+}
+
+src_configure() {
+ use java || export JAVAC=false
+
+ econf \
+ --enable-threads \
+ --enable-shared-zlib \ \
+ $(use_enable sctp) \
+ $(use_enable halfword halfword-emulator) \
+ $(use_enable hipe) \
+ $(use_with ssl ssl "${EPREFIX}"/usr) \
+ $(use_enable ssl dynamic-ssl-lib) \
+ $(use_enable kpoll kernel-poll) \
+ $(use_enable smp smp-support) \
+ $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \
+ $(use x64-macos && echo "--enable-darwin-64bit") \
+ || die
+}
+
+src_compile() {
+ use java || export JAVAC=false
+ emake || die
+
+ if use emacs ; then
+ pushd lib/tools/emacs
+ elisp-compile *.el || die
+ popd
+ fi
+}
+
+extract_version() {
+ sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
+}
+
+src_install() {
+ local ERL_LIBDIR=/usr/$(get_libdir)/erlang
+ local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
+ local ERL_ERTS_VER=$(extract_version erts VSN)
+
+ emake INSTALL_PREFIX="${D}" install || die
+ dodoc AUTHORS README.md
+
+ dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
+ dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
+ dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
+ dosym \
+ "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
+ /usr/bin/erl_call
+ dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
+ use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
+
+ ## Remove ${D} from the following files
+ sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" || die
+ sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" || die
+ grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
+
+ ## Clean up the no longer needed files
+ rm "${ED}/${ERL_LIBDIR}/Install"||die
+
+ for i in "${WORKDIR}"/man/man* ; do
+ dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
+ done
+ for file in "${WORKDIR}"/man/man*/*.[1-9]; do
+ # doman sucks so we can't use it
+ cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
+ done
+ # extend MANPATH, so the normal man command can find it
+ # see bug 189639
+ dodir /etc/env.d/
+ echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
+
+ if use doc ; then
+ dohtml -A README,erl,hrl,c,h,kwc,info -r \
+ "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
+ fi
+
+ if use emacs ; then
+ pushd "${S}"
+ elisp-install erlang lib/tools/emacs/*.{el,elc}
+ sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
+ "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
+ elisp-site-file-install "${T}"/${SITEFILE}
+ popd
+ fi
+
+ newinitd "${FILESDIR}"/epmd.init epmd || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ elog
+ elog "If you need a symlink to one of Erlang's binaries,"
+ elog "please open a bug on http://bugs.gentoo.org/"
+ elog
+ elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
+ elog
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}