# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ PYTHON_DEPEND="2:2.5" inherit distutils SUPPORT_PYTHON_ABIS="1" DESCRIPTION="Libmemcached wrapper written as a Python extension" HOMEPAGE="http://sendapatch.se/projects/pylibmc/" SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=dev-libs/libmemcached-0.32" DEPEND="${RDEPEND}" RESTRICT_PYTHON_ABIS="2.4 3.*" src_test() { testing() { PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" tests.py || die "Tests failed" } python_execute_function testing }