# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="Python wrappers for the Crypto++ library" HOMEPAGE="http://tahoe-lafs.org/trac/pycryptopp" SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-libs/openssl dev-python/setuptools" RESTRICT_PYTHON_ABIS="3*" src_prepare() { sed -i "/setup_requires.append('setuptools_darcs >= 1.0.5')/d" "${S}/setup.py" } src_test() { testing() { PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" pycryptopp/test/__init__.py } python_execute_function testing }