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.1.ebuild
Date: Thu, 07 Feb 2008 14:42:41
Message-Id: E1JN7xW-0007rF-47@stork.gentoo.org
1 opfer 08/02/07 14:42:38
2
3 Modified: ChangeLog
4 Added: erlang-12.2.1.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.99 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 25 Jan 2008 07:17:49 -0000 1.98
23 +++ ChangeLog 7 Feb 2008 14:42:37 -0000 1.99
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.98 2008/01/25 07:17:49 opfer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.99 2008/02/07 14:42:37 opfer Exp $
29 +
30 +*erlang-12.2.1 (07 Feb 2008)
31 +
32 + 07 Feb 2008; Christian Faulhammer <opfer@g.o>
33 + +erlang-12.2.1.ebuild:
34 + version bump
35
36 25 Jan 2008; Christian Faulhammer <opfer@g.o>
37 +files/erlang-11.2.5-hipe.patch,
38
39
40
41 1.1 dev-lang/erlang/erlang-12.2.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: erlang-12.2.1.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.1.ebuild,v 1.1 2008/02/07 14:42: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 use odbc || sed -i 's: odbc : :' lib/Makefile
96
97 # make sure we only link ssl dynamically
98 # will not be integrated by upstream for various reasons
99 sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure #184419
100
101 if use hipe; then
102 ewarn
103 ewarn "You enabled High performance Erlang. Be aware that this extension"
104 ewarn "can break the compilation in many ways, especially on hardened systems."
105 ewarn "Don't cry, don't file bugs, just disable it!"
106 ewarn
107 fi
108 }
109
110 src_compile() {
111 use java || export JAVAC=false
112
113 econf \
114 --enable-threads \
115 $(use_enable hipe) \
116 $(use_with ssl) \
117 $(use_enable kpoll kernell-poll) \
118 $(use_enable smp smp-support) \
119 || die "econf failed"
120 emake -j1 || die "emake failed"
121
122 if use emacs ; then
123 pushd lib/tools/emacs
124 elisp-compile *.el
125 popd
126 fi
127 }
128
129 extract_version() {
130 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
131 }
132
133 src_install() {
134 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
135 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
136 local ERL_ERTS_VER=$(extract_version erts VSN)
137
138 emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
139 dodoc AUTHORS README
140
141 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
142 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
143 dosym "${ERL_LIBDIR}/bin/ear" /usr/bin/ear
144 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
145 dosym \
146 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
147 /usr/bin/erl_call
148 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
149
150 ## Remove ${D} from the following files
151 dosed "${ERL_LIBDIR}/bin/erl"
152 dosed "${ERL_LIBDIR}/bin/start"
153 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
154
155 ## Clean up the no longer needed files
156 rm "${D}/${ERL_LIBDIR}/Install"
157
158 if use doc ; then
159 for i in "${WORKDIR}"/man/man* ; do
160 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
161 done
162 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
163 # Man page processing tools expect a capitalized "SEE ALSO" section
164 # header, has been reported upstream, should be fixed in R12
165 sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
166 # doman sucks so we can't use it
167 cp ${file} "${D}/${ERL_LIBDIR}"/man/man${file##*.}/
168 done
169 # extend MANPATH, so the normal man command can find it
170 # see bug 189639
171 dodir /etc/env.d/
172 echo "MANPATH=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
173 dohtml -A README,erl,hrl,c,h,kwc,info -r \
174 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
175 fi
176
177 if use emacs ; then
178 pushd "${S}"
179 elisp-install erlang lib/tools/emacs/*.{el,elc}
180 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
181 popd
182 fi
183
184 # prepare erl for SMP, fixes bug #188112
185 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
186 "${D}/${ERL_LIBDIR}/bin/erl"
187 }
188
189 pkg_postinst() {
190 use emacs && elisp-site-regen
191 elog
192 elog "If you need a symlink to one of erlang's binaries,"
193 elog "please open a bug and tell the maintainers."
194 elog
195 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as R12B-1"
196 elog
197 }
198
199 pkg_postrm() {
200 use emacs && elisp-site-regen
201 }
202
203
204
205 --
206 gentoo-commits@l.g.o mailing list