Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/erlang/
Date: Fri, 29 May 2020 22:13:57
Message-Id: 1590790420.1788ce52f1d1b4f030ebdc4bc129b8218fffe390.slyfox@gentoo
1 commit: 1788ce52f1d1b4f030ebdc4bc129b8218fffe390
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 29 22:06:45 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri May 29 22:13:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1788ce52
7
8 dev-lang/erlang: drop old
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-lang/erlang/Manifest | 2 -
14 dev-lang/erlang/erlang-22.3.1.ebuild | 159 -----------------------------------
15 dev-lang/erlang/erlang-22.3.3.ebuild | 159 -----------------------------------
16 3 files changed, 320 deletions(-)
17
18 diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest
19 index 0d423c551b4..856ce981b66 100644
20 --- a/dev-lang/erlang/Manifest
21 +++ b/dev-lang/erlang/Manifest
22 @@ -1,7 +1,5 @@
23 DIST erlang-21.1.1.tar.gz 53854332 BLAKE2B 32ab508b5a305eb92eac9f49bd513374c573966e7565d98aa6ba986ce42eb955a46130b9f33dbb415f48de5c179b308a8b06b345a844afcb2700f7e3f257f27e SHA512 dc11aace126aad5411b0d583579fe95a7263be328612fdc9f9c02d917aef7ea7a128b1e54ddcf7a52232980d2c81fc8e90ae5a8806ee5ae6ea97f00a9cf3faab
24 -DIST erlang-22.3.1.tar.gz 55845292 BLAKE2B 2f57adc59a85c63d230676d1881960106e4d1baef4f70d88ae13dd65b973196ff5f76479576ed00914826a7ed8e724fb66a3dc87d70baf088675db2e725dfefc SHA512 1436e967fa829e77dd6dfed9ab67cc5fa6621e02dca0b669da869b0c2df6aa64eaa2a64621e22e205a329370c140d70aa8e695ba36dfc2849f02f5b462d6c319
25 DIST erlang-22.3.2.tar.gz 55856668 BLAKE2B d5d2ae17b8fb1b7c3da0c145e4e17d38e47d5291d6bc77228c9280eaa114630003f0e75cc0b6eafd21642a86448d8fd907d95c006cdfe6f18978e796e20585bd SHA512 02333fed57394012834452aff38d9a3340c52b109b14e444b6e7975ac3a65485de1deda6ae6c732a28f75ca2518000de576f70497118306699e35af5f249a0d1
26 -DIST erlang-22.3.3.tar.gz 55858620 BLAKE2B 107f3e450b42494553d0b85aa5d38ebdfa099a70eb6b9dcbb3169202d4c77716d4cfa30ac381b7d99f99ee654d0d9d14ab93f266592b7d5b38ec2dee94f740fc SHA512 114c0c6b80731e7bcacde01122fb4f3cb12c00fee9f9ad1a0a5f15aefebd6fe33faf1ba396115ca016042404ef644133f20546f3779a685973735d298fd1cedd
27 DIST erlang-22.3.4.tar.gz 55861416 BLAKE2B 881eb664ea449fa021cdb6daaeb998ea5f736eae0900ad67c1416c0e0e0888b212e1fd1fc0ee655f1c05821b56bae52f150c3f29c2eddbac205d2a6f2fce5494 SHA512 14e90efb40568a1fd7a32b82fcdf32df8ccbda938b9e538bb3b1a77d343ae16f5721abb3d47e8dd567d7aa91d1dea6da8b7ada8a5cd8d33c38ba324f1d65eca1
28 DIST erlang-22.3.tar.gz 55842212 BLAKE2B a43cecb2d0ddb771073c786b7fc6d21aed7d4ab7d8bb854d151ec7583a2d3d89e79fc3275ae45ef12603be6a82cf057372f399b2b11a419553a69d957a95639d SHA512 138c4807f1116ad507d5ce2899438aebf3e1d5503d0de1cf81535dfa2d7bf9224dc45adeeabe5e479bb83293002c0d03e7f78be9f93394e9b85f1d83a3381446
29 DIST erlang-23.0.1.tar.gz 56387006 BLAKE2B 4ecbb5a4de0f83d80da179071d5bed7c6e7eca11f5f8f8c5681673967eaf6f0573240b9ac59e00e7162fdaa3d41e89b357263f47371f0ff9365b448a9f7cf4a9 SHA512 fc9114312327f2b7289078b29ae658a1100c860dfae03e892c1b316007b5ff286cfc301772b336eb1f5b983b3d5f507f03eff2917f418b1b9cb9714f42a59db4
30
31 diff --git a/dev-lang/erlang/erlang-22.3.1.ebuild b/dev-lang/erlang/erlang-22.3.1.ebuild
32 deleted file mode 100644
33 index 5a0f4f57d15..00000000000
34 --- a/dev-lang/erlang/erlang-22.3.1.ebuild
35 +++ /dev/null
36 @@ -1,159 +0,0 @@
37 -# Copyright 1999-2020 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=7
41 -WX_GTK_VER="3.0"
42 -
43 -inherit elisp-common java-pkg-opt-2 systemd wxwidgets
44 -
45 -# NOTE: If you need symlinks for binaries please tell maintainers or
46 -# open up a bug to let it be created.
47 -
48 -UPSTREAM_V="$(ver_cut 1-2)"
49 -
50 -DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
51 -HOMEPAGE="https://www.erlang.org/"
52 -SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
53 - http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
54 - doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
55 -
56 -LICENSE="Apache-2.0"
57 -# We use this subslot because Compiled HiPE Code can be loaded on the exact
58 -# same build of ERTS that was used when compiling the code. See
59 -# http://erlang.org/doc/system_principles/misc.html for more information.
60 -SLOT="0/${PV}"
61 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
62 -IUSE="doc emacs +hipe java +kpoll libressl odbc sctp ssl systemd tk wxwidgets"
63 -
64 -RDEPEND="
65 - acct-group/epmd
66 - acct-user/epmd
67 - sys-libs/ncurses:0
68 - sys-libs/zlib
69 - emacs? ( >=app-editors/emacs-23.1:* )
70 - java? ( >=virtual/jdk-1.8:* )
71 - odbc? ( dev-db/unixODBC )
72 - sctp? ( net-misc/lksctp-tools )
73 - ssl? (
74 - !libressl? ( >=dev-libs/openssl-0.9.7d:0= )
75 - libressl? ( dev-libs/libressl:0= )
76 - )
77 - systemd? ( sys-apps/systemd )
78 - tk? ( dev-lang/tk:0 )
79 - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
80 -"
81 -DEPEND="${RDEPEND}
82 - dev-lang/perl
83 -"
84 -
85 -S="${WORKDIR}/otp-OTP-${PV}"
86 -
87 -PATCHES=(
88 - "${FILESDIR}/18.2.1-wx3.0.patch"
89 - "${FILESDIR}/${PN}-22.0-dont-ignore-LDFLAGS.patch"
90 -)
91 -
92 -SITEFILE=50"${PN}"-gentoo.el
93 -
94 -src_prepare() {
95 - default
96 -
97 - ./otp_build autoconf || die
98 -}
99 -
100 -src_configure() {
101 - use wxwidgets && setup-wxwidgets
102 -
103 - local myconf=(
104 - --disable-builtin-zlib
105 - $(use_enable hipe)
106 - $(use_enable kpoll kernel-poll)
107 - $(use_with java javac)
108 - $(use_enable sctp)
109 - $(use_with ssl ssl "${EPREFIX}"/usr)
110 - $(use_enable ssl dynamic-ssl-lib)
111 - $(use_enable systemd)
112 - $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
113 - )
114 - econf "${myconf[@]}"
115 -}
116 -
117 -src_compile() {
118 - emake
119 -
120 - if use emacs ; then
121 - pushd lib/tools/emacs &>/dev/null || die
122 - elisp-compile *.el
123 - popd &>/dev/null || die
124 - fi
125 -}
126 -
127 -extract_version() {
128 - local path="$1"
129 - local var_name="$2"
130 - sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
131 -}
132 -
133 -src_install() {
134 - local erl_libdir_rel="$(get_libdir)/erlang"
135 - local erl_libdir="/usr/${erl_libdir_rel}"
136 - local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
137 - local erl_erts_ver="$(extract_version erts VSN)"
138 - local my_manpath="/usr/share/${PN}/man"
139 -
140 - [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
141 - [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
142 -
143 - emake INSTALL_PREFIX="${D}" install
144 -
145 - if use doc ; then
146 - # Note: we explicitly install docs into:
147 - # /usr/share/doc/${PF}/{doc,lib,erts-*}
148 - # To maintain that layout we gather everything in 'html-docs'.
149 - # See bug #684376.
150 - mkdir html-docs || die
151 - mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
152 - local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
153 - docompress -x /usr/share/doc/${PF}
154 - else
155 - local DOCS=("README.md")
156 - fi
157 -
158 - einstalldocs
159 -
160 - dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
161 - dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
162 - dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
163 - dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
164 - dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
165 -
166 - ## Clean up the no longer needed files
167 - rm "${ED}/${erl_libdir}/Install" || die
168 -
169 - insinto "${my_manpath}"
170 - doins -r "${WORKDIR}"/man/*
171 - # extend MANPATH, so the normal man command can find it
172 - # see bug 189639
173 - newenvd - "90erlang" <<-_EOF_
174 - MANPATH="${my_manpath}"
175 - _EOF_
176 -
177 - if use emacs ; then
178 - elisp-install erlang lib/tools/emacs/*.{el,elc}
179 - sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
180 - "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
181 - elisp-site-file-install "${T}/${SITEFILE}"
182 - fi
183 -
184 - newinitd "${FILESDIR}"/epmd.init-r2 epmd
185 - newconfd "${FILESDIR}"/epmd.confd-r2 epmd
186 - use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
187 -}
188 -
189 -pkg_postinst() {
190 - use emacs && elisp-site-regen
191 -}
192 -
193 -pkg_postrm() {
194 - use emacs && elisp-site-regen
195 -}
196
197 diff --git a/dev-lang/erlang/erlang-22.3.3.ebuild b/dev-lang/erlang/erlang-22.3.3.ebuild
198 deleted file mode 100644
199 index 5a0f4f57d15..00000000000
200 --- a/dev-lang/erlang/erlang-22.3.3.ebuild
201 +++ /dev/null
202 @@ -1,159 +0,0 @@
203 -# Copyright 1999-2020 Gentoo Authors
204 -# Distributed under the terms of the GNU General Public License v2
205 -
206 -EAPI=7
207 -WX_GTK_VER="3.0"
208 -
209 -inherit elisp-common java-pkg-opt-2 systemd wxwidgets
210 -
211 -# NOTE: If you need symlinks for binaries please tell maintainers or
212 -# open up a bug to let it be created.
213 -
214 -UPSTREAM_V="$(ver_cut 1-2)"
215 -
216 -DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
217 -HOMEPAGE="https://www.erlang.org/"
218 -SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
219 - http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
220 - doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
221 -
222 -LICENSE="Apache-2.0"
223 -# We use this subslot because Compiled HiPE Code can be loaded on the exact
224 -# same build of ERTS that was used when compiling the code. See
225 -# http://erlang.org/doc/system_principles/misc.html for more information.
226 -SLOT="0/${PV}"
227 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
228 -IUSE="doc emacs +hipe java +kpoll libressl odbc sctp ssl systemd tk wxwidgets"
229 -
230 -RDEPEND="
231 - acct-group/epmd
232 - acct-user/epmd
233 - sys-libs/ncurses:0
234 - sys-libs/zlib
235 - emacs? ( >=app-editors/emacs-23.1:* )
236 - java? ( >=virtual/jdk-1.8:* )
237 - odbc? ( dev-db/unixODBC )
238 - sctp? ( net-misc/lksctp-tools )
239 - ssl? (
240 - !libressl? ( >=dev-libs/openssl-0.9.7d:0= )
241 - libressl? ( dev-libs/libressl:0= )
242 - )
243 - systemd? ( sys-apps/systemd )
244 - tk? ( dev-lang/tk:0 )
245 - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
246 -"
247 -DEPEND="${RDEPEND}
248 - dev-lang/perl
249 -"
250 -
251 -S="${WORKDIR}/otp-OTP-${PV}"
252 -
253 -PATCHES=(
254 - "${FILESDIR}/18.2.1-wx3.0.patch"
255 - "${FILESDIR}/${PN}-22.0-dont-ignore-LDFLAGS.patch"
256 -)
257 -
258 -SITEFILE=50"${PN}"-gentoo.el
259 -
260 -src_prepare() {
261 - default
262 -
263 - ./otp_build autoconf || die
264 -}
265 -
266 -src_configure() {
267 - use wxwidgets && setup-wxwidgets
268 -
269 - local myconf=(
270 - --disable-builtin-zlib
271 - $(use_enable hipe)
272 - $(use_enable kpoll kernel-poll)
273 - $(use_with java javac)
274 - $(use_enable sctp)
275 - $(use_with ssl ssl "${EPREFIX}"/usr)
276 - $(use_enable ssl dynamic-ssl-lib)
277 - $(use_enable systemd)
278 - $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
279 - )
280 - econf "${myconf[@]}"
281 -}
282 -
283 -src_compile() {
284 - emake
285 -
286 - if use emacs ; then
287 - pushd lib/tools/emacs &>/dev/null || die
288 - elisp-compile *.el
289 - popd &>/dev/null || die
290 - fi
291 -}
292 -
293 -extract_version() {
294 - local path="$1"
295 - local var_name="$2"
296 - sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
297 -}
298 -
299 -src_install() {
300 - local erl_libdir_rel="$(get_libdir)/erlang"
301 - local erl_libdir="/usr/${erl_libdir_rel}"
302 - local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
303 - local erl_erts_ver="$(extract_version erts VSN)"
304 - local my_manpath="/usr/share/${PN}/man"
305 -
306 - [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
307 - [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
308 -
309 - emake INSTALL_PREFIX="${D}" install
310 -
311 - if use doc ; then
312 - # Note: we explicitly install docs into:
313 - # /usr/share/doc/${PF}/{doc,lib,erts-*}
314 - # To maintain that layout we gather everything in 'html-docs'.
315 - # See bug #684376.
316 - mkdir html-docs || die
317 - mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
318 - local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
319 - docompress -x /usr/share/doc/${PF}
320 - else
321 - local DOCS=("README.md")
322 - fi
323 -
324 - einstalldocs
325 -
326 - dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
327 - dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
328 - dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
329 - dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
330 - dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
331 -
332 - ## Clean up the no longer needed files
333 - rm "${ED}/${erl_libdir}/Install" || die
334 -
335 - insinto "${my_manpath}"
336 - doins -r "${WORKDIR}"/man/*
337 - # extend MANPATH, so the normal man command can find it
338 - # see bug 189639
339 - newenvd - "90erlang" <<-_EOF_
340 - MANPATH="${my_manpath}"
341 - _EOF_
342 -
343 - if use emacs ; then
344 - elisp-install erlang lib/tools/emacs/*.{el,elc}
345 - sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
346 - "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
347 - elisp-site-file-install "${T}/${SITEFILE}"
348 - fi
349 -
350 - newinitd "${FILESDIR}"/epmd.init-r2 epmd
351 - newconfd "${FILESDIR}"/epmd.confd-r2 epmd
352 - use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
353 -}
354 -
355 -pkg_postinst() {
356 - use emacs && elisp-site-regen
357 -}
358 -
359 -pkg_postrm() {
360 - use emacs && elisp-site-regen
361 -}