diff options
author | Sven Wegener <swegener@gentoo.org> | 2020-11-15 09:52:44 +0100 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2020-11-15 09:54:09 +0100 |
commit | 5cce36994098f18dbca61ffc6e96817941549256 (patch) | |
tree | 799f59b8623b945547f293e5409332485daec67a | |
parent | dev-python/hiredis: Restrict dev-libs/hiredis dependency (diff) | |
download | gentoo-5cce36994098f18dbca61ffc6e96817941549256.tar.gz gentoo-5cce36994098f18dbca61ffc6e96817941549256.tar.bz2 gentoo-5cce36994098f18dbca61ffc6e96817941549256.zip |
dev-python/hiredis: Revision bump for system-libs USE flag
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sven Wegener <swegener@gentoo.org>
-rw-r--r-- | dev-python/hiredis/hiredis-1.0.1-r1.ebuild | 32 | ||||
-rw-r--r-- | dev-python/hiredis/metadata.xml | 3 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/hiredis/hiredis-1.0.1-r1.ebuild b/dev-python/hiredis/hiredis-1.0.1-r1.ebuild new file mode 100644 index 000000000000..8e84e217d314 --- /dev/null +++ b/dev-python/hiredis/hiredis-1.0.1-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="Python extension that wraps hiredis" +HOMEPAGE="https://github.com/pietern/hiredis-py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="system-libs" + +DEPEND="system-libs? ( dev-libs/hiredis:0/0.14 )" +RDEPEND="${DEPEND}" + +src_prepare() { + use system-libs && PATCHES+=( + "${FILESDIR}"/${P}-system-libs.patch + "${FILESDIR}"/${P}-api-0.14.patch + ) + default +} + +python_test() { + cd test + "${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed" +} diff --git a/dev-python/hiredis/metadata.xml b/dev-python/hiredis/metadata.xml index d5da8f0733c4..2bf5fbd7ca5f 100644 --- a/dev-python/hiredis/metadata.xml +++ b/dev-python/hiredis/metadata.xml @@ -13,4 +13,7 @@ <remote-id type="pypi">hiredis</remote-id> <remote-id type="github">pietern/hiredis-py</remote-id> </upstream> + <use> + <flag name="system-libs">Use dev-libs/hiredis from system</flag> + </use> </pkgmetadata> |