commit:     5f819137352594daf51745e81403ead9f16d89fb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 17 06:58:50 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 17 07:02:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f819137

dev-libs/sltdl: new package, add 0.5.0, add 9999

>From slibtool-0.7.0 NEWS:
> To seamlessly use slibtool as a libtool drop-in replacement with projects
> that utilize the ltdl interfaces, it is recommended that you first install
> sltdl (obtain a release tarball from dl.foss21.org/sltdl/, or otherwise
> clone the git repository from https://git.foss21.org/cross/sltdl), and
> then _autoreconf_ the source tree of the project being built. For further
> details, please see sltdl's initial release notes.

>From (initial) NEWS:
> In order to seamlessly use sltdl as an ltdl drop-in replacement, one should
> _autoreconf_ the source tree of the project being built after setting
> the LIBTOOLIZE environment variable to /path/to/slibtoolize, as well as the
> ACLOCAL environment variable by appending an appropriate --system-acdir
> argument:
>
> $ EXPORT LIBTOOLIZE=/path/to/slibtoolize
> $ EXPORT ACLOCAL="aclocal --system-acdir=/path/to/share/slibtool"

Bug: https://bugs.gentoo.org/765709
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/sltdl/Manifest           |  2 ++
 dev-libs/sltdl/metadata.xml       |  8 +++++++
 dev-libs/sltdl/sltdl-0.5.0.ebuild | 44 +++++++++++++++++++++++++++++++++++++++
 dev-libs/sltdl/sltdl-9999.ebuild  | 44 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 98 insertions(+)

diff --git a/dev-libs/sltdl/Manifest b/dev-libs/sltdl/Manifest
new file mode 100644
index 000000000000..33d886fb9505
--- /dev/null
+++ b/dev-libs/sltdl/Manifest
@@ -0,0 +1,2 @@
+DIST sltdl-0.5.0.tar.xz 34712 BLAKE2B 
67d0b020b06603c3066bf7daebfb3157e985224d7274a31cd752f9ac0816cb96df7a25e1dd7d67b1e507aa70c160508f22d4fc2ef05a38a633f65634a1e459fe
 SHA512 
2aa681e18f6fa45d1a93500b96b82ffec4b5cb6f590b3921ecbcc00bee9340bfdc2359f2439496e2581007af80457f44e40b711123a4e0dcde8218105d710aeb
+DIST sltdl-0.5.0.tar.xz.sig 833 BLAKE2B 
896e5e3a4190a458415efbcfbd3212946a63ce8cca4e77495c53a419a9f9d2be2fcb747cf29d4a702e65f9a2f3aa46df52ad5a977797b8147a302cca7eb5d3a8
 SHA512 
8decc126c047acaf0accff6057746f7091b0564b57989f69d7730e219bde6b11094ff03473e3b109fc2847e747bf848334d565cf81445518a6ff1a191de62b15

diff --git a/dev-libs/sltdl/metadata.xml b/dev-libs/sltdl/metadata.xml
new file mode 100644
index 000000000000..641cbd3703e7
--- /dev/null
+++ b/dev-libs/sltdl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>s...@gentoo.org</email>
+               <name>Sam James</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/dev-libs/sltdl/sltdl-0.5.0.ebuild 
b/dev-libs/sltdl/sltdl-0.5.0.ebuild
new file mode 100644
index 000000000000..151b720d1990
--- /dev/null
+++ b/dev-libs/sltdl/sltdl-0.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs
+
+# git.foss21.org is the official repository per upstream
+DESCRIPTION="Surrogate ltdl implementation"
+HOMEPAGE="https://dev.midipix.org/cross/sltdl";
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://dev.midipix.org/cross/sltdl";
+else
+       VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/midipix.asc
+       inherit verify-sig
+
+       SRC_URI="https://dl.foss21.org/${PN}/${P}.tar.xz";
+       SRC_URI+=" verify-sig? ( https://dl.foss21.org/${PN}/${P}.tar.xz.sig )"
+
+       KEYWORDS="~amd64"
+fi
+
+BDEPEND="sys-devel/m4"
+
+if [[ ${PV} != *9999 ]] ; then
+       BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-midipix-20250517 )"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+src_configure() {
+       # Custom configure script (not generated by autoconf)
+       edo ./configure \
+               --disable-static \
+               --compiler="$(tc-getCC)" \
+               --host=${CHOST} \
+               --prefix="${EPREFIX}"/usr \
+               --docdir="${ERPEFIX}"/usr/share/doc/${PF} \
+               --mandir="${EPREFIX}"/usr/share/man \
+               --libdir="${EPREFIX}/usr/$(get_libdir)"
+}

diff --git a/dev-libs/sltdl/sltdl-9999.ebuild b/dev-libs/sltdl/sltdl-9999.ebuild
new file mode 100644
index 000000000000..151b720d1990
--- /dev/null
+++ b/dev-libs/sltdl/sltdl-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs
+
+# git.foss21.org is the official repository per upstream
+DESCRIPTION="Surrogate ltdl implementation"
+HOMEPAGE="https://dev.midipix.org/cross/sltdl";
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://dev.midipix.org/cross/sltdl";
+else
+       VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/midipix.asc
+       inherit verify-sig
+
+       SRC_URI="https://dl.foss21.org/${PN}/${P}.tar.xz";
+       SRC_URI+=" verify-sig? ( https://dl.foss21.org/${PN}/${P}.tar.xz.sig )"
+
+       KEYWORDS="~amd64"
+fi
+
+BDEPEND="sys-devel/m4"
+
+if [[ ${PV} != *9999 ]] ; then
+       BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-midipix-20250517 )"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+src_configure() {
+       # Custom configure script (not generated by autoconf)
+       edo ./configure \
+               --disable-static \
+               --compiler="$(tc-getCC)" \
+               --host=${CHOST} \
+               --prefix="${EPREFIX}"/usr \
+               --docdir="${ERPEFIX}"/usr/share/doc/${PF} \
+               --mandir="${EPREFIX}"/usr/share/man \
+               --libdir="${EPREFIX}/usr/$(get_libdir)"
+}

Reply via email to