commit:     c7b8ba0b3e28a5b3b8a81780c6c2a4c0ca3d3c62
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 15 14:19:38 2020 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Sun Nov 15 14:28:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b8ba0b

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 <AT> gentoo.org>

 dev-python/hiredis/hiredis-1.1.0.ebuild | 12 ++++++++++--
 1 file 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 90148fb3b82..a909b3a56dd 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"

Reply via email to