Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/erlang
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.125 2008/06/19 21:59:02 bluebird Exp $
19 Jun 2008; Friedrich Oslage
Re-add ~sparc keyword, drop ~x86-fbsd keyword, bug #226085
15 Jun 2008; Tobias Klausmann
Keyworded on alpha, bug #226085
13 Jun 2008; Christian Faulhammer
+files/erlang-12.2.3-glibc28.patch, erlang-12.2.3.ebuild:
fix build failure with Glibc 2.8, see bug 226063, patch provided by Holger
Hoffstätte
12 Jun 2008; Brent Baude
Marking erlang-12.2.3 ~ppc64 for bug 226085
*erlang-12.2.3 (12 Jun 2008)
12 Jun 2008; Christian Faulhammer
+erlang-12.2.3.ebuild:
version bump: A bugfix release. Ebuild has been cleaned up a bit: some die
statements, added support for USE=sctp (see bug 223555 by Maxim Treskin
29 May 2008; Christian Faulhammer
-files/erlang-10.2.6-export-TARGET.patch,
-files/erlang-11.2.5-build.patch,
-files/erlang-11.2.5-gethostbyname.patch, -files/erlang-11.2.5-hipe.patch,
-files/erlang-11.2.5-odbc-support-amd64.patch, -erlang-11.2.5-r3.ebuild,
-erlang-12.2.1.ebuild:
clean up
28 May 2008; Peter Volkov
amd64 stable, bug #223707.
27 May 2008; Raúl Porcel
alpha/sparc stable wrt #223707
27 May 2008; Markus Rothe
Stable on ppc64; bug #223707
26 May 2008; nixnut
Stable on ppc wrt bug 223707
26 May 2008; Christian Faulhammer
stable x86, bug 223707
24 May 2008; Christian Faulhammer
files/erlang-11.2.5-odbc-support-amd64.patch:
patch had DOS encoding which might fail on some systems, reported by
Артем Навроцкий
29 Apr 2008; Christian Faulhammer
make previous patch really work by regenerating needed files, pointed out by
Holger Hoffstätte
29 Apr 2008; Christian Faulhammer
+files/erlang-12.2.2-as-needed.patch, erlang-12.2.2.ebuild:
make building with --as-needed possible, patch provided by pva in bug 203157
28 Apr 2008; Christian Faulhammer
use variable instead of fixed string so I won't continually forget to adjust
the fixed one...as suggested by ulm on bug 2194012 reported by Dennis
Schridde
*erlang-12.2.2 (25 Apr 2008)
25 Apr 2008; Christian Faulhammer
+erlang-12.2.2.ebuild:
version bump
01 Apr 2008; Christian Faulhammer
shorten die message
31 Mar 2008; Christian Faulhammer
check for --as-neeeded in LDFLAGS if use with USE=ssl and die, see bug 203157
11 Mar 2008; Christian Faulhammer
-files/erlang-12.2.0-binary-append.patch, -erlang-12.2.0.ebuild:
clean up
11 Mar 2008; Brent Baude
stable ppc64, bug 212684
09 Mar 2008; Raúl Porcel
alpha stable wrt #212684
08 Mar 2008; Ferris McCormick
Sparc stable, Bug #212684.
08 Mar 2008; nixnut
Stable on ppc wrt bug 212684
08 Mar 2008; Christian Faulhammer
stable x86/amd64, bug 212684
07 Feb 2008; Christian Faulhammer
fix a typo pointed out by Holger Hoffstätte
bug 209272
*erlang-12.2.1 (07 Feb 2008)
07 Feb 2008; Christian Faulhammer
+erlang-12.2.1.ebuild:
version bump
25 Jan 2008; Christian Faulhammer
+files/erlang-11.2.5-hipe.patch,
+files/erlang-11.2.5-odbc-support-amd64.patch, +erlang-11.2.5-r3.ebuild:
readd 11.2.5, so ejabberd is not broken anymore
23 Jan 2008; Christian Faulhammer
removing emacs team and adding myself alone
23 Jan 2008; Christian Faulhammer
-files/erlang-11.2.5-hipe.patch,
-files/erlang-11.2.5-odbc-support-amd64.patch, -erlang-11.2.5-r3.ebuild:
clean up
22 Jan 2008; Raúl Porcel
alpha/sparc stable wrt #206882
22 Jan 2008; Christian Faulhammer
stable amd64, bug 206882
22 Jan 2008; Brent Baude
Marking erlang-12.2.0 ppc for bug 206882
22 Jan 2008; Brent Baude
Marking erlang-12.2.0 ppc64 for bug 206882
21 Jan 2008; Markus Meier
x86 stable, bug #206882
14 Jan 2008; Christian Faulhammer
don't filter --as-needed anymore
11 Jan 2008; Christian Faulhammer
filter --as-needed from LDFLAGS, reported by Santiago Gala
09 Jan 2008; Christian Faulhammer
comment on patch which has been accepted upstream
04 Jan 2008; Christian Faulhammer
-erlang-11.2.5.ebuild:
clean up
21 Dec 2007; nixnut
Stable on ppc wrt bug 202552
18 Dec 2007; Christian Faulhammer
erlang-11.2.5-r3.ebuild, erlang-12.2.0.ebuild:
comment on patches and stable amd64, bug 202552
17 Dec 2007; Ferris McCormick
Sparc stable, Bug #202552.
17 Dec 2007; Christian Faulhammer
erlang-11.2.5-r3.ebuild:
stable x86, bug 202552
17 Dec 2007; Christian Faulhammer
comment on patches sent to upstream
*erlang-12.2.0 (10 Dec 2007)
10 Dec 2007; Christian Faulhammer
+files/erlang-12.2.0-binary-append.patch, +erlang-12.2.0.ebuild:
version bump, fixes bug 201598
10 Dec 2007; Christian Faulhammer
-erlang-11.2.5-r2.ebuild:
clean up
21 Nov 2007; Christian Faulhammer
erlang-11.2.5-r3.ebuild:
amd64 not x86 needs the patch
*erlang-11.2.5-r3 (21 Nov 2007)
21 Nov 2007; Christian Faulhammer
+files/erlang-11.2.5-odbc-support-amd64.patch, -erlang-11.2.4-r1.ebuild,
-erlang-11.2.5-r1.ebuild, +erlang-11.2.5-r3.ebuild:
clean up; add patch to enable ODBC support on amd64, thanks to Alexander T
23 Sep 2007; Christian Faulhammer
+files/erlang-11.2.5-hipe.patch, erlang-11.2.5-r2.ebuild:
add patch provided by Paul Bonser
prevent a doubled statement in hipe installation
26 Aug 2007; Christian Faulhammer
erlang-11.2.5-r2.ebuild:
comment about fix done here taken upstream (caps in man page sections);
correct path for correction of man pages, so they are processed
26 Aug 2007; Mike Frysinger
Make sure we force linking with ssl dynamically #184419.
26 Aug 2007; Mike Frysinger
+files/erlang-11.2.5-build.patch, erlang-11.2.5-r2.ebuild:
Make sure failures in subdirs are not ignored #184419.
25 Aug 2007; Christian Faulhammer
erlang-11.2.5-r2.ebuild:
ferdy suggested in bug 189639 to extend MANPATH, so the normal man command
can find the man pages, not only the erl -man command
22 Aug 2007; Christian Faulhammer
+erlang-11.2.4-r1.ebuild:
restore old version because of ejabberd
*erlang-11.2.5-r2 (21 Aug 2007)
21 Aug 2007; Christian Faulhammer
+erlang-11.2.5-r2.ebuild:
install man files in own hierarchy in ERL_LIBDIR not in systemsystem-wide
location, thus erl -man can find it; reported by Samuel Tesla
15 Aug 2007; Christian Faulhammer
files/50erlang-gentoo.el:
fix Emacs support file...really
*erlang-11.2.5-r1 (15 Aug 2007)
15 Aug 2007; Christian Faulhammer
files/50erlang-gentoo.el, -files/10.2.6-manpage-emacs-gentoo.patch,
-erlang-11.2.1.ebuild, -erlang-11.2.4-r1.ebuild, +erlang-11.2.5-r1.ebuild:
clean up; let erl binary use several CPUs if USE=smp is set. Reported by
astro@spaceboyz.net on bug 188858; don't install license file; add a lot of
quotes around variables; fix Emacs support file to use require and not
load-library
06 Aug 2007; Roy Marples
+files/erlang-11.2.5-gethostbyname.patch, erlang-11.2.5.ebuild:
Fix gethostbyname problem on FreeBSD and keyword ~x86-fbsd, #182001 thanks
to Pierre Guinoiseau.
17 Jul 2007; Gustavo Zacarias
Stable on sparc wrt security #184592
15 Jul 2007; Tobias Scherbaum
erlang-11.2.5.ebuild:
ppc stable, bug #184592
14 Jul 2007; Christian Faulhammer
stable x86, security bug 184592
*erlang-11.2.5 (05 Jul 2007)
05 Jul 2007; Christian Faulhammer
-files/glibc-2.4-fix.patch, -files/erl_process_dump_R11B-3.patch,
-erlang-10.2.10.ebuild, -erlang-11.2.2-r1.ebuild, -erlang-11.2.3.ebuild,
-erlang-11.2.3-r1.ebuild, -erlang-11.2.4.ebuild, +erlang-11.2.5.ebuild:
version bump; clean-up
*erlang-11.2.4-r1 (21 May 2007)
21 May 2007; Christian Faulhammer
+erlang-11.2.4-r1.ebuild:
remove internal copy of zlib, so the header files from the system are used.
Fixes bug #178996, reported by Diego Pettenò
20 Apr 2007; Christian Faulhammer
remove unneeded symlinks
19 Apr 2007; Fernando J. Pereda
Remove useless cd
17 Apr 2007; Christian Faulhammer
add -j1 for emake in src_install to prevent installation failures, fixes
bugs 174073 and 174492
12 Apr 2007; Markus Rothe
Added ~ppc64
*erlang-11.2.4 (06 Apr 2007)
06 Apr 2007; Christian Faulhammer
+erlang-11.2.4.ebuild:
version bump
*erlang-11.2.3-r1 (24 Feb 2007)
24 Feb 2007; Christian Faulhammer
+erlang-11.2.3-r1.ebuild:
added smp and kpoll USE flags to enable/disable those features, adjusted
some bits; thanks to Max Loparyev
22 Feb 2007; Simon Stelling
put back the export-TARGET patch; bug 167909
*erlang-11.2.3 (20 Feb 2007)
20 Feb 2007; Christian Faulhammer
+files/erl_process_dump_R11B-3.patch, +erlang-11.2.3.ebuild:
version bump which needs fewer patches and fixes, as reported by Christopher
Covington
31 Jan 2007; Marius Mauch
erlang-11.2.2-r1.ebuild:
Replacing einfo with elog
22 Jan 2007; Christian Faulhammer
erlang-11.2.2-r1.ebuild:
added info about what this version is called upstream
04 Jan 2007; Christian Faulhammer
erlang-11.2.2-r1.ebuild:
changed elisp.eclass to elisp-common.eclass as it was before. Thanks to
ferdy for pointing out.
30 Dec 2006; Christian Faulhammer
-erlang-10.2.5.ebuild, -erlang-11.2.0.ebuild:
clean-up old versions
29 Dec 2006; Christian Faulhammer
inherit elisp instead of elisp-common; order inherited eclasses
alphabetically; add quotes around definition of $S
22 Dec 2006; Matti Bickel
ppc stable (bug #151612)
*erlang-11.2.2-r1 (12 Dec 2006)
12 Dec 2006; Christian Faulhammer
-erlang-11.2.2.ebuild, +erlang-11.2.2-r1.ebuild:
added hipe USE flag to give users control about that feature
06 Dec 2006; Christian Faulhammer
repaired the ebuild
06 Dec 2006; Christian Faulhammer
corrected a directory change to a more generic version
*erlang-11.2.2 (06 Dec 2006)
06 Dec 2006; Christian Faulhammer
+erlang-11.2.2.ebuild:
version bump; revamped the ebuild, nearly all the work was done by Fernando
J. Pereda
hardened systems
04 Dec 2006; Gustavo Zacarias
Stable on sparc wrt #151612
04 Dec 2006; Christian Faulhammer
stable x86, bug #151612
04 Dec 2006; Christian Faulhammer
added correct path for cd command, reported by Markus Meier
23 Nov 2006; Christian Faulhammer
Added einfo about symlinks so users will read it
17 Nov 2006; Christian Faulhammer
that patch needs to stay
17 Nov 2006; Christian Faulhammer
-erlang-8b.ebuild, -erlang-9c.ebuild, -erlang-9c-r1.ebuild,
-erlang-10.2.0.ebuild, -erlang-10.2.7.ebuild:
clean up old versions, including a stray patch
17 Nov 2006; Christian Faulhammer
added comments to warn anyone from maintaining it, added symlinks for
erl_call (bug #155229 by Pupeno
Chainsaw
08 Nov 2006; Christian Faulhammer
disable High Performance Erlang (HiPE) because it breaks some systems,
especially hardened. Also fix an glibc error. Thanks to Alexander Gabert
# 151612
08 Nov 2006; Christian Faulhammer
fix compilation on hardened systems by filtering SSP, see bug #154338.
Thanks to pappy-_ on IRC who provided advice and test hardware.
02 Nov 2006; Christian Faulhammer
-files/10.2.7-manpage-emacs-gentoo.patch, -files/erlang-9c.patch,
-files/erlang-10.2.7-export-TARGET.patch, erlang-10.2.7.ebuild,
erlang-10.2.10.ebuild, erlang-11.2.0.ebuild, erlang-11.2.1.ebuild:
remove unnecessary patches and adjust ebuilds to use the correct ones
02 Nov 2006; Christian Faulhammer
-erlang-10.2.6.ebuild:
remove it, because it is masked and newer versions are available
02 Nov 2006; Christian Faulhammer
remove that version, as it has no keywords
*erlang-11.2.1 (02 Nov 2006)
02 Nov 2006; Christian Faulhammer
+erlang-11.2.1.ebuild:
version bump, reported by Conrad Kostecki
bug #145633
02 Nov 2006; Christian Faulhammer
erlang-10.2.10.ebuild, erlang-11.2.0.ebuild:
changed USE flag tcltk -> tk, see bug #17808
*erlang-11.2.0 (27 May 2006)
27 May 2006; Matthew Kennedy
New upstream version.
*erlang-10.2.10 (10 Apr 2006)
10 Apr 2006; Matthew Kennedy
+files/glibc-2.4-fix.patch, +erlang-10.2.10.ebuild:
Include GLIBC 2.4 build fix; Resolves Bug #122383; Please see
http://www.erlang.org/ml-archive/erlang-questions/200601/msg00500.html for
more information on the GLIBC build fix.
07 Mar 2006; Mike Frysinger
erlang-9c.ebuild, erlang-9c-r1.ebuild, erlang-9c-r2.ebuild,
erlang-9c-r3.ebuild, erlang-10.2.0.ebuild, erlang-10.2.5.ebuild,
erlang-10.2.6.ebuild, erlang-10.2.7.ebuild:
Add support for modular X #121067.
28 Jan 2006; Simon Stelling
-files/erlang-9c.patch.gz, erlang-9c-r1.ebuild:
no need to gzip smallish patches
03 Dec 2005; Fernando J. Pereda
marked ~alpha wrt bug #91132
*erlang-10.2.7 (29 Oct 2005)
29 Oct 2005; Matthew Kennedy
+files/erlang-10.2.7-export-TARGET.patch,
+files/10.2.7-manpage-emacs-gentoo.patch, +erlang-10.2.7.ebuild:
New upstream version; Added epoll support and condition support for
dev-lang/tk via X USE flag; Resolves Bug #106208.
05 Sep 2005; Jason Wever
Stable on SPARC.
03 Sep 2005; Michael Hanselmann
Stable on ppc.
*erlang-10.2.5 (24 Aug 2005)
24 Aug 2005; Mike Frysinger
Add a version which works with wings #97798.
18 Jul 2005; Matthew Kennedy
+files/10.2.6-manpage-emacs-gentoo.patch, files/50erlang-gentoo.el,
metadata.xml, erlang-10.2.6.ebuild:
Added Emacs Herd to metadata.xml.
18 Jul 2005; Matthew Kennedy
+files/10.2.6-manpage-emacs-gentoo.patch, files/50erlang-gentoo.el,
erlang-10.2.6.ebuild:
Support man-page documentation in Emacs erlang-mode; Install Erlang
man-pages and HTML documentation via "doc" USE flag; Add missing
dependencies for Java and ODBC support via "odbc" and "java" USE flags;
Rename Erlang man-pages with "erl" suffix to avoid namespace collision; New
upstream version.
*erlang-10.2.6 (02 Jul 2005)
02 Jul 2005; Mike Frysinger
Version bump.
02 Jul 2005; Mike Frysinger
+files/erlang-10.2.6-export-TARGET.patch, erlang-10.2.0.ebuild:
Fix host detection #94090 by Matthew Kennedy.
30 May 2005; Sven Wegener
erlang-9c-r3.ebuild, erlang-10.2.0.ebuild:
Moved from gcc.eclass to toolchain-funcs.eclass, bug #92745.
21 Apr 2005; Herbie Hopkins
Small multilib issue, fixes bug #89938
20 Mar 2005; Matthew Kennedy
+files/50erlang-gentoo.el, erlang-10.2.0.ebuild:
USE support for "emacs"; Resolves Bug #78557
*erlang-10.2.0 (07 Oct 2004)
07 Oct 2004; George Shapovalov
new version out, adjusted versioning scheme as was previously discussed
(retaining 1st number, then letters A->1, B->2, ... and adding the "revision")
thus this corresponds to R10B-0
also adjusted openssl dependency to point to >=0.9.7d
*erlang-9c-r3 (02 Aug 2004)
02 Aug 2004; George Shapovalov
fixed some stray ${D}'s in wrappers (#58901), added support for ~amd64
30 Mar 2004; Donnie Berkholz
erlang-9c-r1.ebuild, erlang-9c-r2.ebuild, erlang-9c.ebuild:
Change x11-base/xfree dependency to virtual/x11.
*erlang-9c-r2 (21 Feb 2004)
21 Feb 2004; Mike Frysinger
Version bump #26420.
*erlang-9c-r1 (01 Jul 2003)
28 Jul 2003; Mike Frysinger
Added 'addpredict' to /dev/pts to fix issues w/emerging in XTerm #25366.
03 Jul 2003; George Shapovalov
incorporated fix for weird install on some systems from #20625
Thanks to Claes Wikstrom
01 Jul 2003; George Shapovalov
incorporated patch to make erlang read nsswitch.conf in
addition to host.conf (#22836)
Thanks to Claes Wikstrom
*erlang-9c (09 May 2003)
19 Jun 2003; Mike Frysinger
Cleaned up and made the ebuild more 'portage' like ... changed sed cmds to dosed
09 May 2003; George Shapovalov
new version (#20625), original versio n is R9B-1, 9c seems to be the only approximation
that works and is considered newer by portage
(anyway, 'B' seems to be invariant in upstream naming scheme)
Thanks to Claes Wikstrom
*erlang-9b (07 Jan 2003)
07 Jan 2003; George Shapovalov
new version,
cleaned up erlang-8b.ebuild and added IUSE
*erlang-8b (01 Nov 2002)
19 Jun 2003; Mike Frysinger
Cleaned up and made the ebuild more 'portage' like ... changed sed cmds to dosed
01 Nov 2002; George Shapovalov
Erlang is a programming language, runtime environment and a large collection of
libraries. Ebuild submitted by Charlie Mac
AUX 50erlang-gentoo.el 134 RMD160 a453ad18f47d20e5ea5ecd1f4e4054d00eab5c35 SHA1 7c17979f533654ef05bbfcc8ae30554e7843923b SHA256 97e1da82cae31a554134d7370739520e4c67b2544e5a13f887651a62e710b4d4
AUX erlang-12.2.2-as-needed.patch 681 RMD160 4e296989aa03a874871bcd1be558b9b6036722ae SHA1 7d8279e19941cc381b4fa48df75596aad3a5adbe SHA256 02a58d742d273754b584e2adb6d8e97170dda98a434676b979dcbccd817eca46
AUX erlang-12.2.3-glibc28.patch 431 RMD160 0f776b37e3d072f3a8dca72f5eb1cd0893ae522f SHA1 12bdfe823e9bae3ac40d2ee8a951b183b4b85ac8 SHA256 628038216ff9f66aad5100fa8663bc4ca229b33bd9ba952b95c64b43af1635d6
DIST otp_doc_html_R12B-2.tar.gz 5616891 RMD160 ddceb9b20aa485d8aab9c4f43e0f33fc8ba7eb8d SHA1 9fbb1f8e514ab340fff437e794243b4d530ed682 SHA256 f169acca450eb84d58377b1fabee18268ea9cf1a59393c0b970fefdb894b771e
DIST otp_doc_html_R12B-3.tar.gz 5655205 RMD160 8295d4e94952bad6458f2038415c474e687631cb SHA1 194003607113c84aef5b5daad7ca8b8901d1d80a SHA256 4690829f270a40d6c1849a34e9854ba4f55e1ec1a1e91dbc09e6a0a0a7228005
DIST otp_doc_man_R12B-2.tar.gz 777982 RMD160 963eb8247ae2df39ce4f998d72893e9ff2d646a0 SHA1 c32be18cc121412af97d948e1262a185206cadcb SHA256 712140af4b49cf696f6968244e13a753cb6f53c09e46fedb8d93407bf21c95c4
DIST otp_doc_man_R12B-3.tar.gz 809746 RMD160 7e0c27391f42b1e58c7bb1472594e9fe6f7ac414 SHA1 8ea4c9fa7d941c339c73bb417f88ee939d6989eb SHA256 08e3ed5a285eabe94fef6726bd591e02c42a8425ddcdb6a6d3f38f4a2d517e62
DIST otp_src_R12B-2.tar.gz 41190987 RMD160 14702b907c1a2cce2403e2c24db8187904039697 SHA1 a38adf0498a6d0f5038899d9f4a8accc935e7ffd SHA256 ba84af52b5ff10029a9f68c03d53c350d359ca1ed9247ac609765746692a89c1
DIST otp_src_R12B-3.tar.gz 42195557 RMD160 e7b5da985b939e51ef4e2d19fb96cff1781ce263 SHA1 ea5f202cc35ed6ef2796727b95d62c9bbe6ad5e5 SHA256 a8ed977d468454ca8d849ee5fa08ac3d521d76f23649bef531b76bdfa73f8eb2
EBUILD erlang-12.2.2.ebuild 4731 RMD160 9b4f5982f518e7deba8f8d02e0e3537248a8bad9 SHA1 61e28e980870c65d60279b6cb4db20e41997832a SHA256 e5bfb4cd35ab21c02a34263b8dcc78074e21beafaeb2fac1be6771d2803deffc
EBUILD erlang-12.2.3.ebuild 4809 RMD160 7e92f2232f093cfda88a937b9d3e51d9cbee9a60 SHA1 a35d34d19f05a50e90684e006087deaaea3c8819 SHA256 f8b79841d55ef01798cf455342514bbeb8b6776908a3916c8b3d27a622d4de51
MISC ChangeLog 21288 RMD160 781e617d011b4249857056fa70f03b6b2bd63cba SHA1 43e171956284e0fc654c683f2a162bcd3f21c861 SHA256 7293ceb82967a15a0d96a7e1c9899454a7ca3a97b8b51280d3f2792f7428fd52
MISC metadata.xml 476 RMD160 da948210972738dfbd855236cecc30b22d9cdb3e SHA1 b31a990b8d57f0c32a9cccdd2c60958c1f1a847f SHA256 393328bc46a0f98b7e1be0f6b4bd2f8e3070762e23cbca17fa32f6eecd8a2af7
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.2.ebuild,v 1.9 2008/05/28 19:47:35 pva Exp $
inherit autotools elisp-common eutils flag-o-matic multilib versionator
# 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="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 )"
LICENSE="EPL"
SLOT="0"
KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="doc emacs hipe java kpoll odbc smp 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() {
unpack ${A}
cd "${S}"
use odbc || sed -i 's: odbc : :' lib/Makefile
# fix builds with --as-needed LDFLAGS, bug 203157
epatch "${FILESDIR}"/${P}-as-needed.patch
# make sure we only link ssl dynamically
# will not be integrated by upstream for various reasons
sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure #184419
if use hipe; then
ewarn
ewarn "You enabled High performance Erlang. Be aware that this extension"
ewarn "can break the compilation in many ways, especially on hardened systems."
ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us."
ewarn
fi
eautoreconf
}
src_compile() {
use java || export JAVAC=false
econf \
--enable-threads \
$(use_enable hipe) \
$(use_with ssl) \
$(use_enable kpoll kernel-poll) \
$(use_enable smp smp-support) \
|| die "econf failed"
emake -j1 || 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)
emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
dodoc AUTHORS README
dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
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"
grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | 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 "${ERL_LIBDIR}/${i##${WORKDIR}}"
done
for file in "${WORKDIR}"/man/man*/*.[1-9]; do
# Man page processing tools expect a capitalized "SEE ALSO" section
# header, has been reported upstream, should be fixed in R12
sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
# doman sucks so we can't use it
cp ${file} "${D}/${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=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
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
# prepare erl for SMP, fixes bug #188112
use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
"${D}/${ERL_LIBDIR}/bin/erl"
}
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
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.3.ebuild,v 1.5 2008/06/19 21:59:02 bluebird Exp $
inherit autotools elisp-common eutils flag-o-matic multilib versionator
# 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="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 )"
LICENSE="EPL"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc emacs hipe java kpoll odbc smp sctp 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}
sctp? ( net-misc/lksctp-tools )
tk? ( dev-lang/tk )"
S="${WORKDIR}/${MY_P}"
SITEFILE=50${PN}-gentoo.el
src_unpack() {
unpack ${A}
cd "${S}"
use odbc || sed -i 's: odbc : :' lib/Makefile
# fixes bug 226063, reported and accepted upstream for R12B-4
epatch "${FILESDIR}"/${P}-glibc28.patch
# make sure we only link ssl dynamically
# will not be integrated by upstream for various reasons
sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure #184419
if use hipe; then
ewarn
ewarn "You enabled High performance Erlang. Be aware that this extension"
ewarn "can break the compilation in many ways, especially on hardened systems."
ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us."
ewarn
fi
eautoreconf
}
src_compile() {
use java || export JAVAC=false
econf \
--enable-threads \
$(use_enable sctp) \
$(use_enable hipe) \
$(use_with ssl) \
$(use_enable kpoll kernel-poll) \
$(use_enable smp smp-support) \
|| die "econf failed"
emake -j1 || die "emake failed"
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 -j1 INSTALL_PREFIX="${D}" install || die "install failed"
dodoc AUTHORS README
dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
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"
grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | 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 "${ERL_LIBDIR}/${i##${WORKDIR}}"
done
for file in "${WORKDIR}"/man/man*/*.[1-9]; do
# Man page processing tools expect a capitalized "SEE ALSO" section
# header, has been reported upstream, should be fixed in R12
sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
# doman sucks so we can't use it
cp ${file} "${D}/${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=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
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
# prepare erl for SMP, fixes bug #188112
use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
"${D}/${ERL_LIBDIR}/bin/erl"
}
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
}
Erlang is a programming language designed at the Ericsson
Computer Science Laboratory. Open-source Erlang is being
released to help encourage the spread of Erlang outside
Ericsson.