summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2013-01-24 12:17:24 +0000
committerDirkjan Ochtman <djc@gentoo.org>2013-01-24 12:17:24 +0000
commit3fb9b4258bf39ea5928b08a5586b4ba8d6e6395f (patch)
tree8a1e528ab549975d452957c709e8d218926f0e75 /dev-python/pylibmc
parentRemove old versions. (diff)
downloadgentoo-2-3fb9b4258bf39ea5928b08a5586b4ba8d6e6395f.tar.gz
gentoo-2-3fb9b4258bf39ea5928b08a5586b4ba8d6e6395f.tar.bz2
gentoo-2-3fb9b4258bf39ea5928b08a5586b4ba8d6e6395f.zip
Port pylibmc to distutils-r1 (bug 451912).
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
Diffstat (limited to 'dev-python/pylibmc')
-rw-r--r--dev-python/pylibmc/ChangeLog8
-rw-r--r--dev-python/pylibmc/pylibmc-1.2.3.ebuild35
2 files changed, 25 insertions, 18 deletions
diff --git a/dev-python/pylibmc/ChangeLog b/dev-python/pylibmc/ChangeLog
index 33d56f2e569e..df0b6b66750e 100644
--- a/dev-python/pylibmc/ChangeLog
+++ b/dev-python/pylibmc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/pylibmc
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylibmc/ChangeLog,v 1.4 2012/05/08 09:18:53 djc Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylibmc/ChangeLog,v 1.5 2013/01/24 12:17:24 djc Exp $
+
+ 24 Jan 2013; Dirkjan Ochtman <djc@gentoo.org> pylibmc-1.2.3.ebuild:
+ Port pylibmc to distutils-r1 (bug 451912).
*pylibmc-1.2.3 (08 May 2012)
@@ -20,4 +23,3 @@
24 Oct 2011; Dirkjan Ochtman <djc@gentoo.org> +pylibmc-1.2.1.ebuild,
+metadata.xml:
Initial version (from sunrise, bug 267143).
-
diff --git a/dev-python/pylibmc/pylibmc-1.2.3.ebuild b/dev-python/pylibmc/pylibmc-1.2.3.ebuild
index 5583b779b562..c665e2e66de2 100644
--- a/dev-python/pylibmc/pylibmc-1.2.3.ebuild
+++ b/dev-python/pylibmc/pylibmc-1.2.3.ebuild
@@ -1,14 +1,11 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylibmc/pylibmc-1.2.3.ebuild,v 1.1 2012/05/08 09:18:53 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylibmc/pylibmc-1.2.3.ebuild,v 1.2 2013/01/24 12:17:24 djc Exp $
-EAPI="3"
-PYTHON_DEPEND="2:2.5"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
-DISTUTILS_SRC_TEST="nosetests"
+EAPI="5"
+PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
-inherit distutils
+inherit distutils-r1
DESCRIPTION="Libmemcached wrapper written as a Python extension"
HOMEPAGE="http://sendapatch.se/projects/pylibmc/ http://pypi.python.org/pypi/pylibmc"
@@ -17,18 +14,26 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
RDEPEND=">=dev-libs/libmemcached-0.32"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
-src_prepare() {
- distutils_src_prepare
+python_prepare_all() {
sed -e "/with-info=1/d" -i setup.cfg
+ distutils-r1_python_prepare_all
}
src_test() {
- memcached -d -u nobody -p 11219 -l localhost -P "${T}/memcached.pid"
- MEMCACHED_PORT=11219 distutils_src_test
- kill "$(<"${T}/memcached.pid")"
+ DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
+}
+
+python_test() {
+ local PIDDIR="${T}/${EPYTHON}-pylibmc"
+ mkdir "${PIDDIR}" || die
+ chmod 0777 "${PIDDIR}" || die
+ memcached -d -p 11219 -u nobody -l localhost -P "${PIDDIR}/m.pid" || die
+ MEMCACHED_PORT=11219 nosetests || die
+ kill `cat "${PIDDIR}/m.pid"`
}