diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/hiredis | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/hiredis')
-rw-r--r-- | dev-python/hiredis/Manifest | 6 | ||||
-rw-r--r-- | dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch | 26 | ||||
-rw-r--r-- | dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch | 28 | ||||
-rw-r--r-- | dev-python/hiredis/hiredis-0.2.0-r1.ebuild | 27 | ||||
-rw-r--r-- | dev-python/hiredis/hiredis-0.2.0.ebuild | 28 | ||||
-rw-r--r-- | dev-python/hiredis/metadata.xml | 16 |
6 files changed, 131 insertions, 0 deletions
diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest new file mode 100644 index 000000000000..f6c9e2a689bf --- /dev/null +++ b/dev-python/hiredis/Manifest @@ -0,0 +1,6 @@ +AUX hiredis-0.2.0-r1-system-libs.patch 746 BLAKE2B 5819aad60d449d6516587855bfe1d3e873e58e06c86e523964f2b79a6c4de7b14267f63f5733313dec32e081133b8413cc36feb5afa61ff5fb43cc0a4da622e7 SHA512 4679b5b45654c22856278c59ddc37b405960504687cd0f055e74946fcc8e48e97d78f44a664e197cd96cc0ed73ada6ca9d48df05e086e98fd2139998d31a7bde +AUX hiredis-0.2.0-system-libs.patch 899 BLAKE2B d84ddab512839d0901b0f14d649970252e3cb00716871f26a68206a54b60e4b015f4e8498211727b0de7d72981e4171ae5517258ba8630678343da02ac0f3c7c SHA512 fcfd8b3bdc4e987bc82d461babec71b7f35c50aa9a9032784821dc782cb45ae714c2f199806f84449aa5e8b9a5d4480b0ca76ec1b4f1cfbb869a5ada7486951b +DIST hiredis-0.2.0.tar.gz 46113 BLAKE2B bb0479f99f5f705488846ff5e7b52d6e8a5c34519936aa747027e8a597271d3ba70efc2455f54c24248091a4477ac2a307cad7d89a03c96cb7d331e6b6e82a30 SHA512 9eb18ec089517340043d14938a213b139dc948dc9cf2f9c65e632bb4694ac22543b87a5875c1cea083e2bc8e303103c749047889cdb3e9d5680b586d34330c86 +EBUILD hiredis-0.2.0-r1.ebuild 620 BLAKE2B 95e86e7a8c4dbc4deb8e9c1abe22370f3ca9c1fa703e8e199bb1bc27b1e15effd64160de559705f5a3d581ce2b26bde60100b2156962d98cf5bc83a8074c01b8 SHA512 db1bc89972aac7be3a40644d4aa0c66c61083394c4edc81a5b5431630cc8ea982d873348b890dd1cd0c1ba932ae5390b31173c16bb719f1722d49badf3fdbf4f +EBUILD hiredis-0.2.0.ebuild 614 BLAKE2B c6ed2d06dd6c5dd6e4b7318d3757ab9f7735022649b9d4d5da1764847220f86527deea0c9736d848ae40c3f03c76319225aa3afb0b2348d4bea6ec67178b439d SHA512 6a43463bd9401b5f93204796c795dcf7ce4165e57984294f1e3e50d710f3780c571a1d1175ee60b82abbad35e702bc8c12c6ce450c6751d1f4198e802e268275 +MISC metadata.xml 494 BLAKE2B 066e1d365169e3818e9b5d37f7a2c7812af63ccd2ef79ce1e8dd224b2aa4d110792441762e769791d2c93f5f90349390cb04671ebe4cd199117df20f6fa7d8bd SHA512 f378121293d91d941dcede71f7e7a1a3e6fe906aa5963bd2388f8538d4e696d0bdb16c4f44126105b43ec81b1ee9e36e9549e7557d76c6a032c1cae3a4103265 diff --git a/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch b/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch new file mode 100644 index 000000000000..19d4bd8598ff --- /dev/null +++ b/dev-python/hiredis/files/hiredis-0.2.0-r1-system-libs.patch @@ -0,0 +1,26 @@ +diff -ur hiredis-0.2.0.orig/setup.py hiredis-0.2.0/setup.py +--- hiredis-0.2.0.orig/setup.py 2015-04-03 16:08:45.000000000 +0200 ++++ hiredis-0.2.0/setup.py 2018-04-22 16:57:15.966520939 +0200 +@@ -40,12 +40,11 @@ + # supported Python versions is worse... + # + # Also see: https://github.com/pietern/hiredis-py/issues/15 +-lib = ("hiredis_for_hiredis_py", { +- "sources": ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]}) + + ext = Extension("hiredis.hiredis", + sources=glob.glob("src/*.c"), +- include_dirs=["vendor"]) ++ libraries=["hiredis"], ++) + + setup( + name="hiredis", +@@ -57,7 +56,6 @@ + keywords=["Redis"], + license="BSD", + packages=["hiredis"], +- libraries=[lib], + ext_modules=[ext], + + # Override "install_lib" command diff --git a/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch b/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch new file mode 100644 index 000000000000..6cd22292deb9 --- /dev/null +++ b/dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch @@ -0,0 +1,28 @@ +Remove vendor and var 'lib' from setup.py +diff -u hiredis-0.2.0.orig/setup.py hiredis-0.2.0/setup.py +--- setup.py 2015-06-21 11:47:28.796472027 +0800 ++++ setup.py 2015-06-21 11:49:53.047949803 +0800 +@@ -40,12 +40,9 @@ + # supported Python versions is worse... + # + # Also see: https://github.com/pietern/hiredis-py/issues/15 +-lib = ("hiredis_for_hiredis_py", { +- "sources": ["vendor/hiredis/%s.c" % src for src in ("read", "sds")]}) + + ext = Extension("hiredis.hiredis", +- sources=glob.glob("src/*.c"), +- include_dirs=["vendor"]) ++ sources=glob.glob("src/*.c")) + + setup( + name="hiredis", +@@ -57,7 +54,6 @@ + keywords=["Redis"], + license="BSD", + packages=["hiredis"], +- libraries=[lib], + ext_modules=[ext], + + # Override "install_lib" command +Common subdirectories: hiredis-0.2.0.orig/src and hiredis-0.2.0/src +Common subdirectories: hiredis-0.2.0.orig/vendor and hiredis-0.2.0/vendor 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 000000000000..31b8b4da87ac --- /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 +} diff --git a/dev-python/hiredis/hiredis-0.2.0.ebuild b/dev-python/hiredis/hiredis-0.2.0.ebuild new file mode 100644 index 000000000000..f95394376f38 --- /dev/null +++ b/dev-python/hiredis/hiredis-0.2.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +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}-system-libs.patch ) + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + + distutils-r1_python_compile +} diff --git a/dev-python/hiredis/metadata.xml b/dev-python/hiredis/metadata.xml new file mode 100644 index 000000000000..d5da8f0733c4 --- /dev/null +++ b/dev-python/hiredis/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>swegener@gentoo.org</email> + <name>Sven Wegener</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">hiredis</remote-id> + <remote-id type="github">pietern/hiredis-py</remote-id> + </upstream> +</pkgmetadata> |