# ChangeLog for dev-lang/erlang
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.44 2006/12/04 16:55:42 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.45 2006/12/06 12:10:36 opfer Exp $
+
+*erlang-11.2.2 (06 Dec 2006)
+
+ 06 Dec 2006; Christian Faulhammer <opfer@gentoo.org>
+ +erlang-11.2.2.ebuild:
+ version bump; revamped the ebuild, nearly all the work was done by Fernando
+ J. Pereda <ferdy@gentoo.org>, so hail to him; enables HiPE to test on
+ hardened systems
04 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org> erlang-11.2.1.ebuild:
Stable on sparc wrt #151612
RMD160 af22ca793fe2f0d025c1eafa75547e4b7093f24c files/glibc-2.4-fix.patch 452
SHA256 c9d20e483847f580848c75c0d7464af5afce641dba75383b2f3adf6a10b6094b files/glibc-2.4-fix.patch 452
DIST otp_doc_html_R10B-10.tar.gz 4655081 RMD160 d11108d871ab7f164c7e4dd1000cd8cdca7cb64d SHA256 2373d6935b44b64a137bf8ba198dca3fb782d0c072735b172ae4420c380a5d9c
-DIST otp_doc_html_R10B-5.tar.gz 4591317
+DIST otp_doc_html_R10B-5.tar.gz 4591317 RMD160 c9e605c0a818e2fa594a3d9b9f39e5cf0c9edaab SHA1 dd56ca561e3e810746c961fdb1ef12c658158127 SHA256 89722a7182c23e8ef499889550a5f9fe2a6295c47bb8c9f0dce47e3e04b49085
DIST otp_doc_html_R11B-0.tar.gz 4662110 RMD160 ec39aa3e693a0b836b8ca9c360c14c2612c1b813 SHA1 263d7941e67b0a8db079251cb938823a5f2da4ba SHA256 68cb74d5979dd2ea75c03e892e7ce1446eff27af37d9bdd4fd9778a433a19f68
DIST otp_doc_html_R11B-1.tar.gz 4717809 RMD160 2a7425f55245b12037a02082ace85411c04c5bb6 SHA1 1c1734482ebce4fab096b24ac8b91d33966a47cd SHA256 225212891e2290d0ea21e489445113d7f79ad51e4b3e3e4f0042f8876383a7bc
+DIST otp_doc_html_R11B-2.tar.gz 4739895 RMD160 82a4ab769566705333e059d920861d05be31754b SHA1 44a6006bf5437566ce770a4a3a2bf6c9e015e656 SHA256 588514c6b96b33dbaffd40aa5b51b9c0be65d02b6e81644c53b4c705a866db47
DIST otp_doc_man_R10B-10.tar.gz 594690 RMD160 b56260b7349cd4751ca56ec15fdc5515041b130b SHA256 8ecfc9b627200f59c35591a743e03a587258ddcdd39052a0b2cb58b80f6fc20b
-DIST otp_doc_man_R10B-5.tar.gz 597252
+DIST otp_doc_man_R10B-5.tar.gz 597252 RMD160 d4be1d0b3a050c7c0f563524a2d6e7d11df97c1e SHA1 2ae8b727ae95dd58d93f34c1c2538d4559af728f SHA256 e22935f203dfd786e972a01f4c4281a4bb6ec90aa8c5e50c6d996059f005eba2
DIST otp_doc_man_R11B-0.tar.gz 624684 RMD160 38d9218391147e192d21c438d436c98d7c0f982a SHA1 b093fc8c9349a744c42b2ac70d00166adb7d2bb0 SHA256 09b93f43b6bb048d3b66296e94bb6379dbac11217e2ffbe074c2492fe777ee39
DIST otp_doc_man_R11B-1.tar.gz 627132 RMD160 666899dedc72f22387d478ffe4a1f313c57bdb01 SHA1 28f1318964946634996f146770cc9a2be0c20953 SHA256 706e7da589cddee06b9d0a24a09e2105ae719bbfb8b6a08fe55ae45d5dbf4bd6
+DIST otp_doc_man_R11B-2.tar.gz 632153 RMD160 90b37a71ed29f14ec0d14a520aef47ed7b7ccad0 SHA1 5e09c0dcea2956d8b2cdc2a6ab846d9a922cefe3 SHA256 643fb8210a2059b2c283c17601a0d5893f5cf409f05ed4852fbf2b0607693ac9
DIST otp_src_R10B-10.tar.gz 9445437 RMD160 b0e24e89241a21d5f3304791b505ab133db8fca5 SHA256 bd87e1b09f1f3d694fc32ef4d27372e25c95ce35b383c7747ab40c27471c28ac
DIST otp_src_R10B-10_epoll.patch 15359 RMD160 40a1282c6223081b4d2d9c06b30bc16163aa495f SHA256 7b8bbad71649e9b00f9f8639b0fe06060428aa4015eb6164e78d18a0b2508a5b
DIST otp_src_R10B-5.tar.gz 9996505 RMD160 f3cfa3a6f7d18bc3658138135c25443dd6517fb0 SHA1 dae8d2ea08f3131940431e0a2828a62706a41c75 SHA256 e66f2b64e15336731449f11084b61325922dcfbf8cffd9b1618da595155461e4
DIST otp_src_R11B-0.tar.gz 10844070 RMD160 cb2c163f9404feea9b56a5adddb3bdd505e0b494 SHA1 83b620810e5eb8440b4b18809558b8c42c9ad5b0 SHA256 1806ea681b72be216e5365b29479dcb5253f0d828c021282711f5eae984c9f11
DIST otp_src_R11B-1.tar.gz 11144896 RMD160 db658f8221c4226f52c88ff56d2f68afbe47bac2 SHA1 5831578f1c189a2cdf23b19b045be19589cd918f SHA256 d5a8530dfee0b2348c4ad0107409fa73ac3233f31e2300ece625a2abd9eb4da7
+DIST otp_src_R11B-2.tar.gz 11244153 RMD160 989bab054992ba23666756379950082cd41adb00 SHA1 09885c9b0902caa4570de950d76284943232fb6d SHA256 3dd483ee568c31655361474aa54a28cf11575c3b1b984f0b7a6980e083a8e44b
DIST otp_src_R9C-0.tar.gz 8229056
EBUILD erlang-10.2.10.ebuild 3442 RMD160 06de455ce3fbc6e3ffa49d67a542d80b317adda1 SHA1 492a713c9285c68096b9d4a9a0ac37977d258873 SHA256 d0e318c82515fc8fa51c850cdff342f27773f33f3bd8f776a7b03f06849f9d86
MD5 3770dcd9efa720053285277e435af897 erlang-10.2.10.ebuild 3442
MD5 1c5a282f3539bbc9fbf293a809bebc35 erlang-11.2.1.ebuild 4508
RMD160 202a1ccaf9eb249acb4091c22087cbeadcb8bc4a erlang-11.2.1.ebuild 4508
SHA256 a1c49582aa65db4ab10a8c8c4d96c2c31c8e712637b657d33866d0a689272817 erlang-11.2.1.ebuild 4508
+EBUILD erlang-11.2.2.ebuild 4752 RMD160 b19353537ab4df01de538baa2a2c0e65224e9c97 SHA1 23ba76b77f43f374da3df683fd3067b4f65dbd52 SHA256 39083d2b5bf9ad0d80c30da190d58c286c59e6bceca154824d772c48cc65f879
+MD5 8c3bd5a2bbeffdbe4f01b1bda3039aaa erlang-11.2.2.ebuild 4752
+RMD160 b19353537ab4df01de538baa2a2c0e65224e9c97 erlang-11.2.2.ebuild 4752
+SHA256 39083d2b5bf9ad0d80c30da190d58c286c59e6bceca154824d772c48cc65f879 erlang-11.2.2.ebuild 4752
EBUILD erlang-9c-r2.ebuild 1786 RMD160 cfcd3af93fa8a45da4068303b6bfebad8d076264 SHA1 42672bce4031943e9f7145406be7a83279ce867b SHA256 7f1e9e7f8260d6975d9a58df64cc2c42ac4fddf41e0c93f0cc89e0beb9ed55db
MD5 42753c3aa0334123ff5edc1ad619ca8c erlang-9c-r2.ebuild 1786
RMD160 cfcd3af93fa8a45da4068303b6bfebad8d076264 erlang-9c-r2.ebuild 1786
SHA256 7f1e9e7f8260d6975d9a58df64cc2c42ac4fddf41e0c93f0cc89e0beb9ed55db erlang-9c-r2.ebuild 1786
-MISC ChangeLog 8448 RMD160 91db8e12f79208426b83f9a27e95e61f67e63115 SHA1 e986a89456a363332fe3ba57398afc7f8564e068 SHA256 4cc95c2308c73bb4fc8dfd272f61bcd743c16f5349be217bea7e9bf0a9bf68a6
-MD5 d6aeea6653ebe8dc7f9a71ca4883e806 ChangeLog 8448
-RMD160 91db8e12f79208426b83f9a27e95e61f67e63115 ChangeLog 8448
-SHA256 4cc95c2308c73bb4fc8dfd272f61bcd743c16f5349be217bea7e9bf0a9bf68a6 ChangeLog 8448
+MISC ChangeLog 8725 RMD160 7c451b6b31fbc90ab3692f1075e0d9bdf735b623 SHA1 6df4d4cc19bb73d3099d2c3d476b6fb470a6cc80 SHA256 575107c4ea55b64e3d10946ae0d7af215a9e3fa94bd0a518a091d679cc33aaa7
+MD5 70d42bfce33a39519fc90f7b838fe2d8 ChangeLog 8725
+RMD160 7c451b6b31fbc90ab3692f1075e0d9bdf735b623 ChangeLog 8725
+SHA256 575107c4ea55b64e3d10946ae0d7af215a9e3fa94bd0a518a091d679cc33aaa7 ChangeLog 8725
MISC metadata.xml 402 RMD160 3d4e0e7953d95f43de89f62eacb37969caa29336 SHA1 2a45564353e8d0c2b9555294a6a269e56e0b6056 SHA256 c713a207afd5d65ef21d1c1e5fd3b867ce063dd9e46fc53db0734ad19f59ffe7
MD5 aea374917adc11a2d42b0b9d1bba3598 metadata.xml 402
RMD160 3d4e0e7953d95f43de89f62eacb37969caa29336 metadata.xml 402
MD5 58cc2440a6ff67f439916c4fe3ccb0bd files/digest-erlang-10.2.10 1033
RMD160 a68ccbb17a0b86b4d58f311a553432e6ddfc0b01 files/digest-erlang-10.2.10 1033
SHA256 4d9f8f7bb59eda00418e74cd3e1cae2dc90af7c6837f1dc699e5c4a5649ff318 files/digest-erlang-10.2.10 1033
-MD5 96b7890055d48365f31e0adfdad4007f files/digest-erlang-10.2.5 389
-RMD160 cc060d0f130fd2ca4f68838b4d03bd1c57477d1f files/digest-erlang-10.2.5 389
-SHA256 aa5fc8020b17f5a83836b9190172605f8e5c9690ce9f6244a8db26cd11cefa2f files/digest-erlang-10.2.5 389
+MD5 c55e08561b15c22631d9b346827d36c9 files/digest-erlang-10.2.5 765
+RMD160 721f3098ee3546eace0f18ec33a62e152004b46f files/digest-erlang-10.2.5 765
+SHA256 2b510e1499695bcf3d25c1ce39e9daa78567a4537af77734c82bce8f187d8308 files/digest-erlang-10.2.5 765
MD5 55f6d7fce64d2a93c7e12cf660fef842 files/digest-erlang-11.2.0 768
RMD160 89cbc1d9eaf296b693e9263b38ad33fcbcdb3e38 files/digest-erlang-11.2.0 768
SHA256 aefeb78184742c0047cf00a4dc2f67accb7d28988a5b8f95d27e1009f4e1ff75 files/digest-erlang-11.2.0 768
MD5 8886bf905361bef7627acee2a1c8bb98 files/digest-erlang-11.2.1 768
RMD160 7483ae4810f0ccdebd46d1a0b7e325df96111976 files/digest-erlang-11.2.1 768
SHA256 3fd426daec26afe9200caae2e6721a80fce6acc5d1c11f85817230dd78949248 files/digest-erlang-11.2.1 768
+MD5 5f903efdd3245f02ca8ff7ae339abb1c files/digest-erlang-11.2.2 768
+RMD160 7336169350690cbdd0b6971d80e741593134cafb files/digest-erlang-11.2.2 768
+SHA256 4f2b1667397c5abd23d28c6b9927ff68d2774a3bb814bc7cd5341c6e48061166 files/digest-erlang-11.2.2 768
MD5 ae2205c16664d70f5ea47d249b2e566f files/digest-erlang-9c-r2 66
RMD160 bc09b0c487f2580aba706e7f35f84e0109479325 files/digest-erlang-9c-r2 66
SHA256 1e4ffb97ef49da9eecdb6affebda54e8e22b9c2707a099edeff382531b3b95c1 files/digest-erlang-9c-r2 66
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux)
+Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFdFMZKRy60XGEcJIRAiDzAJ49CKItMX7oMKL/gSY8bjBQiW6K2gCfa1Im
-hgXWknmx96kuH6GMETIRTZ4=
-=IDcs
+iD8DBQFFdrNUNQqtfCuFneMRAuk/AJ9qXW8hWZ260XKgqJJDUrY30XYk8wCffCB4
+oztGuHSVsD0jWIQts3dtd2s=
+=4qOG
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-11.2.2.ebuild,v 1.1 2006/12/06 12:10:36 opfer Exp $
+
+inherit eutils multilib flag-o-matic elisp-common versionator
+
+# NOTE: When bumping you need to adjust the *_VER strings in
+# src_install() to honour newer versions in the package (they
+# are maintained separately upstream).
+# As High Performance Erlang (HiPE) messes around a lot with
+# assembler, it breaks hardened and some normal systems, so it has
+# been disabled. Try with newer versions though.
+# 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.
+MY_PV="R$(get_major_version)B-$(get_version_component_range 3)"
+
+# 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
+ doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
+ http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
+# Not yet available for 11.2.1
+# http://developer.sipphone.com/ejabberd/erlang_epoll_patch/otp_src_${MY_PV}_epoll.patch"
+
+LICENSE="EPL"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="doc emacs java odbc ssl tk"
+
+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}
+ tk? ( dev-lang/tk )"
+
+S=${WORKDIR}/${MY_P}
+
+SITEFILE=50erlang-gentoo.el
+
+src_unpack() {
+ ## fix compilation on hardened systems, see bug #154338
+ filter-flags "-fstack-protector"
+ filter-flags "-fstack-protector-all"
+
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-10.2.6-export-TARGET.patch"
+ epatch "${FILESDIR}/10.2.6-manpage-emacs-gentoo.patch"
+ use odbc || sed -i 's: odbc : :' lib/Makefile
+# epatch "${DISTDIR}"/otp_src_${MY_PV}_epoll.patch
+
+ # Fix for bug #151612
+ sed -i "s/__GLIBC_MINOR__\ ==\ 3/__GLIBC_MINOR__\ \>=\ 3/g" \
+ ${S}/erts/emulator/hipe/hipe_x86_signal.c
+}
+
+src_compile() {
+ use java || export JAVAC=false
+ # disable High Performance Erlang (HiPE) to avoid a lot of
+ # problems on hardened, bug #154338
+ econf \
+# --disable-hipe \
+ --enable-threads \
+ $(use_with ssl) \
+ || die "econf failed"
+ make || die "emake failed"
+
+ if use emacs ; then
+ pushd lib/tools/emacs
+ elisp-compile *.el
+ 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)
+
+ make INSTALL_PREFIX="${D}" install || die
+ dodoc AUTHORS EPLICENCE README
+
+ dosym ${ERL_LIBDIR}/bin/erl /usr/bin/erl
+ dosym ${ERL_LIBDIR}/bin/erlc /usr/bin/erlc
+ dosym ${ERL_LIBDIR}/bin/ecc /usr/bin/ecc
+ dosym ${ERL_LIBDIR}/bin/elink /usr/bin/elink
+ dosym ${ERL_LIBDIR}/bin/ear /usr/bin/ear
+ 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
+
+ ## Remove ${D} from the following files
+ dosed ${ERL_LIBDIR}/bin/erl
+ dosed ${ERL_LIBDIR}/bin/start
+ cd ${ERL_LIBDIR}/erts-*
+ grep -rle "${D}" "${D}"/${ERL_LIBDIR}/erts-* | xargs sed -i -e "s:${D}::g"
+
+ ## Clean up the no longer needed files
+ rm "${D}"/${ERL_LIBDIR}/Install
+
+ if use doc ; then
+ for i in "${WORKDIR}"/man/man* ; do
+ dodir /usr/share/${i##${WORKDIR}}erl
+ done
+ for file in "${WORKDIR}"/man/man*/*.[1-9]; do
+ # Avoid namespace collisions
+ local newfile=${file}erl
+ cp ${file} ${newfile}
+ # Man page processing tools expect a capitalized "SEE ALSO" section
+ # header
+ sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${newfile}
+ # doman sucks so we can't use it
+ cp ${newfile} "${D}"/usr/share/man/man${newfile##*.}/
+ done
+ 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}
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ popd
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+ einfo
+ einfo "If you need a symlink to one of erlang's binaries,"
+ einfo "please open a bug and tell the maintainers."
+ einfo
+}
MD5 7615ad16c1f26e4cd8891d968d1168fa otp_doc_html_R10B-5.tar.gz 4591317
+RMD160 c9e605c0a818e2fa594a3d9b9f39e5cf0c9edaab otp_doc_html_R10B-5.tar.gz 4591317
+SHA256 89722a7182c23e8ef499889550a5f9fe2a6295c47bb8c9f0dce47e3e04b49085 otp_doc_html_R10B-5.tar.gz 4591317
MD5 a64d7797ce0f98363f8bd59608a35a58 otp_doc_man_R10B-5.tar.gz 597252
+RMD160 d4be1d0b3a050c7c0f563524a2d6e7d11df97c1e otp_doc_man_R10B-5.tar.gz 597252
+SHA256 e22935f203dfd786e972a01f4c4281a4bb6ec90aa8c5e50c6d996059f005eba2 otp_doc_man_R10B-5.tar.gz 597252
MD5 fa6c4ba8291e1d11ae412e4d6f0fa392 otp_src_R10B-5.tar.gz 9996505
RMD160 f3cfa3a6f7d18bc3658138135c25443dd6517fb0 otp_src_R10B-5.tar.gz 9996505
SHA256 e66f2b64e15336731449f11084b61325922dcfbf8cffd9b1618da595155461e4 otp_src_R10B-5.tar.gz 9996505
--- /dev/null
+MD5 e2c45ced77ec63b9b1dd95c8f5396f7d otp_doc_html_R11B-2.tar.gz 4739895
+RMD160 82a4ab769566705333e059d920861d05be31754b otp_doc_html_R11B-2.tar.gz 4739895
+SHA256 588514c6b96b33dbaffd40aa5b51b9c0be65d02b6e81644c53b4c705a866db47 otp_doc_html_R11B-2.tar.gz 4739895
+MD5 c81023f591c1bace836de3aa874f3c2a otp_doc_man_R11B-2.tar.gz 632153
+RMD160 90b37a71ed29f14ec0d14a520aef47ed7b7ccad0 otp_doc_man_R11B-2.tar.gz 632153
+SHA256 643fb8210a2059b2c283c17601a0d5893f5cf409f05ed4852fbf2b0607693ac9 otp_doc_man_R11B-2.tar.gz 632153
+MD5 7d7cca1d2f392a8a317cb4c0bd904726 otp_src_R11B-2.tar.gz 11244153
+RMD160 989bab054992ba23666756379950082cd41adb00 otp_src_R11B-2.tar.gz 11244153
+SHA256 3dd483ee568c31655361474aa54a28cf11575c3b1b984f0b7a6980e083a8e44b otp_src_R11B-2.tar.gz 11244153