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