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