33 lines
819 B
Bash
33 lines
819 B
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/cffi/cffi-0.5.ebuild,v 1.1 2013/02/08 11:34:03 djc Exp $
|
|
|
|
EAPI="4"
|
|
PYTHON_DEPEND="2"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
RESTRICT_PYTHON_ABIS="3.* 2.5 2.5-jython"
|
|
|
|
inherit distutils
|
|
|
|
DESCRIPTION="Foreign Function Interface for Python calling C code."
|
|
HOMEPAGE="http://cffi.readthedocs.org/"
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="virtual/libffi
|
|
dev-python/pycparser
|
|
dev-python/pytest
|
|
dev-python/hgdistver"
|
|
DEPEND="$REDEPEND
|
|
test? ( dev-python/virtualenv )"
|
|
|
|
src_test() {
|
|
testing() {
|
|
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" py.test c/ testing/ -x
|
|
}
|
|
python_execute_function testing
|
|
}
|