Gentoo Archives: gentoo-commits

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