summaryrefslogtreecommitdiff
diff options
authorPatrick Lauer <patrick@gentoo.org>2025-08-23 05:32:08 +0000
committerPatrick Lauer <patrick@gentoo.org>2025-08-23 05:32:52 +0000
commit4f7e11e7d522e3e28f306b4c44b69cfaa3168e98 (patch)
tree016997c4a5d409585a78dafedf8b23fed778c0fb /dev-lang/erlang
parentdev-lang/erlang: add 26.2.5.14 (diff)
downloadgentoo-4f7e11e7d522e3e28f306b4c44b69cfaa3168e98.tar.gz
gentoo-4f7e11e7d522e3e28f306b4c44b69cfaa3168e98.tar.bz2
gentoo-4f7e11e7d522e3e28f306b4c44b69cfaa3168e98.zip
dev-lang/erlang: drop 26.2.4-r1, 27.2-r1, 28.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'dev-lang/erlang')
-rw-r--r--dev-lang/erlang/Manifest5
-rw-r--r--dev-lang/erlang/erlang-26.2.4-r1.ebuild187
-rw-r--r--dev-lang/erlang/erlang-27.2-r1.ebuild168
-rw-r--r--dev-lang/erlang/erlang-28.0.ebuild167
4 files changed, 0 insertions, 527 deletions
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest
index 65fc64bf1ef5..bdded7a03dee 100644
--- a/dev-lang/erlang/Manifest
+++ b/dev-lang/erlang/Manifest
@@ -1,15 +1,10 @@
DIST erlang-26.2.1.tar.gz 62435848 BLAKE2B 4e257c73de868b5bbd213a66ece60f29e5231845c5f40b17876b8f042c20ba89bced920ffdbb2a44b890b920d8a147b0a0cb4a2bce66a51e49b720ee794c06c9 SHA512 f4fa0d11ecbd99ca5ef4421abb78ef2aba8ea0f8d19e4aed991c2afcc42bb057a37ae34a416b050fd7ed8ca39ba7cc8b3619ff371bc09f56dfd5b523988a8f8c
-DIST erlang-26.2.4.tar.gz 62476971 BLAKE2B f3acfb05a569ce0b4cfd9d9a30ac4840845cc285691294c2ff2776c45812b9046d3453700150912128c385458a3afba7dc54ab773611d46de31b4d2744fcdaf6 SHA512 2fa385b5ec93810c984f31e22757fe8614087191adf0f99376702bd15a316237f8abc1b65d40a302d3919cd28afe65fb4086e39638c6c39af165c0c1ee6fb51d
DIST erlang-26.2.5.14.tar.gz 62564783 BLAKE2B 815d3e46f906905df4ccc1f0149d5de84f5de46f95226fc818e0acae88ce668bbde2cd8cf8dd62abdff5d7a805f848ee424ab789f7166efbd30690bf481a62bd SHA512 49ab187d657efd45304685b2117aa8f9adc07a41864e13c1bb5c3b3893fcda4b5d3895bfe91a3dbcd5c3372f49b3aad9f4dafa6511755e6cab595ddd87c748cb
-DIST erlang-27.2.tar.gz 62210841 BLAKE2B 2f5d664eadb1866f6b2c5874704a3e6ab8181f2f465805f710c2643acb09b94cfaf8aa679df60be2ef048f54f8485c3e552fcc12b7f5d2cf4a87a72edb5bc47c SHA512 dd64bf6c997cd2c201afdc693b3766468d9dad86ced46d3701da3858cac57e056148f5e45bfbccf8a92d3a55640a7f46ea4f5184ffc3b9f227bec3c3dfb41ab0
DIST erlang-27.3.4.2.tar.gz 62281603 BLAKE2B 37bd3aaf4b2bd53509acfb57c156dc0c0c33c9f1f108aac06863ba7aa6c7eb49b21b5d4bad5b9f3cee863c286cbdb2bab7df0b9e6567f420df9e41538265bdc0 SHA512 5f2f55bd4a6ec1ea5193beca3c44afcd61e1c674077f2887492efb61c0dd258be07e3f7415bed2395a3e2e3b6fe2303c0b7e532eaa93bef79af0a44ee818fd66
DIST erlang-28.0.2.tar.gz 63871146 BLAKE2B f95cc92efd81dd3cb8e2e91b975db7ab45e42d6efc5e241317ed5a74625a209a77398f04a031c9e8cb1d21b7456606d3f6bff720a541927d338bd79cc8c283eb SHA512 48c74dd47091f86aee5b8aa453e0e610c0c8be23da43a49f30caad76fa6d8ed3e2a4744e8895669c0884162cafb355c497f23438e28bc36d2ea79b2c39b45cc2
-DIST erlang-28.0.tar.gz 63814863 BLAKE2B 6ca8c34a48980dfb24b13e9306505a759978eca1a80444014e8a362344a7ebcc95b621873abeee229ea6beb476c35a054ca96cd36ff24462d94c4adfcedd0084 SHA512 bd13bd5ee753ad4277905c0868fca8d8058fae30e1570d115eed3b133058e0d755204b9984d3826fe24cdc7fec617d4d4a86bd28f51c7b70bef2242fdb00ccb6
DIST erlang_doc_html_26.2.tar.gz 37572819 BLAKE2B c9e5dcaf4a282063a58883fc63adb14e4448333e07994542fdf6dfb29cf4c782f3b7a33b4b6543ffa64b2ce9f40fa9482ca798181bd84e00ebaf5a3223d300d4 SHA512 846f42666d190c9c2b4c11048e842f921d2bc9767483b6f54095c3aba0cbea9a0fbe06daac4c4837b371f9653346660704ea957fd9fbb6606e4274897042abaa
-DIST erlang_doc_html_27.2.tar.gz 29949824 BLAKE2B f8c32698ff446095742ada9b4a67ce3fe5009bfa99973f7c2826e421f9228544e94493dc3b9f661a2288b8e347329efedfa8b1a113085a4db28ba23c73648bd1 SHA512 51f5b33ffe7abc3cca7cde8170cdd6257c628c9d733b0c3fc6a2fecc9515ee39e618f1925e4300de7f055de73665a43d1953225a90504ed732b5b22df3237b53
DIST erlang_doc_html_27.3.tar.gz 26018303 BLAKE2B cd21ae4f8d50b9b939539ecc508c085d1815fa927798258f6ef2ce139bf4a1e31f2f420185684a8820a93ead671c3149510cd7bb87c8c6b68817133208be3cc0 SHA512 85e775556af7ea44393797295eb3c676ebe57523c7fba1a1b042a135d7b9dc4bf2b8ae66284486f84dd749b9e4f1739276f32294050215ac4f03e6c86efb71e6
DIST erlang_doc_html_28.0.tar.gz 26565055 BLAKE2B 85d474c12da8b8f86fce8ee1b4b847238aa1532846fb8cc7953af150c95678c0f7fa31fe8e29519d7c982590fc00e8244f2719698265335afb4d593755baf02a SHA512 f436bd685265a289ac101bca0a65259b4f39aba6fd669bfe1a69fe4d7fb24bd12d4fb6a35d057ca9669aed6e48701f9512b4f3e48228df2ae010deb9ec1e24e2
DIST erlang_doc_man_26.2.tar.gz 1746046 BLAKE2B 20f3c5203313bc40595f9a0996c1a31c76d9b1da1ba90fd99b8946b23425c13ce11d27fb9b042911a39297c5bceeff098b44082a007cb2373cac253321f4435c SHA512 bdde6687b449391af5144de54e6d4edbaa75065e9f9cf1ec3878a034968785c2b35eb95331cad329fae6656461f1bc9475b68d1ee05af48166aa9c1083f841a0
-DIST erlang_doc_man_27.2.tar.gz 44960 BLAKE2B 6a6814d393a55b8161372d84f09e09e5a0eddcfc235ca8bae547d545b267c30d11ef641c413b20fd938a8d0ee1d8c11bd6450881a42cad69b035416a190fae99 SHA512 b338d9fef4446fc3f15a6f43d4adb952f6af9630f5b309ac1b6148482bc59e907cc68d6c803f029d8309e59962fde236fc7f2c0f41b0061d05f5f7b38f93de27
DIST erlang_doc_man_27.3.tar.gz 45121 BLAKE2B 7d94a28330ade85fc79345c32f1bde97d85760eb8bed7885885c4b0aead2b7ab9889c848bde74472c857bd686269e163f36be1f9c3b0273e0095ab981528becf SHA512 14002da89b74f1cd718a42fe930c6ef3ac24a66fa14610a73a3980d0cabc0373a09d06aa755d344c17812ebd8f3a27727078f3012f09565185fd3b96e32be4c9
DIST erlang_doc_man_28.0.tar.gz 44905 BLAKE2B 734676c22a4da9dccb781daec847fedcb5242adbacd156c1d544cbced664ff2f71a75c8de7c5bdaaa5e58e8193e86220780a27b4fd098f359540804ea7f6f75d SHA512 84cd4d9f0a379d69668e3e3ed98ac12ca6cb32dd682e43a9da2acd74e0d40b9d77999bc2cdac1414588ff05ebb084ba2964a25a6f5f38ae185e11be1197bcbd2
diff --git a/dev-lang/erlang/erlang-26.2.4-r1.ebuild b/dev-lang/erlang/erlang-26.2.4-r1.ebuild
deleted file mode 100644
index 08856b4f8923..000000000000
--- a/dev-lang/erlang/erlang-26.2.4-r1.ebuild
+++ /dev/null
@@ -1,187 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-WX_GTK_VER="3.2-gtk3"
-
-inherit autotools elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets
-
-UPSTREAM_V="$(ver_cut 1-2)"
-
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
-HOMEPAGE="https://www.erlang.org/"
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
- doc? ( https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
-
-LICENSE="Apache-2.0"
-# We use this subslot because Compiled HiPE Code can be loaded on the exact
-# same build of ERTS that was used when compiling the code. See
-# http://erlang.org/doc/system_principles/misc.html for more information.
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets"
-
-RDEPEND="
- acct-group/epmd
- acct-user/epmd
- sys-libs/ncurses:0
- sys-libs/zlib
- emacs? ( >=app-editors/emacs-23.1:* )
- java? ( >=virtual/jdk-1.8:* )
- odbc? ( dev-db/unixODBC )
- sctp? ( net-misc/lksctp-tools )
- ssl? ( >=dev-libs/openssl-0.9.7d:0= )
- systemd? ( sys-apps/systemd )
- wxwidgets? (
- dev-libs/glib:2
- x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl]
- )
-"
-DEPEND="${RDEPEND}
- dev-lang/perl
-"
-
-S="${WORKDIR}/otp-OTP-${PV}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
- "${FILESDIR}"/${PN}-25.1.2-c99.patch # Bug #882887
- "${FILESDIR}"/${PN}-26.2.4-test-errorinfo.patch
-)
-
-SITEFILE=50"${PN}"-gentoo.el
-
-src_prepare() {
- default
-
- tc-export AR CPP CXX LD
-
- # bug #797886: erlang's VM does unsafe casts for ints
- # to pointers and back. This breaks on gcc-11 -flto.
- append-flags -fno-strict-aliasing
-
- # Ensure that we use erl_interface's libei.a, and not the system
- # libei.so from dev-libs/libei. Bug #912888.
- sed -i 's/-lei$/-l:libei.a/' \
- "${S}"/lib/odbc/c_src/Makefile.in || die
- (cd "${S}"/lib/odbc &&
- eautoconf -B "${S}"/make/autoconf &&
- eautoheader -B "${S}"/make/autoconf) || die
-}
-
-src_configure() {
- use wxwidgets && setup-wxwidgets
-
- local myconf=(
- --disable-builtin-zlib
-
- # don't search for static zlib
- --with-ssl-zlib=no
-
- $(use_enable kpoll kernel-poll)
- $(use_with java javac)
- $(use_with odbc)
- $(use_enable sctp)
- $(use_with ssl ssl)
- $(use_enable ssl dynamic-ssl-lib)
- $(use_enable systemd)
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
- )
- econf "${myconf[@]}"
-}
-
-src_compile() {
- emake
-
- if use doc ; then
- emake docs DOC_TARGETS=chunks
- fi
-
- if use emacs ; then
- pushd lib/tools/emacs &>/dev/null || die
- elisp-compile *.el
- popd &>/dev/null || die
- fi
-}
-
-extract_version() {
- local path="$1"
- local var_name="$2"
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
-}
-
-src_install() {
- local erl_libdir_rel="$(get_libdir)/erlang"
- local erl_libdir="/usr/${erl_libdir_rel}"
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
- local erl_erts_ver="$(extract_version erts VSN)"
- local my_manpath="/usr/share/${PN}/man"
-
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
-
- emake INSTALL_PREFIX="${D}" install
-
- if use doc ; then
- emake INSTALL_PREFIX="${D}" install-docs DOC_TARGETS=chunks
-
- # Note: we explicitly install docs into:
- # /usr/share/doc/${PF}/{doc,lib,erts-*}
- # To maintain that layout we gather everything in 'html-docs'.
- # See bug #684376.
- mkdir html-docs || die
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
- docompress -x /usr/share/doc/${PF}
- else
- local DOCS=("README.md")
- fi
-
- einstalldocs
-
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
-
- ## Clean up the no longer needed files
- rm "${ED}/${erl_libdir}/Install" || die
-
- # Bug #922743
- docompress "${my_manpath}"
-
- insinto "${my_manpath}"
- doins -r "${WORKDIR}"/man/*
- # extend MANPATH, so the normal man command can find it
- # see bug 189639
- newenvd - "90erlang" <<-_EOF_
- MANPATH="${my_manpath}"
- _EOF_
-
- if use emacs ; then
- elisp-install erlang lib/tools/emacs/*.{el,elc}
- sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
- "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
- elisp-site-file-install "${T}/${SITEFILE}"
- fi
-
- newinitd "${FILESDIR}"/epmd.init-r3 epmd
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
-}
-
-src_test() {
- # Only run a subset of tests to test that everything was built
- # successfully, otherwise we will be here for a long time.
- emake kernel_test ARGS="-suite os_SUITE"
-}
-
-pkg_postinst() {
- use emacs && elisp-site-regen
-}
-
-pkg_postrm() {
- use emacs && elisp-site-regen
-}
diff --git a/dev-lang/erlang/erlang-27.2-r1.ebuild b/dev-lang/erlang/erlang-27.2-r1.ebuild
deleted file mode 100644
index b29ef0a9b1bc..000000000000
--- a/dev-lang/erlang/erlang-27.2-r1.ebuild
+++ /dev/null
@@ -1,168 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-WX_GTK_VER="3.2-gtk3"
-
-inherit autotools flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets
-
-UPSTREAM_V="$(ver_cut 1-2)"
-
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
-HOMEPAGE="https://www.erlang.org/ https://github.com/erlang/otp"
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/${PN}/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz
- -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
- doc? ( https://github.com/${PN}/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz
- -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
-S="${WORKDIR}"/otp-OTP-${PV}
-
-LICENSE="Apache-2.0"
-# We use this subslot because Compiled HiPE Code can be loaded on the exact
-# same build of ERTS that was used when compiling the code. See
-# http://erlang.org/doc/system_principles/misc.html for more information.
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="doc java +kpoll odbc sctp ssl systemd tk wxwidgets"
-
-RDEPEND="
- acct-group/epmd
- acct-user/epmd
- sys-libs/ncurses:0
- sys-libs/zlib
- java? ( >=virtual/jdk-1.8:* )
- odbc? ( dev-db/unixODBC )
- sctp? ( net-misc/lksctp-tools )
- ssl? ( >=dev-libs/openssl-0.9.7d:0= )
- systemd? ( sys-apps/systemd )
- wxwidgets? (
- dev-libs/glib:2
- x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl]
- virtual/glu
- )
-"
-DEPEND="${RDEPEND}
- dev-lang/perl
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-27.0-dont-ignore-LDFLAGS.patch
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
- "${FILESDIR}"/${PN}-25.1.2-c99.patch # Bug #882887
-)
-
-SITEFILE=50"${PN}"-gentoo.el
-
-QA_CONFIG_IMPL_DECL_SKIP=(
- # FreeBSD & OpenBSD
- pthread_set_name_np
-)
-
-src_prepare() {
- default
-
- tc-export AR CPP CXX LD
-
- # bug #797886: erlang's VM does unsafe casts for ints
- # to pointers and back. This breaks on gcc-11 -flto.
- append-flags -fno-strict-aliasing
-
- # Ensure that we use erl_interface's libei.a, and not the system
- # libei.so from dev-libs/libei. Bug #912888.
- sed -i 's/-lei$/-l:libei.a/' \
- "${S}"/lib/odbc/c_src/Makefile.in || die
- (cd "${S}"/lib/odbc &&
- eautoconf -B "${S}"/make/autoconf &&
- eautoheader -B "${S}"/make/autoconf) || die
-}
-
-src_configure() {
- use wxwidgets && setup-wxwidgets
-
- local myconf=(
- --disable-builtin-zlib
-
- # don't search for static zlib
- --with-ssl-zlib=no
-
- $(use_enable kpoll kernel-poll)
- $(use_with java javac)
- $(use_with odbc)
- $(use_enable sctp)
- $(use_with ssl ssl)
- $(use_enable ssl dynamic-ssl-lib)
- $(use_enable systemd)
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
- )
- econf "${myconf[@]}"
-}
-
-src_compile() {
- emake
- use doc && emake docs DOC_TARGETS=chunks
-}
-
-extract_version() {
- local path="$1"
- local var_name="$2"
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
-}
-
-src_install() {
- local erl_libdir_rel="$(get_libdir)/erlang"
- local erl_libdir="/usr/${erl_libdir_rel}"
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
- local erl_erts_ver="$(extract_version erts VSN)"
- local my_manpath="/usr/share/${PN}/man"
-
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
-
- emake INSTALL_PREFIX="${D}" install
-
- if use doc ; then
- emake INSTALL_PREFIX="${D}" install-docs DOC_TARGETS=chunks
-
- # Note: we explicitly install docs into:
- # /usr/share/doc/${PF}/{doc,lib,erts-*}
- # To maintain that layout we gather everything in 'html-docs'.
- # See bug #684376.
- mkdir html-docs || die
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
- docompress -x /usr/share/doc/${PF}
- else
- local DOCS=("README.md")
- fi
-
- einstalldocs
-
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
-
- ## Clean up the no longer needed files
- rm "${ED}/${erl_libdir}/Install" || die
-
- # Bug #922743
- docompress "${my_manpath}"
-
- insinto "${my_manpath}"
- doins -r "${WORKDIR}"/man/*
- # extend MANPATH, so the normal man command can find it
- # see bug 189639
- newenvd - "90erlang" <<-_EOF_
- MANPATH="${my_manpath}"
- _EOF_
-
- newinitd "${FILESDIR}"/epmd.init-r3 epmd
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
-}
-
-src_test() {
- # Only run a subset of tests to test that everything was built
- # successfully, otherwise we will be here for a long time.
- emake kernel_test ARGS="-suite os_SUITE"
-}
diff --git a/dev-lang/erlang/erlang-28.0.ebuild b/dev-lang/erlang/erlang-28.0.ebuild
deleted file mode 100644
index 07e568f23bcf..000000000000
--- a/dev-lang/erlang/erlang-28.0.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-WX_GTK_VER="3.2-gtk3"
-
-inherit autotools flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets
-
-UPSTREAM_V="$(ver_cut 1-2)"
-
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
-HOMEPAGE="https://www.erlang.org/ https://github.com/erlang/otp"
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
- https://github.com/${PN}/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz
- -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
- doc? ( https://github.com/${PN}/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz
- -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
-S="${WORKDIR}"/otp-OTP-${PV}
-
-LICENSE="Apache-2.0"
-# We use this subslot because Compiled HiPE Code can be loaded on the exact
-# same build of ERTS that was used when compiling the code. See
-# http://erlang.org/doc/system_principles/misc.html for more information.
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="doc java +kpoll odbc sctp ssl systemd tk wxwidgets"
-
-RDEPEND="
- acct-group/epmd
- acct-user/epmd
- sys-libs/ncurses:0
- sys-libs/zlib
- java? ( >=virtual/jdk-1.8:* )
- odbc? ( dev-db/unixODBC )
- sctp? ( net-misc/lksctp-tools )
- ssl? ( >=dev-libs/openssl-0.9.7d:0= )
- systemd? ( sys-apps/systemd )
- wxwidgets? (
- dev-libs/glib:2
- x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl]
- virtual/glu
- )
-"
-DEPEND="${RDEPEND}
- dev-lang/perl
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-27.0-dont-ignore-LDFLAGS.patch
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
-)
-
-SITEFILE=50"${PN}"-gentoo.el
-
-QA_CONFIG_IMPL_DECL_SKIP=(
- # FreeBSD & OpenBSD
- pthread_set_name_np
-)
-
-src_prepare() {
- default
-
- tc-export AR CPP CXX LD
-
- # bug #797886: erlang's VM does unsafe casts for ints
- # to pointers and back. This breaks on gcc-11 -flto.
- append-flags -fno-strict-aliasing
-
- # Ensure that we use erl_interface's libei.a, and not the system
- # libei.so from dev-libs/libei. Bug #912888.
- sed -i 's/-lei$/-l:libei.a/' \
- "${S}"/lib/odbc/c_src/Makefile.in || die
- (cd "${S}"/lib/odbc &&
- eautoconf -B "${S}"/make/autoconf &&
- eautoheader -B "${S}"/make/autoconf) || die
-}
-
-src_configure() {
- use wxwidgets && setup-wxwidgets
-
- local myconf=(
- --disable-builtin-zlib
-
- # don't search for static zlib
- --with-ssl-zlib=no
-
- $(use_enable kpoll kernel-poll)
- $(use_with java javac)
- $(use_with odbc)
- $(use_enable sctp)
- $(use_with ssl ssl)
- $(use_enable ssl dynamic-ssl-lib)
- $(use_enable systemd)
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
- )
- econf "${myconf[@]}"
-}
-
-src_compile() {
- emake
- use doc && emake docs DOC_TARGETS=chunks
-}
-
-extract_version() {
- local path="$1"
- local var_name="$2"
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
-}
-
-src_install() {
- local erl_libdir_rel="$(get_libdir)/erlang"
- local erl_libdir="/usr/${erl_libdir_rel}"
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
- local erl_erts_ver="$(extract_version erts VSN)"
- local my_manpath="/usr/share/${PN}/man"
-
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
-
- emake INSTALL_PREFIX="${D}" install
-
- if use doc ; then
- emake INSTALL_PREFIX="${D}" install-docs DOC_TARGETS=chunks
-
- # Note: we explicitly install docs into:
- # /usr/share/doc/${PF}/{doc,lib,erts-*}
- # To maintain that layout we gather everything in 'html-docs'.
- # See bug #684376.
- mkdir html-docs || die
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
- docompress -x /usr/share/doc/${PF}
- else
- local DOCS=("README.md")
- fi
-
- einstalldocs
-
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
-
- ## Clean up the no longer needed files
- rm "${ED}/${erl_libdir}/Install" || die
-
- # Bug #922743
- docompress "${my_manpath}"
-
- insinto "${my_manpath}"
- doins -r "${WORKDIR}"/man/*
- # extend MANPATH, so the normal man command can find it
- # see bug 189639
- newenvd - "90erlang" <<-_EOF_
- MANPATH="${my_manpath}"
- _EOF_
-
- newinitd "${FILESDIR}"/epmd.init-r3 epmd
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
-}
-
-src_test() {
- # Only run a subset of tests to test that everything was built
- # successfully, otherwise we will be here for a long time.
- emake kernel_test ARGS="-suite os_SUITE"
-}