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: ChangeLog erlang-13.2.ebuild
Date: Wed, 22 Apr 2009 06:51:15
Message-Id: E1LwWIa-0000ze-Ac@stork.gentoo.org
1 fauli 09/04/22 06:51:12
2
3 Modified: ChangeLog
4 Added: erlang-13.2.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.6.7/cvs/Linux i686)
8
9 Revision Changes Path
10 1.159 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.159&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.159&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.158&r2=1.159
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.158
20 retrieving revision 1.159
21 diff -u -r1.158 -r1.159
22 --- ChangeLog 20 Apr 2009 17:24:46 -0000 1.158
23 +++ ChangeLog 22 Apr 2009 06:51:12 -0000 1.159
24 @@ -1,6 +1,11 @@
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.158 2009/04/20 17:24:46 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.159 2009/04/22 06:51:12 fauli Exp $
29 +
30 +*erlang-13.2 (22 Apr 2009)
31 +
32 + 22 Apr 2009; Christian Faulhammer <fauli@g.o> +erlang-13.2.ebuild:
33 + version bump
34
35 20 Apr 2009; Christian Faulhammer <fauli@g.o> erlang-13.1-r1:
36 Note in comment, that the LDFLAGS patch has been accepted upstream
37
38
39
40 1.1 dev-lang/erlang/erlang-13.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-13.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-13.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: erlang-13.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-13.2.ebuild,v 1.1 2009/04/22 06:51:12 fauli Exp $
50
51 EAPI=2
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"
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 wxwindows"
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 wxwindows? ( x11-libs/wxGTK:2.8[opengl] )
86 sctp? ( net-misc/lksctp-tools )
87 tk? ( dev-lang/tk )"
88
89 S="${WORKDIR}/${MY_P}"
90
91 SITEFILE=50${PN}-gentoo.el
92
93 src_prepare() {
94 use odbc || sed -i 's: odbc : :' lib/Makefile
95 if ! use wxwindows; then
96 sed -i 's: wx : :' lib/Makefile
97 rm -rf lib/wx
98 fi
99 epatch "${FILESDIR}"/${PN}-13.1-LDFLAGS.patch # bug 263129, accepted
100 # upstream for R13B1
101 if use hipe; then
102 ewarn
103 ewarn "You enabled High performance Erlang. Be aware that this extension"
104 ewarn "can break the compilation in many ways, especially on hardened systems."
105 ewarn "Don't cry, don't file bugs, just disable it! If you have a fix, tell us though on Bugzilla."
106 ewarn
107 fi
108 eautoreconf
109 }
110
111 src_configure() {
112 use java || export JAVAC=false
113
114 econf \
115 --enable-threads \
116 $(use_enable sctp) \
117 $(use_enable hipe) \
118 $(use_with ssl) \
119 $(use_enable ssl dynamic-ssl-lib) \
120 $(use_enable kpoll kernel-poll) \
121 $(use_enable smp smp-support) \
122 || die
123 }
124
125 src_compile() {
126 use java || export JAVAC=false
127 emake -j1 || die
128
129 if use emacs ; then
130 pushd lib/tools/emacs
131 elisp-compile *.el || die
132 popd
133 fi
134 }
135
136 extract_version() {
137 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
138 }
139
140 src_install() {
141 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
142 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
143 local ERL_ERTS_VER=$(extract_version erts VSN)
144
145 emake -j1 INSTALL_PREFIX="${D}" install || die
146 dodoc AUTHORS README
147
148 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
149 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
150 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
151 dosym \
152 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
153 /usr/bin/erl_call
154 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
155
156 ## Remove ${D} from the following files
157 dosed "${ERL_LIBDIR}/bin/erl"
158 dosed "${ERL_LIBDIR}/bin/start"
159 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
160
161 ## Clean up the no longer needed files
162 rm "${D}/${ERL_LIBDIR}/Install"
163
164 if use doc ; then
165 for i in "${WORKDIR}"/man/man* ; do
166 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
167 done
168 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
169 # doman sucks so we can't use it
170 cp ${file} "${D}/${ERL_LIBDIR}"/man/man${file##*.}/
171 done
172 # extend MANPATH, so the normal man command can find it
173 # see bug 189639
174 dodir /etc/env.d/
175 echo "MANPATH=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
176 dohtml -A README,erl,hrl,c,h,kwc,info -r \
177 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
178 fi
179
180 if use emacs ; then
181 pushd "${S}"
182 elisp-install erlang lib/tools/emacs/*.{el,elc}
183 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
184 popd
185 fi
186
187 # prepare erl for SMP, fixes bug #188112
188 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
189 "${D}/${ERL_LIBDIR}/bin/erl"
190 }
191
192 pkg_postinst() {
193 use emacs && elisp-site-regen
194 elog
195 elog "If you need a symlink to one of Erlang's binaries,"
196 elog "please open a bug on http://bugs.gentoo.org/"
197 elog
198 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
199 elog
200 }
201
202 pkg_postrm() {
203 use emacs && elisp-site-regen
204 }