Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/erlang: erlang-16.2.ebuild ChangeLog
Date: Mon, 04 Nov 2013 15:56:06
Message-Id: 20131104155558.552052004B@flycatcher.gentoo.org
1 djc 13/11/04 15:55:58
2
3 Modified: ChangeLog
4 Added: erlang-16.2.ebuild
5 Log:
6 Version bump erlang to 16.2 (R16B02).
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 30380381)
9
10 Revision Changes Path
11 1.244 dev-lang/erlang/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.244&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.244&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.243&r2=1.244
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
20 retrieving revision 1.243
21 retrieving revision 1.244
22 diff -u -r1.243 -r1.244
23 --- ChangeLog 8 Sep 2013 11:55:41 -0000 1.243
24 +++ ChangeLog 4 Nov 2013 15:55:58 -0000 1.244
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/erlang
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.243 2013/09/08 11:55:41 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.244 2013/11/04 15:55:58 djc Exp $
30 +
31 +*erlang-16.2 (04 Nov 2013)
32 +
33 + 04 Nov 2013; Dirkjan Ochtman <djc@g.o> +erlang-16.2.ebuild,
34 + +files/16.2-tinfo.patch:
35 + Version bump erlang to 16.2 (R16B02).
36
37 *erlang-16.1-r1 (08 Sep 2013)
38
39
40
41
42 1.1 dev-lang/erlang/erlang-16.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-16.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-16.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: erlang-16.2.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-16.2.ebuild,v 1.1 2013/11/04 15:55:58 djc Exp $
52
53 EAPI=3
54 WX_GTK_VER="2.8"
55
56 inherit elisp-common eutils java-pkg-opt-2 multilib systemd versionator wxwidgets
57
58 # NOTE: If you need symlinks for binaries please tell maintainers or
59 # open up a bug to let it be created.
60
61 # erlang uses a really weird versioning scheme which caused quite a few problems
62 # already. Thus we do a slight modification converting all letters to digits to
63 # make it more sane (see e.g. #26420)
64
65 # the next line selects the right source.
66 MY_PV="R16B01"
67
68 # ATTN!! Take care when processing the C, etc version!
69 MY_P=otp_src_${MY_PV}
70
71 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
72 HOMEPAGE="http://www.erlang.org/"
73 SRC_URI="http://www.erlang.org/download/otp_src_${MY_PV}.tar.gz
74 http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
75 doc? ( http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
76
77 LICENSE="ErlPL-1.1"
78 SLOT="0"
79 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
80 IUSE="compat-ethread doc emacs halfword hipe java kpoll odbc smp sctp ssl tk wxwidgets"
81
82 RDEPEND=">=dev-lang/perl-5.6.1
83 ssl? ( >=dev-libs/openssl-0.9.7d )
84 emacs? ( virtual/emacs )
85 java? ( >=virtual/jdk-1.2 )
86 odbc? ( dev-db/unixODBC )"
87 DEPEND="${RDEPEND}
88 wxwidgets? ( x11-libs/wxGTK:2.8[opengl] virtual/glu )
89 sctp? ( net-misc/lksctp-tools )
90 tk? ( dev-lang/tk )"
91
92 S="${WORKDIR}/otp_src_${MY_PV}"
93
94 SITEFILE=50${PN}-gentoo.el
95
96 pkg_setup() {
97 use wxwidgets && wxwidgets_pkg_setup
98 if use halfword ; then
99 use amd64 || die "halfword support is limited to amd64"
100 fi
101 }
102
103 src_prepare() {
104 use odbc || sed -i 's: odbc : :' lib/Makefile
105
106 # bug 263129, don't ignore LDFLAGS, reported upstream
107 sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in || die
108
109 # don't ignore LDFLAGS, reported upstream
110 sed -e 's:LDFLAGS = \$(ODBC_LIB) \$(EI_LDFLAGS):LDFLAGS += \$(ODBC_LIB) \$(EI_LDFLAGS):' -i "${S}"/lib/odbc/c_src/Makefile.in || die
111
112 if ! use wxwidgets; then
113 sed -i 's: wx : :' lib/Makefile
114 rm -rf lib/wx
115 fi
116
117 # Nasty workaround, reported upstream
118 cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in || die
119
120 # bug 383697
121 sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c || die
122 epatch "${FILESDIR}/${PV}-tinfo.patch" || die
123 cd erts && autoconf || die
124 }
125
126 src_configure() {
127 use java || export JAVAC=false
128
129 econf \
130 --enable-threads \
131 --enable-shared-zlib \ \
132 $(use_enable sctp) \
133 $(use_enable halfword halfword-emulator) \
134 $(use_enable hipe) \
135 $(use_with ssl ssl "${EPREFIX}"/usr) \
136 $(use_enable ssl dynamic-ssl-lib) \
137 $(use_enable kpoll kernel-poll) \
138 $(use_enable smp smp-support) \
139 $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \
140 $(use x64-macos && echo "--enable-darwin-64bit") \
141 || die
142 }
143
144 src_compile() {
145 use java || export JAVAC=false
146 emake || die
147
148 if use emacs ; then
149 pushd lib/tools/emacs
150 elisp-compile *.el || die
151 popd
152 fi
153 }
154
155 extract_version() {
156 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
157 }
158
159 src_install() {
160 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
161 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
162 local ERL_ERTS_VER=$(extract_version erts VSN)
163
164 emake INSTALL_PREFIX="${D}" install || die
165 dodoc AUTHORS README.md
166
167 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
168 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
169 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
170 dosym \
171 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
172 /usr/bin/erl_call
173 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
174 use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
175
176 ## Remove ${D} from the following files
177 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" || die
178 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" || die
179 grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
180
181 ## Clean up the no longer needed files
182 rm "${ED}/${ERL_LIBDIR}/Install"||die
183
184 for i in "${WORKDIR}"/man/man* ; do
185 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
186 done
187 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
188 # doman sucks so we can't use it
189 cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
190 done
191 # extend MANPATH, so the normal man command can find it
192 # see bug 189639
193 dodir /etc/env.d/
194 echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
195
196 if use doc ; then
197 dohtml -A README,erl,hrl,c,h,kwc,info -r \
198 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
199 fi
200
201 if use emacs ; then
202 pushd "${S}"
203 elisp-install erlang lib/tools/emacs/*.{el,elc}
204 sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
205 "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
206 elisp-site-file-install "${T}"/${SITEFILE}
207 popd
208 fi
209
210 newinitd "${FILESDIR}"/epmd.init epmd || die
211 systemd_dounit "${FILESDIR}"/epmd.service ||die
212 }
213
214 pkg_postinst() {
215 use emacs && elisp-site-regen
216 elog
217 elog "If you need a symlink to one of Erlang's binaries,"
218 elog "please open a bug on http://bugs.gentoo.org/"
219 elog
220 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
221 elog
222 }
223
224 pkg_postrm() {
225 use emacs && elisp-site-regen
226 }