commit:     b8199eadaab63b6bbe595ea1de99c63460831e9c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  6 03:18:23 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar  6 03:31:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8199ead

net-libs/miniupnpc: Bump to 2.3.2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-libs/miniupnpc/Manifest               |  2 +
 net-libs/miniupnpc/miniupnpc-2.3.2.ebuild | 70 +++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/net-libs/miniupnpc/Manifest b/net-libs/miniupnpc/Manifest
index e00b5828b24a..2500023ad434 100644
--- a/net-libs/miniupnpc/Manifest
+++ b/net-libs/miniupnpc/Manifest
@@ -4,3 +4,5 @@ DIST miniupnpc-2.3.0.tar.gz 105071 BLAKE2B 
a5a2d22d99eb9f20fcb0b61107db61b97fec8
 DIST miniupnpc-2.3.0.tar.gz.sig 543 BLAKE2B 
acbc2fedd1984e2488aac4618a70b2f0e5573ab17beaa84660117fada915b9ee94e419ee4ddbeae30c04e4eff8749d2a8724b4826bd5ce8ac972908fbda1189c
 SHA512 
081d6c77fb08863760e4ddeb5bc1a5414603782b785f1f86efe516e59a113a4da794895ad160922818574029189df32a0c57fe2558c2ce99d521aa2673d40d43
 DIST miniupnpc-2.3.1.tar.gz 139499 BLAKE2B 
b456fc9c4af807a305b18b428a790ab4edb40d2e81bd795417df28030993030e1586e44277ecdf19405eb63eacd8448a50d3434b621b7cbdcdfaedd796587b2e
 SHA512 
dd500317741ff0d61ba6e4ed59dc332eabcc8b072ebd10bfd0c9b802b8973b354f3eae4df0ef9c80f4e187bf227e428053beecdb474499e3a5c8a285a0b11feb
 DIST miniupnpc-2.3.1.tar.gz.sig 543 BLAKE2B 
d5eec2738b3362f35b615963f292e8920264decb4faae6afa4cd1ef459c80e0738b595ec0dda2a9106e72420c4f5ed883d26713b5396f52cb5e949e3279ace48
 SHA512 
f6d0997e85302ca5e7f7b97c3b824303fe85d18516f02e36320e1370443220489bc70d370b187bd814dee762edab16bdb7b8e726e79d9ed8271893ae3058520f
+DIST miniupnpc-2.3.2.tar.gz 140137 BLAKE2B 
3c9928b06a26ebc023c0e0f740c91803e1e08ff1603916ca77ae959b6ba436016754754f3718add0138cfa82116363981ee95798e72f03457f7ef8aa9945c813
 SHA512 
c20a74cd5f1b8fcf8663c50565b7d62da4d9231a2a26c20e2a322a0e6874b31155c5c8f0571eb2af142adeb5892693f92e42539bae8c20c50f1e1903b1c098ce
+DIST miniupnpc-2.3.2.tar.gz.sig 543 BLAKE2B 
e15ff3a1cf923fe5790e6d84ebf7ed685ec5bd9e370cebffc44fe1b3fff643bc791f099f4ca42c8e18d10180b21f57d3e4d458a657be02d0cc7c588d364ad2dd
 SHA512 
05cd7fbfc55adb453bcc82ffaff544612f6f063c53b0a683bf942f8e21afa193f75b3506c71e5a4eb23d6f2921379747640f6058d9b9f8a69fbe43951f731e27

diff --git a/net-libs/miniupnpc/miniupnpc-2.3.2.ebuild 
b/net-libs/miniupnpc/miniupnpc-2.3.2.ebuild
new file mode 100644
index 000000000000..a78d1ab7a055
--- /dev/null
+++ b/net-libs/miniupnpc/miniupnpc-2.3.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs verify-sig
+
+DESCRIPTION="UPnP client library and a simple UPnP client"
+HOMEPAGE="
+       http://miniupnp.free.fr/
+       https://miniupnp.tuxfamily.org/
+       https://github.com/miniupnp/miniupnp/
+"
+SRC_URI="
+       https://miniupnp.tuxfamily.org/files/${P}.tar.gz
+       verify-sig? (
+               https://miniupnp.tuxfamily.org/files/${P}.tar.gz.sig
+       )
+"
+
+LICENSE="BSD"
+SLOT="0/20"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86"
+
+BDEPEND="
+       kernel_linux? ( sys-apps/lsb-release )
+       verify-sig? ( sec-keys/openpgp-keys-miniupnp )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/miniupnp.asc
+
+src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}"/miniupnpc-2.2.3-drop-which.patch
+       )
+       default
+
+       local exprs=(
+               # These bins are not installed, upnpc-static requires building 
static lib
+               -e '/EXECUTABLES =/s/ upnpc-static upnp-listdevices-static//'
+               # Prevent gzipping manpage.
+               -e '/gzip/d'
+               # Disable installing the static library
+               -e '/FILESTOINSTALL =/s/ $(LIBRARY)//'
+               -e '/$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(INSTALLDIRLIB)/d'
+       )
+       sed -i "${exprs[@]}" Makefile || die
+}
+
+# Upstream cmake causes more trouble than it fixes,
+# so we'll just stay with the Makefile for now.
+
+src_compile() {
+       tc-export CC AR
+       emake build/upnpc-shared
+}
+
+src_test() {
+       emake -j1 check
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               PREFIX="${EPREFIX}/usr" \
+               LIBDIR="$(get_libdir)" \
+               install
+
+       dodoc README Changelog.txt
+}

Reply via email to