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-14.1.ebuild
Date: Mon, 28 Jun 2010 11:16:31
Message-Id: 20100628111625.C304D2C621@corvid.gentoo.org
1 fauli 10/06/28 11:16:25
2
3 Modified: ChangeLog
4 Added: erlang-14.1.ebuild
5 Log:
6 Beta version bump for bug 325073, still has --as-needed issues
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.193 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.193&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.193&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.192&r2=1.193
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.192
20 retrieving revision 1.193
21 diff -u -r1.192 -r1.193
22 --- ChangeLog 27 Jun 2010 08:04:46 -0000 1.192
23 +++ ChangeLog 28 Jun 2010 11:16:25 -0000 1.193
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/erlang
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.192 2010/06/27 08:04:46 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.193 2010/06/28 11:16:25 fauli Exp $
29 +
30 +*erlang-14.1 (28 Jun 2010)
31 +
32 + 28 Jun 2010; Christian Faulhammer <fauli@g.o> +erlang-14.1.ebuild:
33 + Beta version bump for bug 325073, still has --as-needed issues
34
35 27 Jun 2010; Christian Faulhammer <fauli@g.o>
36 -erlang-13.2.2.ebuild, -erlang-13.2.3.ebuild:
37
38
39
40 1.1 dev-lang/erlang/erlang-14.1.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-14.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: erlang-14.1.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-14.1.ebuild,v 1.1 2010/06/28 11:16:25 fauli Exp $
50
51 EAPI=3
52 WX_GTK_VER="2.8"
53
54 inherit autotools elisp-common eutils multilib versionator wxwidgets
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 ERL_VER=($(get_version_components))
65 MY_PV="R$(get_major_version)A${ERL_VER[2]}"
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 http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
74 doc? ( http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
75
76 LICENSE="EPL"
77 SLOT="0"
78 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
79 IUSE="doc emacs hipe java kpoll odbc smp sctp ssl tk wxwidgets"
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 wxwidgets? ( 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 pkg_setup() {
96 use wxwidgets && wxwidgets_pkg_setup
97 }
98
99 src_prepare() {
100 use odbc || sed -i 's: odbc : :' lib/Makefile
101
102 if ! use wxwidgets; then
103 sed -i 's: wx : :' lib/Makefile
104 rm -rf lib/wx
105 fi
106
107 if use hipe; then
108 ewarn
109 ewarn "You enabled High performance Erlang. Be aware that this extension"
110 ewarn "can break the compilation in many ways, especially on hardened systems."
111 ewarn "Don't cry, don't file bugs, just disable it! If you have a fix, tell us though on Bugzilla."
112 ewarn
113 fi
114 eautoreconf
115 }
116
117 src_configure() {
118 use java || export JAVAC=false
119
120 econf \
121 --enable-threads \
122 --enable-shared-zlib \ \
123 $(use_enable sctp) \
124 $(use_enable hipe) \
125 $(use_with ssl ssl "${EPREFIX}"/usr) \
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.md
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 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" || die
166 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" || die
167 grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
168
169 ## Clean up the no longer needed files
170 rm "${ED}/${ERL_LIBDIR}/Install"||die
171
172 for i in "${WORKDIR}"/man/man* ; do
173 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
174 done
175 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
176 # doman sucks so we can't use it
177 cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
178 done
179 # extend MANPATH, so the normal man command can find it
180 # see bug 189639
181 dodir /etc/env.d/
182 echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
183
184 if use doc ; then
185 dohtml -A README,erl,hrl,c,h,kwc,info -r \
186 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
187 fi
188
189 if use emacs ; then
190 pushd "${S}"
191 elisp-install erlang lib/tools/emacs/*.{el,elc}
192 sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
193 "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
194 elisp-site-file-install "${T}"/${SITEFILE}
195 popd
196 fi
197
198 # prepare erl for SMP, fixes bug #188112
199 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
200 "${ED}/${ERL_LIBDIR}/bin/erl"
201 }
202
203 pkg_postinst() {
204 use emacs && elisp-site-regen
205 elog
206 elog "If you need a symlink to one of Erlang's binaries,"
207 elog "please open a bug on http://bugs.gentoo.org/"
208 elog
209 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
210 elog
211 }
212
213 pkg_postrm() {
214 use emacs && elisp-site-regen
215 }