gentoo-overlay/dev-python/pylibmc/pylibmc-1.2.1.ebuild

29 lines
804 B
Bash

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pylibmc/pylibmc-1.2.1.ebuild,v 1.1 2011/10/24 09:03:00 djc Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit distutils
DESCRIPTION="Libmemcached wrapper written as a Python extension"
HOMEPAGE="http://sendapatch.se/projects/pylibmc/ http://pypi.python.org/pypi/pylibmc"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=dev-libs/libmemcached-0.32"
DEPEND="${RDEPEND}"
src_test() {
testing() {
PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" runtests.py || die "Tests failed"
}
python_execute_function testing
}