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