Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/erlang: ChangeLog erlang-12.2.4-r1.ebuild
Date: Fri, 03 Oct 2008 18:52:10
Message-Id: E1Klpl1-0001xa-JU@stork.gentoo.org
1 opfer 08/10/03 18:52:07
2
3 Modified: ChangeLog
4 Added: erlang-12.2.4-r1.ebuild
5 Log:
6 fix severe runtime issues with get_tcp function, taken from upstream as reported in bug 239173 by Oscar Hellström <oscar AT oscarh DOT net>
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.138 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.138&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.138&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.137&r2=1.138
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.137
20 retrieving revision 1.138
21 diff -u -r1.137 -r1.138
22 --- ChangeLog 3 Sep 2008 15:13:23 -0000 1.137
23 +++ ChangeLog 3 Oct 2008 18:52:07 -0000 1.138
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-lang/erlang
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.137 2008/09/03 15:13:23 opfer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.138 2008/10/03 18:52:07 opfer Exp $
29 +
30 +*erlang-12.2.4-r1 (03 Oct 2008)
31 +
32 + 03 Oct 2008; Christian Faulhammer <opfer@g.o>
33 + +files/erlang-12.2.4-inet_drv.patch, +erlang-12.2.4-r1.ebuild:
34 + fix severe runtime issues with get_tcp function, taken from upstream as
35 + reported in bug 239173 by Oscar Hellström <oscar AT oscarh DOT net>
36
37 *erlang-12.2.4 (03 Sep 2008)
38
39
40
41
42 1.1 dev-lang/erlang/erlang-12.2.4-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.4-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.4-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: erlang-12.2.4-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.4-r1.ebuild,v 1.1 2008/10/03 18:52:07 opfer Exp $
52
53 inherit autotools elisp-common eutils flag-o-matic multilib versionator
54
55 # NOTE: If you need symlinks for binaries please tell maintainers or
56 # open up a bug to let it be created.
57
58 # erlang uses a really weird versioning scheme which caused quite a few problems
59 # already. Thus we do a slight modification converting all letters to digits to
60 # make it more sane (see e.g. #26420)
61
62 # the next line selects the right source.
63 MY_PV="R$(get_major_version)B-$(get_version_component_range 3)"
64
65 # ATTN!! Take care when processing the C, etc version!
66 MY_P=otp_src_${MY_PV}
67
68 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
69 HOMEPAGE="http://www.erlang.org/"
70 SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
71 doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
72 http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
73
74 LICENSE="EPL"
75 SLOT="0"
76 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
77 IUSE="doc emacs hipe java kpoll odbc smp sctp ssl tk"
78
79 RDEPEND=">=dev-lang/perl-5.6.1
80 ssl? ( >=dev-libs/openssl-0.9.7d )
81 emacs? ( virtual/emacs )
82 java? ( >=virtual/jdk-1.2 )
83 odbc? ( dev-db/unixODBC )"
84 DEPEND="${RDEPEND}
85 sctp? ( net-misc/lksctp-tools )
86 tk? ( dev-lang/tk )"
87
88 S="${WORKDIR}/${MY_P}"
89
90 SITEFILE=50${PN}-gentoo.el
91
92 src_unpack() {
93 unpack ${A}
94 cd "${S}"
95
96 use odbc || sed -i 's: odbc : :' lib/Makefile
97
98 # Fix build on Gentoo/FreeBSD, upstream once accepted it but restored previous behaviour
99 # because of failures on vanilla BSD
100 epatch "${FILESDIR}"/${PN}-12.2.3-gethostbyname.patch
101 # incorporated by upstream for 12B-5 or later, fixes runtime issues from bug 239173
102 epatch "${FILESDIR}"/${P}-inet_drv.patch
103
104 if use hipe; then
105 ewarn
106 ewarn "You enabled High performance Erlang. Be aware that this extension"
107 ewarn "can break the compilation in many ways, especially on hardened systems."
108 ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us."
109 ewarn
110 fi
111 eautoreconf
112 }
113
114 src_compile() {
115 use java || export JAVAC=false
116
117 econf \
118 --enable-threads \
119 $(use_enable sctp) \
120 $(use_enable hipe) \
121 $(use_with ssl) \
122 $(use_enable ssl dynamic-ssl-lib) \
123 $(use_enable kpoll kernel-poll) \
124 $(use_enable smp smp-support) \
125 || die "econf failed"
126 emake -j1 || die "emake failed"
127
128 if use emacs ; then
129 pushd lib/tools/emacs
130 elisp-compile *.el || die
131 popd
132 fi
133 }
134
135 extract_version() {
136 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
137 }
138
139 src_install() {
140 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
141 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
142 local ERL_ERTS_VER=$(extract_version erts VSN)
143
144 emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
145 dodoc AUTHORS README
146
147 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
148 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
149 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
150 dosym \
151 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
152 /usr/bin/erl_call
153 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
154
155 ## Remove ${D} from the following files
156 dosed "${ERL_LIBDIR}/bin/erl"
157 dosed "${ERL_LIBDIR}/bin/start"
158 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
159
160 ## Clean up the no longer needed files
161 rm "${D}/${ERL_LIBDIR}/Install"
162
163 if use doc ; then
164 for i in "${WORKDIR}"/man/man* ; do
165 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
166 done
167 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
168 # Man page processing tools expect a capitalized "SEE ALSO" section
169 # header, has been reported upstream, should be fixed in R12
170 sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
171 # doman sucks so we can't use it
172 cp ${file} "${D}/${ERL_LIBDIR}"/man/man${file##*.}/
173 done
174 # extend MANPATH, so the normal man command can find it
175 # see bug 189639
176 dodir /etc/env.d/
177 echo "MANPATH=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
178 dohtml -A README,erl,hrl,c,h,kwc,info -r \
179 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
180 fi
181
182 if use emacs ; then
183 pushd "${S}"
184 elisp-install erlang lib/tools/emacs/*.{el,elc}
185 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
186 popd
187 fi
188
189 # prepare erl for SMP, fixes bug #188112
190 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
191 "${D}/${ERL_LIBDIR}/bin/erl"
192 }
193
194 pkg_postinst() {
195 use emacs && elisp-site-regen
196 elog
197 elog "If you need a symlink to one of Erlang's binaries,"
198 elog "please open a bug on http://bugs.gentoo.org/"
199 elog
200 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
201 elog
202 }
203
204 pkg_postrm() {
205 use emacs && elisp-site-regen
206 }