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.1.ebuild ChangeLog
Date: Mon, 26 Aug 2013 12:43:32
Message-Id: 20130826124324.9038E2004C@flycatcher.gentoo.org
1 djc 13/08/26 12:43:24
2
3 Modified: ChangeLog
4 Added: erlang-16.1.ebuild
5 Log:
6 Version bump to 16.1, include epmd.service (fixes 482446, 474778).
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
9
10 Revision Changes Path
11 1.241 dev-lang/erlang/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.241&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?rev=1.241&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/ChangeLog?r1=1.240&r2=1.241
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v
20 retrieving revision 1.240
21 retrieving revision 1.241
22 diff -u -r1.240 -r1.241
23 --- ChangeLog 7 May 2013 17:48:56 -0000 1.240
24 +++ ChangeLog 26 Aug 2013 12:43:24 -0000 1.241
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.240 2013/05/07 17:48:56 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.241 2013/08/26 12:43:24 djc Exp $
30 +
31 +*erlang-16.1 (26 Aug 2013)
32 +
33 + 26 Aug 2013; Dirkjan Ochtman <djc@g.o> +erlang-16.1.ebuild,
34 + +files/epmd.service:
35 + Version bump to 16.1, include epmd.service (fixes 482446, 474778).
36
37 07 May 2013; Agostino Sarubbo <ago@g.o> erlang-15.2.3.1.ebuild:
38 Stable for ppc64, wrt bug #468374
39
40
41
42 1.1 dev-lang/erlang/erlang-16.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-16.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/erlang/erlang-16.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: erlang-16.1.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.1.ebuild,v 1.1 2013/08/26 12:43:24 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 }
123
124 src_configure() {
125 use java || export JAVAC=false
126
127 econf \
128 --enable-threads \
129 --enable-shared-zlib \ \
130 $(use_enable sctp) \
131 $(use_enable halfword halfword-emulator) \
132 $(use_enable hipe) \
133 $(use_with ssl ssl "${EPREFIX}"/usr) \
134 $(use_enable ssl dynamic-ssl-lib) \
135 $(use_enable kpoll kernel-poll) \
136 $(use_enable smp smp-support) \
137 $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \
138 $(use x64-macos && echo "--enable-darwin-64bit") \
139 || die
140 }
141
142 src_compile() {
143 use java || export JAVAC=false
144 emake || die
145
146 if use emacs ; then
147 pushd lib/tools/emacs
148 elisp-compile *.el || die
149 popd
150 fi
151 }
152
153 extract_version() {
154 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
155 }
156
157 src_install() {
158 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
159 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
160 local ERL_ERTS_VER=$(extract_version erts VSN)
161
162 emake INSTALL_PREFIX="${D}" install || die
163 dodoc AUTHORS README.md
164
165 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
166 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
167 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
168 dosym \
169 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
170 /usr/bin/erl_call
171 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
172 use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp
173
174 ## Remove ${D} from the following files
175 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" || die
176 sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" || die
177 grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
178
179 ## Clean up the no longer needed files
180 rm "${ED}/${ERL_LIBDIR}/Install"||die
181
182 for i in "${WORKDIR}"/man/man* ; do
183 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
184 done
185 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
186 # doman sucks so we can't use it
187 cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/
188 done
189 # extend MANPATH, so the normal man command can find it
190 # see bug 189639
191 dodir /etc/env.d/
192 echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang"
193
194 if use doc ; then
195 dohtml -A README,erl,hrl,c,h,kwc,info -r \
196 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
197 fi
198
199 if use emacs ; then
200 pushd "${S}"
201 elisp-install erlang lib/tools/emacs/*.{el,elc}
202 sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
203 "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE}
204 elisp-site-file-install "${T}"/${SITEFILE}
205 popd
206 fi
207
208 newinitd "${FILESDIR}"/epmd.init epmd || die
209 systemd_newunit "${FILESDIR}"/epmd.service 'epmd@.service' || die
210 }
211
212 pkg_postinst() {
213 use emacs && elisp-site-regen
214 elog
215 elog "If you need a symlink to one of Erlang's binaries,"
216 elog "please open a bug on http://bugs.gentoo.org/"
217 elog
218 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
219 elog
220 }
221
222 pkg_postrm() {
223 use emacs && elisp-site-regen
224 }