From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/hiredis/Manifest | 6 +++++ .../hiredis/files/hiredis-0.2.0-system-libs.patch | 28 ++++++++++++++++++++++ dev-python/hiredis/hiredis-0.2.0.ebuild | 28 ++++++++++++++++++++++ dev-python/hiredis/metadata.xml | 16 +++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 dev-python/hiredis/Manifest create mode 100644 dev-python/hiredis/files/hiredis-0.2.0-system-libs.patch create mode 100644 dev-python/hiredis/hiredis-0.2.0.ebuild create mode 100644 dev-python/hiredis/metadata.xml (limited to 'dev-python/hiredis') diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest new file mode 100644 index 000000000000..57d4982d6ff3 --- /dev/null +++ b/dev-python/hiredis/Manifest @@ -0,0 +1,6 @@ +AUX hiredis-0.2.0-system-libs.patch 899 SHA256 14f5772c0d0301ef1a88014759aabe4cee7c0f084f63c6a34d927a3ea91e5758 SHA512 fcfd8b3bdc4e987bc82d461babec71b7f35c50aa9a9032784821dc782cb45ae714c2f199806f84449aa5e8b9a5d4480b0ca76ec1b4f1cfbb869a5ada7486951b WHIRLPOOL 5c9b50f0ee27bca2bfba349f10de286caecfbbe9232d5b67fba8b010a6dd5a679a8f5e4be09cf255d2271f4a8020e2d1788ee20788fbc1a5edcb92829d820240 +DIST hiredis-0.2.0.tar.gz 46113 SHA256 ca958e13128e49674aa4a96f02746f5de5973f39b57297b84d59fd44d314d5b5 SHA512 9eb18ec089517340043d14938a213b139dc948dc9cf2f9c65e632bb4694ac22543b87a5875c1cea083e2bc8e303103c749047889cdb3e9d5680b586d34330c86 WHIRLPOOL 5c2252d82814b8365a29160c41133571083954c317f9c36f534e3f0aa98bc97621f144479b715da0d5c77a0a00a7a5e0b69fb63c2559a4ebf124d88be93d477d +EBUILD hiredis-0.2.0.ebuild 614 SHA256 d8a01279902c0c0aae696a6c599239923fb5603b25affde231346e04017eb146 SHA512 6a43463bd9401b5f93204796c795dcf7ce4165e57984294f1e3e50d710f3780c571a1d1175ee60b82abbad35e702bc8c12c6ce450c6751d1f4198e802e268275 WHIRLPOOL 6a43fd8e1063a90d1bbce4fe15cec92e9f535c1f551d6b222f2f1fa8cc3590cd2c22fa00bdbd99bbeb65dd688bd84e5ba913286ebcdff4376cd4cd6a96a068e3 +MISC ChangeLog 2874 SHA256 9b30be7e02c51e92bb0309d51f2c170e1cc924276345f5f3a46c634d8c92dc44 SHA512 044cda4d1de817f45ac83af8f016c5c09855dd31570b691302b0281406900c51a94105e80ae2c2aba3344dbad37ee7f100a0bdbc5fddd28531cb2017fd2a62be WHIRLPOOL 4bba236e6676e381bbe38dbddb289c4cb27bba5d99fb2a50903f0350bb2d888ae6b8fe1816be7d7c99cc60fa841bb591aa5d419bf1f64553607f971dbde610c3 +MISC ChangeLog-2015 2118 SHA256 329c2d5abe2461355e74c9eb42b59ba95688ab99104c418e10a7443f52195f6f SHA512 67195d3093b62c43e54813c74adf822a49d9cbf89648085cb2cc89929efa1c8405028cbfe9accb9d7b4086b161e139a73517b717e6b1f28e7867225cbb07210c WHIRLPOOL bd6e47b68d018cdeca4b2060daf5ad1ba5a2f6c9b9401f20b2abab8cf1c69ced643012cbd35cd1745cfe42f18a502f76f854d9b28d9f7d2ad35174a1b0603882 +MISC metadata.xml 494 SHA256 3e824fa6185ea4daed8c30ad2baebe6e72084838d376e73b4da53d9a995c61bf SHA512 f378121293d91d941dcede71f7e7a1a3e6fe906aa5963bd2388f8538d4e696d0bdb16c4f44126105b43ec81b1ee9e36e9549e7557d76c6a032c1cae3a4103265 WHIRLPOOL 243acba1097675b2ec2c309f530616fdbd38bccf4f2588ed637450c86b90b4a864c03a9eb1334901db4022e3ce6f2efe7333c4dffd1f6c0f99c00dcf155b9c1c 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.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 @@ + + + + + swegener@gentoo.org + Sven Wegener + + + python@gentoo.org + Python + + + hiredis + pietern/hiredis-py + + -- cgit v1.2.3