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-17.3.ebuild ChangeLog
Date: Tue, 23 Sep 2014 18:47:25
Message-Id: 20140923184717.416F76102@oystercatcher.gentoo.org
1 djc 14/09/23 18:47:17
2
3 Modified: ChangeLog
4 Added: erlang-17.3.ebuild
5 Log:
6 Version bump erlang to 17.3 (bug 523434)
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 30380381)
9
10 Revision Changes Path
11 1.257 dev-lang/erlang/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.257&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.257&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.256&r2=1.257
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
20 retrieving revision 1.256
21 retrieving revision 1.257
22 diff -u -r1.256 -r1.257
23 --- ChangeLog 19 Jul 2014 18:18:09 -0000 1.256
24 +++ ChangeLog 23 Sep 2014 18:47:17 -0000 1.257
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lang/erlang
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.256 2014/07/19 18:18:09 klausman Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.257 2014/09/23 18:47:17 djc Exp $
30 +
31 +*erlang-17.3 (23 Sep 2014)
32 +
33 + 23 Sep 2014; Dirkjan Ochtman <djc@g.o> +erlang-17.3.ebuild:
34 + Version bump erlang to 17.3 (bug 523434)
35
36 19 Jul 2014; Tobias Klausmann <klausman@g.o> erlang-16.3.1.ebuild:
37 Stable on alpha, bug #506274
38
39
40
41 1.1 dev-lang/erlang/erlang-17.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-17.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-17.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: erlang-17.3.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-17.3.ebuild,v 1.1 2014/09/23 18:47:17 djc Exp $
51
52 EAPI=4
53 WX_GTK_VER="2.8"
54
55 inherit autotools elisp-common eutils java-pkg-opt-2 multilib systemd versionator wxwidgets
56
57 # NOTE: If you need symlinks for binaries please tell maintainers or
58 # open up a bug to let it be created.
59
60 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
61 HOMEPAGE="http://www.erlang.org/"
62 SRC_URI="http://www.erlang.org/download/otp_src_${PV}.tar.gz
63 http://erlang.org/download/otp_doc_man_${PV}.tar.gz
64 doc? ( http://erlang.org/download/otp_doc_html_${PV}.tar.gz )"
65
66 LICENSE="ErlPL-1.1"
67 SLOT="0"
68 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"
69 IUSE="compat-ethread doc emacs halfword hipe java kpoll odbc smp sctp ssl systemd tk wxwidgets"
70
71 RDEPEND=">=dev-lang/perl-5.6.1
72 ssl? ( >=dev-libs/openssl-0.9.7d )
73 emacs? ( virtual/emacs )
74 java? ( >=virtual/jdk-1.2 )
75 odbc? ( dev-db/unixODBC )"
76 DEPEND="${RDEPEND}
77 wxwidgets? ( x11-libs/wxGTK:2.8[X,opengl] virtual/glu )
78 sctp? ( net-misc/lksctp-tools )
79 tk? ( dev-lang/tk )"
80
81 S="${WORKDIR}/otp_src_${PV}"
82
83 SITEFILE=50${PN}-gentoo.el
84
85 pkg_setup() {
86 if use halfword ; then
87 use amd64 || die "halfword support is limited to amd64"
88 fi
89 }
90
91 src_prepare() {
92 use odbc || sed -i 's: odbc : :' lib/Makefile
93
94 # bug 263129, don't ignore LDFLAGS, reported upstream
95 sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in
96
97 # don't ignore LDFLAGS, reported upstream
98 sed -e 's:LDFLAGS = \$(ODBC_LIB) \$(EI_LDFLAGS):LDFLAGS += \$(ODBC_LIB) \$(EI_LDFLAGS):' -i "${S}"/lib/odbc/c_src/Makefile.in
99
100 if ! use wxwidgets; then
101 sed -i 's: wx : :' lib/Makefile
102 rm -rf lib/wx
103 fi
104
105 # Nasty workaround, reported upstream
106 cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in
107
108 # bug 383697
109 sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c
110 cd erts && eautoreconf
111 }
112
113 src_configure() {
114 use java || export JAVAC=false
115
116 econf \
117 --enable-threads \
118 $(use_enable sctp) \
119 $(use_enable systemd) \
120 $(use_enable halfword halfword-emulator) \
121 $(use_enable hipe) \
122 $(use_with ssl ssl "${EPREFIX}"/usr) \
123 $(use_enable ssl dynamic-ssl-lib) \
124 $(use_enable kpoll kernel-poll) \
125 $(use_enable smp smp-support) \
126 $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \
127 $(use x64-macos && echo "--enable-darwin-64bit")
128 }
129
130 src_compile() {
131 use java || export JAVAC=false
132 emake
133
134 if use emacs ; then
135 pushd lib/tools/emacs
136 elisp-compile *.el
137 popd
138 fi
139 }
140
141 extract_version() {
142 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
143 }
144
145 src_install() {
146 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
147 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
148 local ERL_ERTS_VER=$(extract_version erts VSN)
149
150 emake INSTALL_PREFIX="${D}" install
151 dodoc AUTHORS README.md
152
153 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
154 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
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 use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
161
162 ## Remove ${D} from the following files
163 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl"
164 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start"
165 grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
166
167 ## Clean up the no longer needed files
168 rm "${ED}/${ERL_LIBDIR}/Install"
169
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 # doman sucks so we can't use it
175 cp ${file} "${ED}/${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=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
181
182 if use doc ; then
183 dohtml -A README,erl,hrl,c,h,kwc,info -r \
184 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
185 fi
186
187 if use emacs ; then
188 pushd "${S}"
189 elisp-install erlang lib/tools/emacs/*.{el,elc}
190 sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
191 "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
192 elisp-site-file-install "${T}"/${SITEFILE}
193 popd
194 fi
195
196 newinitd "${FILESDIR}"/epmd.init epmd
197 systemd_dounit "${FILESDIR}"/epmd.service
198 }
199
200 pkg_postinst() {
201 use emacs && elisp-site-regen
202 }
203
204 pkg_postrm() {
205 use emacs && elisp-site-regen
206 }