diff options
-rw-r--r-- | dev-lang/erlang/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/erlang/Manifest | 9 | ||||
-rw-r--r-- | dev-lang/erlang/erlang-16.1-r1.ebuild | 176 |
3 files changed, 187 insertions, 5 deletions
diff --git a/dev-lang/erlang/ChangeLog b/dev-lang/erlang/ChangeLog index f009507c7664..1fac309ea308 100644 --- a/dev-lang/erlang/ChangeLog +++ b/dev-lang/erlang/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/erlang # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.242 2013/08/26 12:44:16 djc Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.243 2013/09/08 11:55:41 pacho Exp $ + +*erlang-16.1-r1 (08 Sep 2013) + + 08 Sep 2013; Pacho Ramos <pacho@gentoo.org> +erlang-16.1-r1.ebuild: + Change unit file installation (#482446#c5) 26 Aug 2013; Dirkjan Ochtman <djc@gentoo.org> -erlang-15.2.2.ebuild, -erlang-15.2.ebuild: diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest index 91b2ac0ce31d..a00e1d399572 100644 --- a/dev-lang/erlang/Manifest +++ b/dev-lang/erlang/Manifest @@ -14,14 +14,15 @@ DIST otp_src_R15B03-1.tar.gz 76123810 SHA256 4bccac86dd76aec050252e44276a0283a0d DIST otp_src_R16B.tar.gz 67097626 SHA256 f01c2cfe512d3118fd3398a66bdb82bea6ad0f45b464a46a58e452264b7682cd SHA512 ca8587df663ef3066aaca868a8f79cc002a9ee4d6d57162c75cd54d5e6dcc02a9477fa4a58110cb82f25f50f316ddaf2660010c4b43b8c7b36135b00e0e9221e WHIRLPOOL c7a38bd22c10d41e23f62b906f551b20744d4476dddec5799171be203fd6e855d19f24f6954d693747d3ce39e8a413dfd5bdc5cdc81a6bfa89590af9596ee1d4 DIST otp_src_R16B01.tar.gz 65813898 SHA256 da388bc07b8ebdd008f5bb6c3d2c280e358bd188b5aac3ea01e3a7436315abc0 SHA512 61b5f5370d5e88c7b5ad662ea71a16e910d16e5d5fe4ec9550947e0ca5824f23fdca268c64b3e70e815b4da08a08a27a5f83017d8fe306a4e62cae6c85a4812f WHIRLPOOL ceb1961a79ac702bb4c9389c071aba9c3a644527847f6a7e0888dbbf3f6e5c4a716cab72267076e3b644a3f746fd3b39db42d6c5766406c341a5c4fc566a0329 EBUILD erlang-15.2.3.1.ebuild 5453 SHA256 cb8595ac6c0173e27b7293cbf6438f59e8ffb50e1c9e938275731f775f477fa4 SHA512 c2d8faec99021a2b57ca14ab694301dbe89ccbc394086cdcf2e529653d3545a8c6d1d72ae55e5e7421ae05f6fe2f810d89366dca80d932eba59cfbdb2d48d939 WHIRLPOOL 76562a411d37fb57633242f1f459510a91785d093453728a6d757a7ef467cc68e69654c8d5678a021e4bc34e4e93384a8ff9eafb3a52bdc4151c7a0f7d3dd8e3 +EBUILD erlang-16.1-r1.ebuild 5427 SHA256 84c304a433264a667c881109019461a8e5f40c010691d1bc63b6a051fa5690a1 SHA512 cab3213e4efe2c3370c4b34e1c23e41f89843a43b9ec4b38433a2261c6c93972e393ac175a92d687e85560cfb1658885c4ac2b008b763b033aff116e1f0ea81a WHIRLPOOL 69fbdeadb74c955a698e8509510bd3957fd60cb871e566b99808548b9ac62898420b6ee0989bd175f3a557f9a9d3e167d92435144a52a37a2127ff4f67f8783b EBUILD erlang-16.1.ebuild 5440 SHA256 a9632b10492adda9452d92668b5057f7771cdd63a1bd68702d1dfee17d9010ec SHA512 3c41879d80f7627496841fad17b3138a37a2b1f7603942af2f1c5648590b0e29c792975ea9f40772c950f8458c64d0f78ae45496856573d4c6ce5571d6ccee1d WHIRLPOOL 6c2c36557176c0b9a90fe03bd510a544e17f66026dbcdd9b38323c35e7c96b200df6e08c0107e1147e1b746f296560e364fae7d1fc5b7050800050cc405d856b EBUILD erlang-16.ebuild 5361 SHA256 548dd3adc14b755a9ebfdaab874a09baa0bcd3b8efcedfcfaac96e89c6fc97b5 SHA512 1aa018fa55035d1f7e0e4ebab8ff2b74aade7f55385a12f2b60c8da8769808da07c08cc9fab0b132e8f66be09b44d6963495331083775922171cda7c1fd2d0c1 WHIRLPOOL 28d8fed55e4921d72e38f5b566feb2b74837c203b2b4f93c1b93af171c67edcc74e0d344c59ce06b099818603faf6960bb431196b5ee3c51a4121c42ba0e1f7c -MISC ChangeLog 38036 SHA256 e1133842fce131b2fc53bbfeaca2af047526279ac60c37f88fa460726b3e4743 SHA512 bf7b0eb49f1fd6b256ae0c5de6cfde08d6c759499dd97c9ee474ae3775938a0ca98739373e6f14701a32331b663a365d97288babb92e55098cdbfc3f28453e67 WHIRLPOOL 01b95e5ceb1806a2f03116c3daee2b01f2bdb1124dc6f9271bffffb9f19654b17547706ef8f967794ed3a133fe9ca0b0ccd07a35627c8f4ec2264a8c7015b2b2 +MISC ChangeLog 38185 SHA256 b353f330454eeabd2d557989cd11ee4b3da74657b2f19522472bd81fbb677ca2 SHA512 6e63d5167146039f4a8ab1b184c033d9fabb19c40eebe3ae2042b7cfba83921d6ae19bc1104f35b95256b4aad1cecf1833dc4359df7ec9be88e112521f07c769 WHIRLPOOL 7ce537cf33d85b917bc865ca8fb8310549c1b48ac91626d59e1e6ae8c79ff75791ca04da3b23e1aea6c13581aadf7cd75fae81b9aed118186db277b6a013aea3 MISC metadata.xml 852 SHA256 5782640d216cf818d9088bd5eb963002210d83e9eb47e98edfd3844fe579dc27 SHA512 1b22c6d550e7ca634694408f000bd99827aa86037db59b1bb3ca7a2b4259c38d69caac14b0a0db6611f7888dfcdc7972ee70e57a716eb2ac7684aa043b9d3208 WHIRLPOOL 748a8b4560773d970987880ef457194437024ee0f72b3ae9972f6033a5fc14da8e2835dab385c559ae0fe22e2bd31e8e4da3dc946e504388588d23baa39208bd -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iEYEAREIAAYFAlIbTaQACgkQxeMuLWsGW/tNDwCfSwwWwYUpqpnpPxFaR0wcv+bO -JAYAn3OEBTEwgcgRFAl0s5/NHsvMBiq3 -=Ba9n +iEYEAREIAAYFAlIsZb4ACgkQCaWpQKGI+9QtswCfYZbky/ejrYIhmbO/XYnz5xCI ++wcAnjRq/Gx2+bdLLLn6pOXbhXCcPRwv +=EgtB -----END PGP SIGNATURE----- diff --git a/dev-lang/erlang/erlang-16.1-r1.ebuild b/dev-lang/erlang/erlang-16.1-r1.ebuild new file mode 100644 index 000000000000..694f994d1444 --- /dev/null +++ b/dev-lang/erlang/erlang-16.1-r1.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-16.1-r1.ebuild,v 1.1 2013/09/08 11:55:41 pacho Exp $ + +EAPI=3 +WX_GTK_VER="2.8" + +inherit elisp-common eutils java-pkg-opt-2 multilib systemd 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. +MY_PV="R16B01" + +# 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/otp_src_${MY_PV}.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] virtual/glu ) + sctp? ( net-misc/lksctp-tools ) + tk? ( dev-lang/tk )" + +S="${WORKDIR}/otp_src_${MY_PV}" + +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 + systemd_dounit "${FILESDIR}"/epmd.service ||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 +} |