net-libs/miniupnpc: Bump to 2.3.3

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-05-27 05:02:15 +02:00
parent 21dcd9d80d
commit cf4c8d2a06
2 changed files with 72 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
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
DIST miniupnpc-2.3.3.tar.gz 141281 BLAKE2B 3f20f13c5b4056be1f61dfcfc3c8a8ece65cd6377d8c2a96c2bc937932f7d084820f43f0c4a7c05f1676347c558ee6edea77df9552ed0f13232338114bd910c3 SHA512 a4ac76ae4dac73773b68f4af81f8f8502d168122e16313c986b7fa7cdea02ded0e722a6dd6c8dc8633f167e04b8df1ed6f7202db0d76438c4010780c48e5594c
DIST miniupnpc-2.3.3.tar.gz.sig 543 BLAKE2B ef45851a5e372780e6bbefd81662aa29f5498ca17301f7638ddd497d9816d4a47d36616e5dd98e6cbce61ce1291b00b2734a39e2c9683d99b2a82ace9d6cefc3 SHA512 003fd05a59a9519679f5baad5775c02a64e697150d7ff71bdf0267a803ff2e4585a2c15acd3f87f9543d04eec78288e8e03840faee9e6f5edec9b6eab0310520

View File

@@ -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/21"
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
}