summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2020-11-15 15:19:38 +0100
committerSven Wegener <swegener@gentoo.org>2020-11-15 15:28:56 +0100
commitc7b8ba0b3e28a5b3b8a81780c6c2a4c0ca3d3c62 (patch)
treebe24ca0c960c7a244887004262fd9ef7ba9d85b8 /dev-python/hiredis
parentnet-libs/aqbanking: Drop 6.0.1 (diff)
downloadgentoo-c7b8ba0b3e28a5b3b8a81780c6c2a4c0ca3d3c62.tar.gz
gentoo-c7b8ba0b3e28a5b3b8a81780c6c2a4c0ca3d3c62.tar.bz2
gentoo-c7b8ba0b3e28a5b3b8a81780c6c2a4c0ca3d3c62.zip
dev-python/hiredis: Add system-libs USE flag to new version
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'dev-python/hiredis')
-rw-r--r--dev-python/hiredis/hiredis-1.1.0.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-python/hiredis/hiredis-1.1.0.ebuild b/dev-python/hiredis/hiredis-1.1.0.ebuild
index 90148fb3b827..a909b3a56dd7 100644
--- a/dev-python/hiredis/hiredis-1.1.0.ebuild
+++ b/dev-python/hiredis/hiredis-1.1.0.ebuild
@@ -13,11 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
+IUSE="system-libs"
-DEPEND=""
+DEPEND="system-libs? ( dev-libs/hiredis:0/0.14 )"
RDEPEND="${DEPEND}"
+src_prepare() {
+ use system-libs && PATCHES+=(
+ "${FILESDIR}"/${PN}-1.0.1-system-libs.patch
+ "${FILESDIR}"/${PN}-1.0.1-api-0.14.patch
+ )
+ default
+}
+
python_test() {
cd test
"${EPYTHON}" -m unittest reader.ReaderTest || die "tests failed"