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.4.ebuild
Date: Wed, 03 Sep 2008 15:13:28
Message-Id: E1Kau2u-0003No-JX@stork.gentoo.org
1 opfer 08/09/03 15:13:24
2
3 Modified: ChangeLog
4 Added: erlang-12.2.4.ebuild
5 Log:
6 version bump for bug 236573
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.137 dev-lang/erlang/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.137&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.137&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.136&r2=1.137
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
19 retrieving revision 1.136
20 retrieving revision 1.137
21 diff -u -r1.136 -r1.137
22 --- ChangeLog 29 Aug 2008 10:08:15 -0000 1.136
23 +++ ChangeLog 3 Sep 2008 15:13:23 -0000 1.137
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.136 2008/08/29 10:08:15 opfer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.137 2008/09/03 15:13:23 opfer Exp $
29 +
30 +*erlang-12.2.4 (03 Sep 2008)
31 +
32 + 03 Sep 2008; Christian Faulhammer <opfer@g.o>
33 + +erlang-12.2.4.ebuild:
34 + version bump for bug 236573
35
36 29 Aug 2008; Christian Faulhammer <opfer@g.o>
37 erlang-12.2.3-r1.ebuild:
38
39
40
41 1.1 dev-lang/erlang/erlang-12.2.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/erlang/erlang-12.2.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: erlang-12.2.4.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.4.ebuild,v 1.1 2008/09/03 15:13:24 opfer Exp $
51
52 inherit autotools elisp-common eutils flag-o-matic multilib versionator
53
54 # NOTE: If you need symlinks for binaries please tell maintainers or
55 # 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 sctp 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 sctp? ( net-misc/lksctp-tools )
85 tk? ( dev-lang/tk )"
86
87 S="${WORKDIR}/${MY_P}"
88
89 SITEFILE=50${PN}-gentoo.el
90
91 src_unpack() {
92 unpack ${A}
93 cd "${S}"
94
95 use odbc || sed -i 's: odbc : :' lib/Makefile
96
97 # Fix build on Gentoo/FreeBSD, upstream once accepted it but restored previous behaviour
98 # because of failures on vanilla BSD
99 epatch "${FILESDIR}"/${PN}-12.2.3-gethostbyname.patch
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! If you have fix, tell us."
106 ewarn
107 fi
108 eautoreconf
109 }
110
111 src_compile() {
112 use java || export JAVAC=false
113
114 econf \
115 --enable-threads \
116 $(use_enable sctp) \
117 $(use_enable hipe) \
118 $(use_with ssl) \
119 $(use_enable ssl dynamic-ssl-lib) \
120 $(use_enable kpoll kernel-poll) \
121 $(use_enable smp smp-support) \
122 || die "econf failed"
123 emake -j1 || die "emake failed"
124
125 if use emacs ; then
126 pushd lib/tools/emacs
127 elisp-compile *.el || die
128 popd
129 fi
130 }
131
132 extract_version() {
133 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
134 }
135
136 src_install() {
137 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
138 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
139 local ERL_ERTS_VER=$(extract_version erts VSN)
140
141 emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
142 dodoc AUTHORS README
143
144 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
145 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
146 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
147 dosym \
148 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
149 /usr/bin/erl_call
150 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
151
152 ## Remove ${D} from the following files
153 dosed "${ERL_LIBDIR}/bin/erl"
154 dosed "${ERL_LIBDIR}/bin/start"
155 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
156
157 ## Clean up the no longer needed files
158 rm "${D}/${ERL_LIBDIR}/Install"
159
160 if use doc ; then
161 for i in "${WORKDIR}"/man/man* ; do
162 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
163 done
164 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
165 # Man page processing tools expect a capitalized "SEE ALSO" section
166 # header, has been reported upstream, should be fixed in R12
167 sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
168 # doman sucks so we can't use it
169 cp ${file} "${D}/${ERL_LIBDIR}"/man/man${file##*.}/
170 done
171 # extend MANPATH, so the normal man command can find it
172 # see bug 189639
173 dodir /etc/env.d/
174 echo "MANPATH=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
175 dohtml -A README,erl,hrl,c,h,kwc,info -r \
176 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
177 fi
178
179 if use emacs ; then
180 pushd "${S}"
181 elisp-install erlang lib/tools/emacs/*.{el,elc}
182 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
183 popd
184 fi
185
186 # prepare erl for SMP, fixes bug #188112
187 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
188 "${D}/${ERL_LIBDIR}/bin/erl"
189 }
190
191 pkg_postinst() {
192 use emacs && elisp-site-regen
193 elog
194 elog "If you need a symlink to one of Erlang's binaries,"
195 elog "please open a bug on http://bugs.gentoo.org/"
196 elog
197 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
198 elog
199 }
200
201 pkg_postrm() {
202 use emacs && elisp-site-regen
203 }