summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-06-24 15:12:16 +0200
committerPacho Ramos <pacho@gentoo.org>2018-06-24 15:14:09 +0200
commit64b64fac141a31ed4dabc2790c495f2197393214 (patch)
treea655241cf023e470e932a992adb4273bcbb4d100 /dev-python/hiredis/hiredis-0.2.0-r1.ebuild
parentdev-python/hglib: Support python3.6 (diff)
downloadgentoo-64b64fac141a31ed4dabc2790c495f2197393214.tar.gz
gentoo-64b64fac141a31ed4dabc2790c495f2197393214.tar.bz2
gentoo-64b64fac141a31ed4dabc2790c495f2197393214.zip
dev-python/hiredis: Fix linking (#653790 by Ștefan Talpalaru)
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-python/hiredis/hiredis-0.2.0-r1.ebuild')
-rw-r--r--dev-python/hiredis/hiredis-0.2.0-r1.ebuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/hiredis/hiredis-0.2.0-r1.ebuild b/dev-python/hiredis/hiredis-0.2.0-r1.ebuild
new file mode 100644
index 00000000000..c3bd6074380
--- /dev/null
+++ b/dev-python/hiredis/hiredis-0.2.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+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=""
+
+DEPEND=">=dev-libs/hiredis-0.13.1"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-r1-system-libs.patch )
+
+python_compile() {
+ python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+
+ distutils-r1_python_compile
+}