summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2012-10-10 07:31:31 +0000
committerDirkjan Ochtman <djc@gentoo.org>2012-10-10 07:31:31 +0000
commit2be816111e0320dfb588c584531e404cf39ad58e (patch)
treee9499d0ba3c035bcd42b44f5133bac6d983c5b02 /dev-python/redis-py
parentDrop useless USE=doc, it only regenerated documentation. (diff)
downloadgentoo-2-2be816111e0320dfb588c584531e404cf39ad58e.tar.gz
gentoo-2-2be816111e0320dfb588c584531e404cf39ad58e.tar.bz2
gentoo-2-2be816111e0320dfb588c584531e404cf39ad58e.zip
Version bump redis-py to 2.7.1 (bug 437030).
(Portage version: 2.1.11.24/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/redis-py')
-rw-r--r--dev-python/redis-py/ChangeLog7
-rw-r--r--dev-python/redis-py/redis-py-2.7.1.ebuild43
2 files changed, 49 insertions, 1 deletions
diff --git a/dev-python/redis-py/ChangeLog b/dev-python/redis-py/ChangeLog
index 8c726970c855..bbf1d6869a53 100644
--- a/dev-python/redis-py/ChangeLog
+++ b/dev-python/redis-py/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/redis-py
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.24 2012/06/28 07:17:51 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.25 2012/10/10 07:31:31 djc Exp $
+
+*redis-py-2.7.1 (10 Oct 2012)
+
+ 10 Oct 2012; Dirkjan Ochtman <djc@gentoo.org> +redis-py-2.7.1.ebuild:
+ Version bump to 2.7.1 (bug 437030, thanks to Johan Bergström).
*redis-py-2.4.13 (28 Jun 2012)
diff --git a/dev-python/redis-py/redis-py-2.7.1.ebuild b/dev-python/redis-py/redis-py-2.7.1.ebuild
new file mode 100644
index 000000000000..67034880f810
--- /dev/null
+++ b/dev-python/redis-py/redis-py-2.7.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/redis-py-2.7.1.ebuild,v 1.1 2012/10/10 07:31:31 djc Exp $
+
+EAPI="4"
+
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="setup.py"
+
+inherit distutils
+
+MY_PN="redis"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python client for Redis key-value store"
+HOMEPAGE="http://github.com/andymccurdy/redis-py http://pypi.python.org/pypi/redis"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools
+ test? ( dev-db/redis )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="README.md CHANGES"
+PYTHON_MODNAME="redis"
+
+src_test() {
+ local sock="${T}/redis.sock"
+ find tests/ -name "*.py" -not -name "encoding.py" -exec sed -i -e "s:port=6379:unix_socket_path=\"${sock}\":" {} \;
+
+ "${EPREFIX}"/usr/sbin/redis-server - \
+ <<< "daemonize yes
+ pidfile ${T}/redis.pid
+ unixsocket ${sock}"
+ distutils_src_test
+ kill "$(<"${T}/redis.pid")"
+}