Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/erlang: erlang-14.2.3.ebuild erlang-14.2.2-r1.ebuild ChangeLog erlang-14.2.4.ebuild
Date: Wed, 30 Nov 2011 15:50:24
Message-Id: 20111130155014.F31B72004B@flycatcher.gentoo.org
1 djc 11/11/30 15:50:14
2
3 Modified: erlang-14.2.3.ebuild erlang-14.2.2-r1.ebuild
4 ChangeLog
5 Added: erlang-14.2.4.ebuild
6 Log:
7 Version bump erlang to 14.2.4, fix bug 383697, remove blocker.
8
9 (Portage version: 2.1.10.39/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.2 dev-lang/erlang/erlang-14.2.3.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild?r1=1.1&r2=1.2
17
18 Index: erlang-14.2.3.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- erlang-14.2.3.ebuild 6 Jun 2011 08:53:33 -0000 1.1
25 +++ erlang-14.2.3.ebuild 30 Nov 2011 15:50:14 -0000 1.2
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2011 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild,v 1.1 2011/06/06 08:53:33 djc Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.3.ebuild,v 1.2 2011/11/30 15:50:14 djc Exp $
31
32 EAPI=3
33 WX_GTK_VER="2.8"
34 @@ -33,7 +33,6 @@
35 IUSE="doc emacs halfword hipe java kpoll odbc smp sctp ssl tk wxwidgets"
36
37 RDEPEND=">=dev-lang/perl-5.6.1
38 - !<app-accessibility/speech-dispatcher-0.7.1-r1
39 ssl? ( >=dev-libs/openssl-0.9.7d )
40 emacs? ( virtual/emacs )
41 java? ( >=virtual/jdk-1.2 )
42
43
44
45 1.2 dev-lang/erlang/erlang-14.2.2-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild?rev=1.2&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild?rev=1.2&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild?r1=1.1&r2=1.2
50
51 Index: erlang-14.2.2-r1.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild,v
54 retrieving revision 1.1
55 retrieving revision 1.2
56 diff -u -r1.1 -r1.2
57 --- erlang-14.2.2-r1.ebuild 4 May 2011 08:11:31 -0000 1.1
58 +++ erlang-14.2.2-r1.ebuild 30 Nov 2011 15:50:14 -0000 1.2
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild,v 1.1 2011/05/04 08:11:31 djc Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.2-r1.ebuild,v 1.2 2011/11/30 15:50:14 djc Exp $
64
65 EAPI=3
66 WX_GTK_VER="2.8"
67 @@ -33,7 +33,6 @@
68 IUSE="doc emacs halfword hipe java kpoll odbc smp sctp ssl tk wxwidgets"
69
70 RDEPEND=">=dev-lang/perl-5.6.1
71 - !<app-accessibility/speech-dispatcher-0.7.1-r1
72 ssl? ( >=dev-libs/openssl-0.9.7d )
73 emacs? ( virtual/emacs )
74 java? ( >=virtual/jdk-1.2 )
75
76
77
78 1.212 dev-lang/erlang/ChangeLog
79
80 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.212&view=markup
81 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.212&content-type=text/plain
82 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.211&r2=1.212
83
84 Index: ChangeLog
85 ===================================================================
86 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
87 retrieving revision 1.211
88 retrieving revision 1.212
89 diff -u -r1.211 -r1.212
90 --- ChangeLog 6 Jun 2011 08:53:33 -0000 1.211
91 +++ ChangeLog 30 Nov 2011 15:50:14 -0000 1.212
92 @@ -1,6 +1,11 @@
93 # ChangeLog for dev-lang/erlang
94 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
95 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.211 2011/06/06 08:53:33 djc Exp $
96 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.212 2011/11/30 15:50:14 djc Exp $
97 +
98 +*erlang-14.2.4 (30 Nov 2011)
99 +
100 + 30 Nov 2011; Dirkjan Ochtman <djc@g.o> +erlang-14.2.4.ebuild:
101 + Version bump to 14.2.4, fix bug 383697, remove blocker.
102
103 *erlang-14.2.3 (06 Jun 2011)
104
105
106
107
108 1.1 dev-lang/erlang/erlang-14.2.4.ebuild
109
110 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.4.ebuild?rev=1.1&view=markup
111 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.2.4.ebuild?rev=1.1&content-type=text/plain
112
113 Index: erlang-14.2.4.ebuild
114 ===================================================================
115 # Copyright 1999-2011 Gentoo Foundation
116 # Distributed under the terms of the GNU General Public License v2
117 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.2.4.ebuild,v 1.1 2011/11/30 15:50:14 djc Exp $
118
119 EAPI=3
120 WX_GTK_VER="2.8"
121
122 inherit elisp-common eutils java-pkg-opt-2 multilib versionator wxwidgets
123
124 # NOTE: If you need symlinks for binaries please tell maintainers or
125 # open up a bug to let it be created.
126
127 # erlang uses a really weird versioning scheme which caused quite a few problems
128 # already. Thus we do a slight modification converting all letters to digits to
129 # make it more sane (see e.g. #26420)
130
131 # the next line selects the right source.
132 ERL_VER=($(get_version_components))
133 MY_PV="R$(get_major_version)B0${ERL_VER[2]}"
134
135 # ATTN!! Take care when processing the C, etc version!
136 MY_P=otp_src_${MY_PV}
137
138 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
139 HOMEPAGE="http://www.erlang.org/"
140 SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
141 http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
142 doc? ( http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
143
144 LICENSE="EPL"
145 SLOT="0"
146 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
147 IUSE="doc emacs halfword hipe java kpoll odbc smp sctp ssl tk wxwidgets"
148
149 RDEPEND=">=dev-lang/perl-5.6.1
150 ssl? ( >=dev-libs/openssl-0.9.7d )
151 emacs? ( virtual/emacs )
152 java? ( >=virtual/jdk-1.2 )
153 odbc? ( dev-db/unixODBC )"
154 DEPEND="${RDEPEND}
155 wxwidgets? ( x11-libs/wxGTK:2.8[opengl] )
156 sctp? ( net-misc/lksctp-tools )
157 tk? ( dev-lang/tk )"
158
159 S="${WORKDIR}/${MY_P}"
160
161 SITEFILE=50${PN}-gentoo.el
162
163 pkg_setup() {
164 use wxwidgets && wxwidgets_pkg_setup
165 if use halfword ; then
166 use amd64 || die "halfword support is limited to amd64"
167 fi
168 }
169
170 src_prepare() {
171 use odbc || sed -i 's: odbc : :' lib/Makefile
172
173 # bug 263129, don't ignore LDFLAGS, reported upstream
174 sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in || die
175
176 if ! use wxwidgets; then
177 sed -i 's: wx : :' lib/Makefile
178 rm -rf lib/wx
179 fi
180
181 # Nasty workaround, reported upstream
182 cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in || die
183
184 # prevent configure from injecting -m32 by default on Darwin, bug #334155
185 # Nasty hack
186 sed -i -e 's/Darwin-i386/Darwin-NO/' configure.in || die
187 sed -i -e '/\<\(LD\|C\)FLAGS="-m32/s/-m32//' erts/configure.in || die
188
189 # bug 383697
190 sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c || die
191 }
192
193 src_configure() {
194 use java || export JAVAC=false
195
196 econf \
197 --enable-threads \
198 --enable-shared-zlib \ \
199 $(use_enable sctp) \
200 $(use_enable halfword halfword-emulator) \
201 $(use_enable hipe) \
202 $(use_with ssl ssl "${EPREFIX}"/usr) \
203 $(use_enable ssl dynamic-ssl-lib) \
204 $(use_enable kpoll kernel-poll) \
205 $(use_enable smp smp-support) \
206 || die
207 }
208
209 src_compile() {
210 use java || export JAVAC=false
211 emake -j1 || die
212
213 if use emacs ; then
214 pushd lib/tools/emacs
215 elisp-compile *.el || die
216 popd
217 fi
218 }
219
220 extract_version() {
221 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
222 }
223
224 src_install() {
225 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
226 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
227 local ERL_ERTS_VER=$(extract_version erts VSN)
228
229 emake -j1 INSTALL_PREFIX="${D}" install || die
230 dodoc AUTHORS README.md
231
232 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
233 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
234 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
235 dosym \
236 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
237 /usr/bin/erl_call
238 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
239 use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
240
241 ## Remove ${D} from the following files
242 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" || die
243 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" || die
244 grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
245
246 ## Clean up the no longer needed files
247 rm "${ED}/${ERL_LIBDIR}/Install"||die
248
249 for i in "${WORKDIR}"/man/man* ; do
250 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
251 done
252 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
253 # doman sucks so we can't use it
254 cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
255 done
256 # extend MANPATH, so the normal man command can find it
257 # see bug 189639
258 dodir /etc/env.d/
259 echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
260
261 if use doc ; then
262 dohtml -A README,erl,hrl,c,h,kwc,info -r \
263 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
264 fi
265
266 if use emacs ; then
267 pushd "${S}"
268 elisp-install erlang lib/tools/emacs/*.{el,elc}
269 sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
270 "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
271 elisp-site-file-install "${T}"/${SITEFILE}
272 popd
273 fi
274
275 # prepare erl for SMP, fixes bug #188112
276 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
277 "${ED}/${ERL_LIBDIR}/bin/erl"
278
279 newinitd "${FILESDIR}"/epmd.init epmd || die
280 }
281
282 pkg_postinst() {
283 use emacs && elisp-site-regen
284 elog
285 elog "If you need a symlink to one of Erlang's binaries,"
286 elog "please open a bug on http://bugs.gentoo.org/"
287 elog
288 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
289 elog
290 }
291
292 pkg_postrm() {
293 use emacs && elisp-site-regen
294 }