summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2013-02-24 09:50:34 +0000
committerSven Wegener <swegener@gentoo.org>2013-02-24 09:50:34 +0000
commit5a0c09fe68aba084a906b2b33b1fdeba318806e2 (patch)
tree0ff78dab5eb8e60aa7d3e55cb075a2b02fade998 /dev-python
parentfix docs layout, thanks to Chris Mayo (#458628) (diff)
downloadgentoo-2-5a0c09fe68aba084a906b2b33b1fdeba318806e2.tar.gz
gentoo-2-5a0c09fe68aba084a906b2b33b1fdeba318806e2.tar.bz2
gentoo-2-5a0c09fe68aba084a906b2b33b1fdeba318806e2.zip
Initial commit, ebuild written by me.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/hiredis/ChangeLog10
-rw-r--r--dev-python/hiredis/files/hiredis-0.1.1-system-libs.patch25
-rw-r--r--dev-python/hiredis/hiredis-0.1.1.ebuild28
-rw-r--r--dev-python/hiredis/metadata.xml9
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/hiredis/ChangeLog b/dev-python/hiredis/ChangeLog
new file mode 100644
index 000000000000..06ebc00f5fb5
--- /dev/null
+++ b/dev-python/hiredis/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/hiredis
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/hiredis/ChangeLog,v 1.1 2013/02/24 09:50:34 swegener Exp $
+
+*hiredis-0.1.1 (24 Feb 2013)
+
+ 24 Feb 2013; Sven Wegener <swegener@gentoo.org> +hiredis-0.1.1.ebuild,
+ +files/hiredis-0.1.1-system-libs.patch, +metadata.xml:
+ Initial commit, ebuild written by me.
+
diff --git a/dev-python/hiredis/files/hiredis-0.1.1-system-libs.patch b/dev-python/hiredis/files/hiredis-0.1.1-system-libs.patch
new file mode 100644
index 000000000000..298f5cf7ee2e
--- /dev/null
+++ b/dev-python/hiredis/files/hiredis-0.1.1-system-libs.patch
@@ -0,0 +1,25 @@
+--- hiredis-0.1.1/setup.py
++++ hiredis-0.1.1/setup.py
+@@ -20,13 +20,9 @@
+ if self.distribution.has_ext_modules():
+ self.run_command('build_ext')
+
+-lib = ("hiredis", {
+- "sources": ["vendor/hiredis/%s.c" % src for src in ("hiredis", "net", "sds")],
+- "include_dirs": ["vendor/hiredis"]})
+-
+ ext = Extension("hiredis.hiredis",
+ sources=glob.glob("src/*.c"),
+- include_dirs=["src", "vendor"],
++ include_dirs=["src"],
+ libraries=["hiredis"])
+
+ setup(
+@@ -39,7 +35,6 @@
+ keywords=["Redis"],
+ license="BSD",
+ packages=["hiredis"],
+- libraries=[lib],
+ ext_modules=[ext],
+
+ # Override "install_lib" command
diff --git a/dev-python/hiredis/hiredis-0.1.1.ebuild b/dev-python/hiredis/hiredis-0.1.1.ebuild
new file mode 100644
index 000000000000..982c3bd9b8ab
--- /dev/null
+++ b/dev-python/hiredis/hiredis-0.1.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/hiredis/hiredis-0.1.1.ebuild,v 1.1 2013/02/24 09:50:34 swegener Exp $
+
+EAPI="4"
+
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_DEPEND="*:2.6"
+RESTRICT_PYTHON_ABIS="2.4 2.5"
+
+inherit distutils eutils
+
+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 ~x86"
+IUSE=""
+
+DEPEND="dev-libs/hiredis"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-system-libs.patch
+ distutils_src_prepare
+}
diff --git a/dev-python/hiredis/metadata.xml b/dev-python/hiredis/metadata.xml
new file mode 100644
index 000000000000..d81065b0cd40
--- /dev/null
+++ b/dev-python/hiredis/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>swegener@gentoo.org</email>
+ <name>Sven Wegener</name>
+ </maintainer>
+</pkgmetadata>