You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/miniupnpc/miniupnpc-2.2.4.ebuild

50 lines
1.0 KiB

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1 verify-sig
DESCRIPTION="Python bindings for UPnP client library"
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"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""
DEPEND="
>=net-libs/miniupnpc-${PV}:0=
"
RDEPEND="
${DEPEND}
"
BDEPEND="
verify-sig? ( sec-keys/openpgp-keys-miniupnp )
"
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/miniupnp.asc
PATCHES=(
"${FILESDIR}"/miniupnpc-2.2.3-shared-lib.patch
)
# DOCS are installed by net-libs/miniupnpc.
DOCS=()
# Example test command:
# python -c 'import miniupnpc; u = miniupnpc.UPnP(); u.discover(); u.selectigd(); print(u.externalipaddress())'