Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (opfer)" <opfer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/erlang: ChangeLog erlang-12.2.0.ebuild
Date: Mon, 10 Dec 2007 20:52:43
Message-Id: E1J1pcE-00010w-9A@stork.gentoo.org
1 opfer 07/12/10 20:52:38
2
3 Modified: ChangeLog
4 Added: erlang-12.2.0.ebuild
5 Log:
6 version bump, fixes bug 201598
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.81 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.81&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.81&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.80&r2=1.81
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.80
20 retrieving revision 1.81
21 diff -u -r1.80 -r1.81
22 --- ChangeLog 10 Dec 2007 20:44:45 -0000 1.80
23 +++ ChangeLog 10 Dec 2007 20:52:37 -0000 1.81
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-lang/erlang
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.80 2007/12/10 20:44:45 opfer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.81 2007/12/10 20:52:37 opfer Exp $
29 +
30 +*erlang-12.2.0 (10 Dec 2007)
31 +
32 + 10 Dec 2007; Christian Faulhammer <opfer@g.o>
33 + +files/erlang-12.2.0-binary-append.patch, +erlang-12.2.0.ebuild:
34 + version bump, fixes bug 201598
35
36 10 Dec 2007; Christian Faulhammer <opfer@g.o>
37 -erlang-11.2.5-r2.ebuild:
38
39
40
41 1.1 dev-lang/erlang/erlang-12.2.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: erlang-12.2.0.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.0.ebuild,v 1.1 2007/12/10 20:52:37 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 src_unpack() {
91
92 unpack ${A}
93 cd "${S}"
94
95 epatch "${FILESDIR}"/${PN}-11.2.5-build.patch #184419
96
97 # needed for amd64
98 epatch "${FILESDIR}/${PN}-10.2.6-export-TARGET.patch"
99
100 # needed for FreeBSD
101 epatch "${FILESDIR}/${PN}-11.2.5-gethostbyname.patch"
102
103 # binary append on runtime has failures
104 # taken from upstream
105 epatch "${FILESDIR}/${P}-binary-append.patch"
106
107 use odbc || sed -i 's: odbc : :' lib/Makefile
108
109 # make sure we only link ssl dynamically
110 sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure #184419
111
112 if use hipe; then
113 ewarn
114 ewarn "You enabled High performance Erlang. Be aware that this extension"
115 ewarn "can break the compilation in many ways, especially on hardened systems."
116 ewarn "Don't cry, don't file bugs, just disable it!"
117 ewarn
118 fi
119 }
120
121 src_compile() {
122 use java || export JAVAC=false
123
124 econf \
125 --enable-threads \
126 $(use_enable hipe) \
127 $(use_with ssl) \
128 $(use_enable kpoll kernell-poll) \
129 $(use_enable smp smp-support) \
130 || die "econf failed"
131 emake -j1 || die "emake failed"
132
133 if use emacs ; then
134 pushd lib/tools/emacs
135 elisp-compile *.el
136 popd
137 fi
138 }
139
140 extract_version() {
141 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
142 }
143
144 src_install() {
145 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
146 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
147 local ERL_ERTS_VER=$(extract_version erts VSN)
148
149 emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
150 dodoc AUTHORS README
151
152 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
153 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
154 dosym "${ERL_LIBDIR}/bin/ear" /usr/bin/ear
155 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
156 dosym \
157 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
158 /usr/bin/erl_call
159 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
160
161 ## Remove ${D} from the following files
162 dosed "${ERL_LIBDIR}/bin/erl"
163 dosed "${ERL_LIBDIR}/bin/start"
164 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
165
166 ## Clean up the no longer needed files
167 rm "${D}/${ERL_LIBDIR}/Install"
168
169 if use doc ; then
170 for i in "${WORKDIR}"/man/man* ; do
171 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
172 done
173 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
174 # Man page processing tools expect a capitalized "SEE ALSO" section
175 # header, has been reported upstream, should be fixed in R12
176 sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
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 and tell the maintainers."
205 elog
206 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as R12B"
207 elog
208 }
209
210 pkg_postrm() {
211 use emacs && elisp-site-regen
212 }
213
214
215
216 --
217 gentoo-commits@g.o mailing list