From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72E4E138359 for ; Sun, 15 Nov 2020 08:54:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91B51E086C; Sun, 15 Nov 2020 08:54:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E208E086C for ; Sun, 15 Nov 2020 08:54:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7A6C13411A8 for ; Sun, 15 Nov 2020 08:54:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2E0F44C for ; Sun, 15 Nov 2020 08:54:31 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1605430449.5cce36994098f18dbca61ffc6e96817941549256.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hiredis/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hiredis/hiredis-1.0.1-r1.ebuild dev-python/hiredis/metadata.xml X-VCS-Directories: dev-python/hiredis/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: 5cce36994098f18dbca61ffc6e96817941549256 X-VCS-Branch: master Date: Sun, 15 Nov 2020 08:54:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3a4c9243-7776-4e19-8b88-63668d40bd01 X-Archives-Hash: f58402bc9bb83f56be534e0a01b68ac2 commit: 5cce36994098f18dbca61ffc6e96817941549256 Author: Sven Wegener gentoo org> AuthorDate: Sun Nov 15 08:52:44 2020 +0000 Commit: Sven Wegener gentoo org> CommitDate: Sun Nov 15 08:54:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cce3699 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 gentoo.org> dev-python/hiredis/hiredis-1.0.1-r1.ebuild | 32 ++++++++++++++++++++++++++++++ dev-python/hiredis/metadata.xml | 3 +++ 2 files changed, 35 insertions(+) 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 00000000000..8e84e217d31 --- /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 d5da8f0733c..2bf5fbd7ca5 100644 --- a/dev-python/hiredis/metadata.xml +++ b/dev-python/hiredis/metadata.xml @@ -13,4 +13,7 @@ hiredis pietern/hiredis-py + + Use dev-libs/hiredis from system +