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.1.ebuild
Date: Tue, 07 Apr 2009 10:46:11
Message-Id: E1Lr8oj-0005CU-8W@stork.gentoo.org
1 fauli 09/04/07 10:46:09
2
3 Modified: ChangeLog
4 Added: erlang-13.1.ebuild
5 Log:
6 version bump for 13A beta version, brings in WxWindows bindings, ported ebuild to EAPI 2
7 (Portage version: 2.1.6.7/cvs/Linux i686)
8
9 Revision Changes Path
10 1.156 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.156&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.156&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.155&r2=1.156
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.155
20 retrieving revision 1.156
21 diff -u -r1.155 -r1.156
22 --- ChangeLog 24 Mar 2009 16:17:32 -0000 1.155
23 +++ ChangeLog 7 Apr 2009 10:46:09 -0000 1.156
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.155 2009/03/24 16:17:32 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.156 2009/04/07 10:46:09 fauli Exp $
29 +
30 +*erlang-13.1 (07 Apr 2009)
31 +
32 + 07 Apr 2009; Christian Faulhammer <fauli@g.o> +erlang-13.1.ebuild:
33 + version bump for 13A beta version, brings in WxWindows bindings, ported
34 + ebuild to EAPI 2
35
36 24 Mar 2009; Christian Faulhammer <fauli@g.o>
37 -erlang-12.2.5.ebuild:
38
39
40
41 1.1 dev-lang/erlang/erlang-13.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-13.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-13.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: erlang-13.1.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.1.ebuild,v 1.1 2009/04/07 10:46:09 fauli Exp $
51
52 EAPI=2
53
54 inherit autotools elisp-common eutils flag-o-matic multilib versionator
55
56 # NOTE: If you need symlinks for binaries please tell maintainers or
57 # open up a bug to let it be created.
58
59 # erlang uses a really weird versioning scheme which caused quite a few problems
60 # already. Thus we do a slight modification converting all letters to digits to
61 # make it more sane (see e.g. #26420)
62
63 # the next line selects the right source.
64 MY_PV="R$(get_major_version)A"
65
66 # ATTN!! Take care when processing the C, etc version!
67 MY_P=otp_src_${MY_PV}
68
69 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
70 HOMEPAGE="http://www.erlang.org/"
71 SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
72 doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
73 http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
74
75 LICENSE="EPL"
76 SLOT="0"
77 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
78 IUSE="doc emacs hipe java kpoll odbc smp sctp ssl tk wxwindows"
79
80 RDEPEND=">=dev-lang/perl-5.6.1
81 ssl? ( >=dev-libs/openssl-0.9.7d )
82 emacs? ( virtual/emacs )
83 java? ( >=virtual/jdk-1.2 )
84 odbc? ( dev-db/unixODBC )"
85 DEPEND="${RDEPEND}
86 wxwindows? ( x11-libs/wxGTK:2.8[opengl] )
87 sctp? ( net-misc/lksctp-tools )
88 tk? ( dev-lang/tk )"
89
90 S="${WORKDIR}/${MY_P}"
91
92 SITEFILE=50${PN}-gentoo.el
93
94 src_prepare() {
95 use odbc || sed -i 's: odbc : :' lib/Makefile
96 if ! use wxwindows; then
97 sed -i 's: wx : :' lib/Makefile
98 rm -rf lib/wx
99 fi
100 if use hipe; then
101 ewarn
102 ewarn "You enabled High performance Erlang. Be aware that this extension"
103 ewarn "can break the compilation in many ways, especially on hardened systems."
104 ewarn "Don't cry, don't file bugs, just disable it! If you have a fix, tell us though on Bugzilla."
105 ewarn
106 fi
107 eautoreconf
108
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 }