1 |
commit: c559a1665b9e7be05b37de9a01b0d7d555b36781 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 08:55:30 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 09:24:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c559a166 |
7 |
|
8 |
dev-lang/erlang: drop 23.3.4.11, 24.2, 24.2.1 |
9 |
|
10 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
11 |
|
12 |
dev-lang/erlang/Manifest | 3 - |
13 |
dev-lang/erlang/erlang-23.3.4.11.ebuild | 155 ------------------------------ |
14 |
dev-lang/erlang/erlang-24.2.1.ebuild | 162 -------------------------------- |
15 |
dev-lang/erlang/erlang-24.2.ebuild | 162 -------------------------------- |
16 |
4 files changed, 482 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest |
19 |
index c10a4697f6c8..3acb5891efdc 100644 |
20 |
--- a/dev-lang/erlang/Manifest |
21 |
+++ b/dev-lang/erlang/Manifest |
22 |
@@ -1,9 +1,6 @@ |
23 |
-DIST erlang-23.3.4.11.tar.gz 57263517 BLAKE2B e677d9cff8604222c61467e64c0b5fb95a5c108778683bdfc0221c8d2f2973a33ec114d0e109b1586e114ee6b49cbc0c000295161eca5a0bff9770f18c3311d6 SHA512 820be438219473cd2f73cf03c854fdc5585ff7ffada411932a672bc6b182ef6d68350e0150fd1c9de6f7dcf788b443f1905c79e96f8b02d39a7190cdb267559e |
24 |
DIST erlang-23.3.4.12.tar.gz 57278064 BLAKE2B 3620dd2e49cfd75e49bf573ad1a8f8952c232ce2bf734ee845d8e8bb26053e34df96b472a9490c1cdf77ae6c106732f6a68b2f5d31808fd941bddb616004819f SHA512 d4f468393116d2d24a5170d7efe04305d221baccccfc273d4740b701ec23d1e55268cc49eeb99722afa636431e6e50faa5c11758484aa71e29c2fb3ed7c2ad25 |
25 |
DIST erlang-23.3.4.tar.gz 56664814 BLAKE2B ef8aa8d5a6fd1efc02a35459d1cb15eecf5f948127266bf782544e1da9a59765aca15070ea92df5558a4de017cc810e3542e2393e9470243fc6d9be13e9f37b6 SHA512 c8c5a9676163058276c703a0db0373508fad0ed9dff0aa9806ce59115ca766ff1d343c5a3917a920b249655fe188b974482ff378e9173c9fe00ea3907e618da5 |
26 |
-DIST erlang-24.2.1.tar.gz 59093658 BLAKE2B 4e4cbcea4ccf3d65a16e1af0cabc55ef31107a9475109f5668eb3d0926ad35743d8d6f2d72090acd68f66a6caf3ee3524d4e31500d140bb54d8ff6d629da054c SHA512 b4dd5c9506840fcb078b8c5820a70a07794d8e646f66941095cd9536cfcc60ed6c070d1f85952379384f774beec965521cfc567e7a4a94088ec9ce0fefafe984 |
27 |
DIST erlang-24.2.2.tar.gz 59091659 BLAKE2B 6b845e3de787e7aed4239284ffa81c483504c0a095c3cc3030fb8f3a0a236d0507f4290beb69096a1edbd3d13e9a4d5f2940eb6c268aaceb4a7d3bacf01dfaa0 SHA512 791bd9cc299168d4a209bcdc797a9671a39d03924dc18c9e0520393adf4eb54922c48eecde44601bde55b4fa80b91e0eddbfc486c5f45a611da60b47c63208c7 |
28 |
-DIST erlang-24.2.tar.gz 59094451 BLAKE2B 4b1673570e97fe399dbdb5ab2095ba38f08b684c6a0cf7ad47f628d900802751c2db11d5de6f267aeb8c77d27634c2642f96045893acf9f1c32de3e4fe3f3ffb SHA512 88450f935579677eb0d43fd25e5f45b1e78ff8e9c6455d87198decbbb675f90c2e87757b3ee33b43fafb87fced20e984220be9b6b70f8cb8f6d84e4743764495 |
29 |
DIST erlang-24.3.2.tar.gz 59302675 BLAKE2B 265ab89c4b09c55cd65d046c79a6bbbef1fdbdc9b69bc1b61f2edc8ab731e9ecdf09e189861ebf57b97e60bb06244af9bb0cafe4460dbc53cf34326079a8992b SHA512 811f50f4fa34dade0e2051decc7f8d7e96949cc9a9f11f507d3bdab43e65a654ddd6d0d49edbc03cc169d9d81f7937a195be5f103918e13b8083c31bdea2df2b |
30 |
DIST erlang-24.3.tar.gz 59288148 BLAKE2B faa6ef9b7bb953c95b19ad1545c8d87eeee0a24f2b1a09b22968c93ee9df72df6d1de7cd9015b49891f28f9c8629d3464e41b5f68f7e9f9e28f12ae7fc706e54 SHA512 7a2afb7ac48e05676f5cd1af6748c0e44cb28e896ebe7a3ae389cdb910d124ce7b9f974851b6de81f40d20df2a5775d07b1b8baef7af67df93252f462c1d6550 |
31 |
DIST erlang_doc_html_23.3.tar.gz 36224657 BLAKE2B 7e2a3e16f4cfa0f15c01074740e02af7a45b480b4a94e764463717658ab7e5d0281f928c3ec585582b10168645e3e06cfe72cf6a0ba1b88f539b80f2b7ad99be SHA512 8be4aae46839239604b875b39339e7b6b6c677c099b3d749d5f1041c4508c1c3b4aa8136a93df12b1e5cb6333ef907276f5965c9726ed2b9e77a6043c8ef53b1 |
32 |
|
33 |
diff --git a/dev-lang/erlang/erlang-23.3.4.11.ebuild b/dev-lang/erlang/erlang-23.3.4.11.ebuild |
34 |
deleted file mode 100644 |
35 |
index 689ece693ee0..000000000000 |
36 |
--- a/dev-lang/erlang/erlang-23.3.4.11.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,155 +0,0 @@ |
39 |
-# Copyright 1999-2022 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
-WX_GTK_VER="3.0-gtk3" |
44 |
- |
45 |
-inherit elisp-common java-pkg-opt-2 systemd wxwidgets |
46 |
- |
47 |
-# NOTE: If you need symlinks for binaries please tell maintainers or |
48 |
-# open up a bug to let it be created. |
49 |
- |
50 |
-UPSTREAM_V="$(ver_cut 1-2)" |
51 |
- |
52 |
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)" |
53 |
-HOMEPAGE="https://www.erlang.org/" |
54 |
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz |
55 |
- http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz |
56 |
- doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )" |
57 |
- |
58 |
-LICENSE="Apache-2.0" |
59 |
-# We use this subslot because Compiled HiPE Code can be loaded on the exact |
60 |
-# same build of ERTS that was used when compiling the code. See |
61 |
-# http://erlang.org/doc/system_principles/misc.html for more information. |
62 |
-SLOT="0/${PV}" |
63 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
64 |
-IUSE="doc emacs +hipe java +kpoll odbc sctp ssl systemd tk wxwidgets" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- acct-group/epmd |
68 |
- acct-user/epmd |
69 |
- sys-libs/ncurses:0 |
70 |
- sys-libs/zlib |
71 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
72 |
- java? ( >=virtual/jdk-1.8:* ) |
73 |
- odbc? ( dev-db/unixODBC ) |
74 |
- sctp? ( net-misc/lksctp-tools ) |
75 |
- ssl? ( >=dev-libs/openssl-0.9.7d:0= ) |
76 |
- systemd? ( sys-apps/systemd ) |
77 |
- wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
78 |
-" |
79 |
-DEPEND="${RDEPEND} |
80 |
- dev-lang/perl |
81 |
-" |
82 |
- |
83 |
-S="${WORKDIR}/otp-OTP-${PV}" |
84 |
- |
85 |
-PATCHES=( |
86 |
- "${FILESDIR}"/18.2.1-wx3.0.patch |
87 |
- "${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch |
88 |
-) |
89 |
- |
90 |
-SITEFILE=50"${PN}"-gentoo.el |
91 |
- |
92 |
-src_prepare() { |
93 |
- default |
94 |
- |
95 |
- ./otp_build autoconf || die |
96 |
-} |
97 |
- |
98 |
-src_configure() { |
99 |
- use wxwidgets && setup-wxwidgets |
100 |
- |
101 |
- local myconf=( |
102 |
- --disable-builtin-zlib |
103 |
- $(use_enable hipe) |
104 |
- $(use_enable kpoll kernel-poll) |
105 |
- $(use_with java javac) |
106 |
- $(use_enable sctp) |
107 |
- $(use_with ssl ssl "${EPREFIX}"/usr) |
108 |
- $(use_enable ssl dynamic-ssl-lib) |
109 |
- $(use_enable systemd) |
110 |
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null") |
111 |
- ) |
112 |
- econf "${myconf[@]}" |
113 |
-} |
114 |
- |
115 |
-src_compile() { |
116 |
- emake |
117 |
- |
118 |
- if use emacs ; then |
119 |
- pushd lib/tools/emacs &>/dev/null || die |
120 |
- elisp-compile *.el |
121 |
- popd &>/dev/null || die |
122 |
- fi |
123 |
-} |
124 |
- |
125 |
-extract_version() { |
126 |
- local path="$1" |
127 |
- local var_name="$2" |
128 |
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed" |
129 |
-} |
130 |
- |
131 |
-src_install() { |
132 |
- local erl_libdir_rel="$(get_libdir)/erlang" |
133 |
- local erl_libdir="/usr/${erl_libdir_rel}" |
134 |
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)" |
135 |
- local erl_erts_ver="$(extract_version erts VSN)" |
136 |
- local my_manpath="/usr/share/${PN}/man" |
137 |
- |
138 |
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version" |
139 |
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version" |
140 |
- |
141 |
- emake INSTALL_PREFIX="${D}" install |
142 |
- |
143 |
- if use doc ; then |
144 |
- # Note: we explicitly install docs into: |
145 |
- # /usr/share/doc/${PF}/{doc,lib,erts-*} |
146 |
- # To maintain that layout we gather everything in 'html-docs'. |
147 |
- # See bug #684376. |
148 |
- mkdir html-docs || die |
149 |
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die |
150 |
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. ) |
151 |
- docompress -x /usr/share/doc/${PF} |
152 |
- else |
153 |
- local DOCS=("README.md") |
154 |
- fi |
155 |
- |
156 |
- einstalldocs |
157 |
- |
158 |
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl |
159 |
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc |
160 |
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript |
161 |
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call |
162 |
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp |
163 |
- |
164 |
- ## Clean up the no longer needed files |
165 |
- rm "${ED}/${erl_libdir}/Install" || die |
166 |
- |
167 |
- insinto "${my_manpath}" |
168 |
- doins -r "${WORKDIR}"/man/* |
169 |
- # extend MANPATH, so the normal man command can find it |
170 |
- # see bug 189639 |
171 |
- newenvd - "90erlang" <<-_EOF_ |
172 |
- MANPATH="${my_manpath}" |
173 |
- _EOF_ |
174 |
- |
175 |
- if use emacs ; then |
176 |
- elisp-install erlang lib/tools/emacs/*.{el,elc} |
177 |
- sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ |
178 |
- "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die |
179 |
- elisp-site-file-install "${T}/${SITEFILE}" |
180 |
- fi |
181 |
- |
182 |
- newinitd "${FILESDIR}"/epmd.init-r2 epmd |
183 |
- newconfd "${FILESDIR}"/epmd.confd-r2 epmd |
184 |
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service |
185 |
-} |
186 |
- |
187 |
-pkg_postinst() { |
188 |
- use emacs && elisp-site-regen |
189 |
-} |
190 |
- |
191 |
-pkg_postrm() { |
192 |
- use emacs && elisp-site-regen |
193 |
-} |
194 |
|
195 |
diff --git a/dev-lang/erlang/erlang-24.2.1.ebuild b/dev-lang/erlang/erlang-24.2.1.ebuild |
196 |
deleted file mode 100644 |
197 |
index 7f2afde767b6..000000000000 |
198 |
--- a/dev-lang/erlang/erlang-24.2.1.ebuild |
199 |
+++ /dev/null |
200 |
@@ -1,162 +0,0 @@ |
201 |
-# Copyright 1999-2022 Gentoo Authors |
202 |
-# Distributed under the terms of the GNU General Public License v2 |
203 |
- |
204 |
-EAPI=7 |
205 |
-WX_GTK_VER="3.0-gtk3" |
206 |
- |
207 |
-inherit elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets |
208 |
- |
209 |
-# NOTE: If you need symlinks for binaries please tell maintainers or |
210 |
-# open up a bug to let it be created. |
211 |
- |
212 |
-UPSTREAM_V="$(ver_cut 1-2)" |
213 |
- |
214 |
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)" |
215 |
-HOMEPAGE="https://www.erlang.org/" |
216 |
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz |
217 |
- http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz |
218 |
- doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )" |
219 |
- |
220 |
-LICENSE="Apache-2.0" |
221 |
-# We use this subslot because Compiled HiPE Code can be loaded on the exact |
222 |
-# same build of ERTS that was used when compiling the code. See |
223 |
-# http://erlang.org/doc/system_principles/misc.html for more information. |
224 |
-SLOT="0/${PV}" |
225 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
226 |
-IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets" |
227 |
- |
228 |
-RDEPEND=" |
229 |
- acct-group/epmd |
230 |
- acct-user/epmd |
231 |
- sys-libs/ncurses:0 |
232 |
- sys-libs/zlib |
233 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
234 |
- java? ( >=virtual/jdk-1.8:* ) |
235 |
- odbc? ( dev-db/unixODBC ) |
236 |
- sctp? ( net-misc/lksctp-tools ) |
237 |
- ssl? ( >=dev-libs/openssl-0.9.7d:0= ) |
238 |
- systemd? ( sys-apps/systemd ) |
239 |
- wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
240 |
-" |
241 |
-DEPEND="${RDEPEND} |
242 |
- dev-lang/perl |
243 |
-" |
244 |
- |
245 |
-S="${WORKDIR}/otp-OTP-${PV}" |
246 |
- |
247 |
-PATCHES=( |
248 |
- "${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch |
249 |
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch |
250 |
-) |
251 |
- |
252 |
-SITEFILE=50"${PN}"-gentoo.el |
253 |
- |
254 |
-src_prepare() { |
255 |
- default |
256 |
- |
257 |
- tc-export AR CPP CXX LD |
258 |
- |
259 |
- # bug #797886: erlang's VM does unsafe casts for ints |
260 |
- # to pointers and back. This breaks on gcc-11 -flto. |
261 |
- append-flags -fno-strict-aliasing |
262 |
-} |
263 |
- |
264 |
-src_configure() { |
265 |
- use wxwidgets && setup-wxwidgets |
266 |
- |
267 |
- local myconf=( |
268 |
- --disable-builtin-zlib |
269 |
- |
270 |
- # don't search for static zlib |
271 |
- --with-ssl-zlib=no |
272 |
- |
273 |
- $(use_enable kpoll kernel-poll) |
274 |
- $(use_with java javac) |
275 |
- $(use_enable sctp) |
276 |
- $(use_with ssl ssl) |
277 |
- $(use_enable ssl dynamic-ssl-lib) |
278 |
- $(use_enable systemd) |
279 |
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null") |
280 |
- ) |
281 |
- econf "${myconf[@]}" |
282 |
-} |
283 |
- |
284 |
-src_compile() { |
285 |
- emake |
286 |
- |
287 |
- if use emacs ; then |
288 |
- pushd lib/tools/emacs &>/dev/null || die |
289 |
- elisp-compile *.el |
290 |
- popd &>/dev/null || die |
291 |
- fi |
292 |
-} |
293 |
- |
294 |
-extract_version() { |
295 |
- local path="$1" |
296 |
- local var_name="$2" |
297 |
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed" |
298 |
-} |
299 |
- |
300 |
-src_install() { |
301 |
- local erl_libdir_rel="$(get_libdir)/erlang" |
302 |
- local erl_libdir="/usr/${erl_libdir_rel}" |
303 |
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)" |
304 |
- local erl_erts_ver="$(extract_version erts VSN)" |
305 |
- local my_manpath="/usr/share/${PN}/man" |
306 |
- |
307 |
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version" |
308 |
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version" |
309 |
- |
310 |
- emake INSTALL_PREFIX="${D}" install |
311 |
- |
312 |
- if use doc ; then |
313 |
- # Note: we explicitly install docs into: |
314 |
- # /usr/share/doc/${PF}/{doc,lib,erts-*} |
315 |
- # To maintain that layout we gather everything in 'html-docs'. |
316 |
- # See bug #684376. |
317 |
- mkdir html-docs || die |
318 |
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die |
319 |
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. ) |
320 |
- docompress -x /usr/share/doc/${PF} |
321 |
- else |
322 |
- local DOCS=("README.md") |
323 |
- fi |
324 |
- |
325 |
- einstalldocs |
326 |
- |
327 |
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl |
328 |
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc |
329 |
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript |
330 |
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call |
331 |
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp |
332 |
- |
333 |
- ## Clean up the no longer needed files |
334 |
- rm "${ED}/${erl_libdir}/Install" || die |
335 |
- |
336 |
- insinto "${my_manpath}" |
337 |
- doins -r "${WORKDIR}"/man/* |
338 |
- # extend MANPATH, so the normal man command can find it |
339 |
- # see bug 189639 |
340 |
- newenvd - "90erlang" <<-_EOF_ |
341 |
- MANPATH="${my_manpath}" |
342 |
- _EOF_ |
343 |
- |
344 |
- if use emacs ; then |
345 |
- elisp-install erlang lib/tools/emacs/*.{el,elc} |
346 |
- sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ |
347 |
- "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die |
348 |
- elisp-site-file-install "${T}/${SITEFILE}" |
349 |
- fi |
350 |
- |
351 |
- newinitd "${FILESDIR}"/epmd.init-r2 epmd |
352 |
- newconfd "${FILESDIR}"/epmd.confd-r2 epmd |
353 |
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service |
354 |
-} |
355 |
- |
356 |
-pkg_postinst() { |
357 |
- use emacs && elisp-site-regen |
358 |
-} |
359 |
- |
360 |
-pkg_postrm() { |
361 |
- use emacs && elisp-site-regen |
362 |
-} |
363 |
|
364 |
diff --git a/dev-lang/erlang/erlang-24.2.ebuild b/dev-lang/erlang/erlang-24.2.ebuild |
365 |
deleted file mode 100644 |
366 |
index 7ef50aaef745..000000000000 |
367 |
--- a/dev-lang/erlang/erlang-24.2.ebuild |
368 |
+++ /dev/null |
369 |
@@ -1,162 +0,0 @@ |
370 |
-# Copyright 1999-2022 Gentoo Authors |
371 |
-# Distributed under the terms of the GNU General Public License v2 |
372 |
- |
373 |
-EAPI=7 |
374 |
-WX_GTK_VER="3.0-gtk3" |
375 |
- |
376 |
-inherit elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets |
377 |
- |
378 |
-# NOTE: If you need symlinks for binaries please tell maintainers or |
379 |
-# open up a bug to let it be created. |
380 |
- |
381 |
-UPSTREAM_V="$(ver_cut 1-2)" |
382 |
- |
383 |
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)" |
384 |
-HOMEPAGE="https://www.erlang.org/" |
385 |
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz |
386 |
- http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz |
387 |
- doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )" |
388 |
- |
389 |
-LICENSE="Apache-2.0" |
390 |
-# We use this subslot because Compiled HiPE Code can be loaded on the exact |
391 |
-# same build of ERTS that was used when compiling the code. See |
392 |
-# http://erlang.org/doc/system_principles/misc.html for more information. |
393 |
-SLOT="0/${PV}" |
394 |
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
395 |
-IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets" |
396 |
- |
397 |
-RDEPEND=" |
398 |
- acct-group/epmd |
399 |
- acct-user/epmd |
400 |
- sys-libs/ncurses:0 |
401 |
- sys-libs/zlib |
402 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
403 |
- java? ( >=virtual/jdk-1.8:* ) |
404 |
- odbc? ( dev-db/unixODBC ) |
405 |
- sctp? ( net-misc/lksctp-tools ) |
406 |
- ssl? ( >=dev-libs/openssl-0.9.7d:0= ) |
407 |
- systemd? ( sys-apps/systemd ) |
408 |
- wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
409 |
-" |
410 |
-DEPEND="${RDEPEND} |
411 |
- dev-lang/perl |
412 |
-" |
413 |
- |
414 |
-S="${WORKDIR}/otp-OTP-${PV}" |
415 |
- |
416 |
-PATCHES=( |
417 |
- "${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch |
418 |
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch |
419 |
-) |
420 |
- |
421 |
-SITEFILE=50"${PN}"-gentoo.el |
422 |
- |
423 |
-src_prepare() { |
424 |
- default |
425 |
- |
426 |
- tc-export AR CPP CXX LD |
427 |
- |
428 |
- # bug #797886: erlang's VM does unsafe casts for ints |
429 |
- # to pointers and back. This breaks on gcc-11 -flto. |
430 |
- append-flags -fno-strict-aliasing |
431 |
-} |
432 |
- |
433 |
-src_configure() { |
434 |
- use wxwidgets && setup-wxwidgets |
435 |
- |
436 |
- local myconf=( |
437 |
- --disable-builtin-zlib |
438 |
- |
439 |
- # don't search for static zlib |
440 |
- --with-ssl-zlib=no |
441 |
- |
442 |
- $(use_enable kpoll kernel-poll) |
443 |
- $(use_with java javac) |
444 |
- $(use_enable sctp) |
445 |
- $(use_with ssl ssl) |
446 |
- $(use_enable ssl dynamic-ssl-lib) |
447 |
- $(use_enable systemd) |
448 |
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null") |
449 |
- ) |
450 |
- econf "${myconf[@]}" |
451 |
-} |
452 |
- |
453 |
-src_compile() { |
454 |
- emake |
455 |
- |
456 |
- if use emacs ; then |
457 |
- pushd lib/tools/emacs &>/dev/null || die |
458 |
- elisp-compile *.el |
459 |
- popd &>/dev/null || die |
460 |
- fi |
461 |
-} |
462 |
- |
463 |
-extract_version() { |
464 |
- local path="$1" |
465 |
- local var_name="$2" |
466 |
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed" |
467 |
-} |
468 |
- |
469 |
-src_install() { |
470 |
- local erl_libdir_rel="$(get_libdir)/erlang" |
471 |
- local erl_libdir="/usr/${erl_libdir_rel}" |
472 |
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)" |
473 |
- local erl_erts_ver="$(extract_version erts VSN)" |
474 |
- local my_manpath="/usr/share/${PN}/man" |
475 |
- |
476 |
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version" |
477 |
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version" |
478 |
- |
479 |
- emake INSTALL_PREFIX="${D}" install |
480 |
- |
481 |
- if use doc ; then |
482 |
- # Note: we explicitly install docs into: |
483 |
- # /usr/share/doc/${PF}/{doc,lib,erts-*} |
484 |
- # To maintain that layout we gather everything in 'html-docs'. |
485 |
- # See bug #684376. |
486 |
- mkdir html-docs || die |
487 |
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die |
488 |
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. ) |
489 |
- docompress -x /usr/share/doc/${PF} |
490 |
- else |
491 |
- local DOCS=("README.md") |
492 |
- fi |
493 |
- |
494 |
- einstalldocs |
495 |
- |
496 |
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl |
497 |
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc |
498 |
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript |
499 |
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call |
500 |
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp |
501 |
- |
502 |
- ## Clean up the no longer needed files |
503 |
- rm "${ED}/${erl_libdir}/Install" || die |
504 |
- |
505 |
- insinto "${my_manpath}" |
506 |
- doins -r "${WORKDIR}"/man/* |
507 |
- # extend MANPATH, so the normal man command can find it |
508 |
- # see bug 189639 |
509 |
- newenvd - "90erlang" <<-_EOF_ |
510 |
- MANPATH="${my_manpath}" |
511 |
- _EOF_ |
512 |
- |
513 |
- if use emacs ; then |
514 |
- elisp-install erlang lib/tools/emacs/*.{el,elc} |
515 |
- sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ |
516 |
- "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die |
517 |
- elisp-site-file-install "${T}/${SITEFILE}" |
518 |
- fi |
519 |
- |
520 |
- newinitd "${FILESDIR}"/epmd.init-r2 epmd |
521 |
- newconfd "${FILESDIR}"/epmd.confd-r2 epmd |
522 |
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service |
523 |
-} |
524 |
- |
525 |
-pkg_postinst() { |
526 |
- use emacs && elisp-site-regen |
527 |
-} |
528 |
- |
529 |
-pkg_postrm() { |
530 |
- use emacs && elisp-site-regen |
531 |
-} |