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