1 |
commit: cc9a0268ceac580e5817ff5cf22352e13d7983dd |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Tue Oct 6 15:07:53 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 22:20:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc9a0268 |
7 |
|
8 |
dev-lang/erlang: bump up to 23.0.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17822 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-lang/erlang/Manifest | 1 + |
16 |
dev-lang/erlang/erlang-23.0.4.ebuild | 158 +++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 159 insertions(+) |
18 |
|
19 |
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest |
20 |
index ce5e4724f79..95b4f53b501 100644 |
21 |
--- a/dev-lang/erlang/Manifest |
22 |
+++ b/dev-lang/erlang/Manifest |
23 |
@@ -2,6 +2,7 @@ DIST erlang-22.3.2.tar.gz 55856668 BLAKE2B d5d2ae17b8fb1b7c3da0c145e4e17d38e47d5 |
24 |
DIST erlang-22.3.4.tar.gz 55861416 BLAKE2B 881eb664ea449fa021cdb6daaeb998ea5f736eae0900ad67c1416c0e0e0888b212e1fd1fc0ee655f1c05821b56bae52f150c3f29c2eddbac205d2a6f2fce5494 SHA512 14e90efb40568a1fd7a32b82fcdf32df8ccbda938b9e538bb3b1a77d343ae16f5721abb3d47e8dd567d7aa91d1dea6da8b7ada8a5cd8d33c38ba324f1d65eca1 |
25 |
DIST erlang-23.0.2.tar.gz 56391276 BLAKE2B a9f3203a28dfb3a8abe93f7cabd34b7c34346cf400dbad751c180dcbe33c40761c74680ef7ed1a3221a69c0519f37183787463f659e5a10393404df95c59fbec SHA512 82764ab879ea7588de505c6d58716999dc207163d8dcded226fe6849a3239c00088cb614558b77c038dcad1440f9b2e3ca2b2f1251df5d71b423d3f6e7497c6e |
26 |
DIST erlang-23.0.3.tar.gz 56388263 BLAKE2B 58f41ab2956c93fbabc6b91f89e3c3f3c23a7dc7dc5473f1cf99817043aa18949933d6182e7e7daefa394529d2b2be8efb51462d8e7a8beb23ed70dbe2c0a319 SHA512 f7752bfa06dd283b36e330ba4270ee37ca759be697c804e6ac249becdc67de4bccb43f60a8d47f9a094d778f11fb17cf6d29de8ce60471aeb18c5fbd64cdfb4d |
27 |
+DIST erlang-23.0.4.tar.gz 56394805 BLAKE2B 10a4e9e3084ad2d1bb10fa736d86eb03fa6b249f83b9d06bfef4c37f99ad86dd1415c2fbaa1524cddaf57dd228d25f388fa9fe9f5b4a03ba7477080e11020fb1 SHA512 53d4b7a5e76113bb3a9695a266e58dbebb57887b1eea4e8acb56bb85d194295231d739719d526dfc6d1f0bf745d7f059fdf5ec9dc79859f5b16a75c4d0a6b348 |
28 |
DIST erlang_doc_html_22.3.tar.gz 34041790 BLAKE2B 76372acf5d6a581fb97cac9fa8230f1505650e9398d0a8e6ed163718f6d64cbbb3b7c79a1b7129827482345ddf950be4a5d83f0dac44e173f0ef45b148b73faa SHA512 9199b6229b73a22e271c232ce03b83b65c265367062d57ca5babd23a2f0a088fde3054b25c65c1bf2cb714cb70354ce4324aa8e865db72beb1f788c27389558c |
29 |
DIST erlang_doc_html_23.0.tar.gz 36238699 BLAKE2B bce5fb1d766d3a795728cf7c00529129690f52e5dbe7363095cb7e63d5331a4dfc05c2042d24f10c7f3facbd187284aa323a92c0ed7515c1750aee4cd890fbd4 SHA512 bd0b1adf8639674d31152024e1351105249c6e6f93f28362e9e4b66ce6daadbe5eef5917a5889c926130e81bd000cfc44895ebaa309bf9a0c1c125713b715927 |
30 |
DIST erlang_doc_man_22.3.tar.gz 1366911 BLAKE2B 89931e9ea4ef54526eb910d3b0a56711e447dffc0463d7583db8875b9be789fd369f701eb7b6fa5da7b63de3f41a8e4ba15db6db02d90642a8b322f3897d7a2b SHA512 b47c66ebd34d2f511a702e97acd67eff7c5d47045a80ffb17b21032a9b9725b015cd171b78c04e3169a95f0acdbdcab57647b31ace751c9019ce3f7c75d743b6 |
31 |
|
32 |
diff --git a/dev-lang/erlang/erlang-23.0.4.ebuild b/dev-lang/erlang/erlang-23.0.4.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..e0cd7fb3cee |
35 |
--- /dev/null |
36 |
+++ b/dev-lang/erlang/erlang-23.0.4.ebuild |
37 |
@@ -0,0 +1,158 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+WX_GTK_VER="3.0-gtk3" |
43 |
+ |
44 |
+inherit elisp-common java-pkg-opt-2 systemd wxwidgets |
45 |
+ |
46 |
+# NOTE: If you need symlinks for binaries please tell maintainers or |
47 |
+# open up a bug to let it be created. |
48 |
+ |
49 |
+UPSTREAM_V="$(ver_cut 1-2)" |
50 |
+ |
51 |
+DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)" |
52 |
+HOMEPAGE="https://www.erlang.org/" |
53 |
+SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz |
54 |
+ http://erlang.org/download/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz |
55 |
+ doc? ( http://erlang.org/download/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )" |
56 |
+ |
57 |
+LICENSE="Apache-2.0" |
58 |
+# We use this subslot because Compiled HiPE Code can be loaded on the exact |
59 |
+# same build of ERTS that was used when compiling the code. See |
60 |
+# http://erlang.org/doc/system_principles/misc.html for more information. |
61 |
+SLOT="0/${PV}" |
62 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
63 |
+IUSE="doc emacs +hipe java +kpoll libressl odbc sctp ssl systemd tk wxwidgets" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ acct-group/epmd |
67 |
+ acct-user/epmd |
68 |
+ sys-libs/ncurses:0 |
69 |
+ sys-libs/zlib |
70 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
71 |
+ java? ( >=virtual/jdk-1.8:* ) |
72 |
+ odbc? ( dev-db/unixODBC ) |
73 |
+ sctp? ( net-misc/lksctp-tools ) |
74 |
+ ssl? ( |
75 |
+ !libressl? ( >=dev-libs/openssl-0.9.7d:0= ) |
76 |
+ libressl? ( dev-libs/libressl:0= ) |
77 |
+ ) |
78 |
+ systemd? ( sys-apps/systemd ) |
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 |
+} |