# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/asciitable/asciitable-0.3.1.ebuild,v 1.2 2010/09/29 21:17:21 arfrever Exp $ EAPI="3" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="An extensible ASCII table reader" HOMEPAGE="http://cxc.harvard.edu/contrib/asciitable/" SRC_URI="${HOMEPAGE}/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" RDEPEND="dev-python/numpy" DEPEND="${RDEPEND} test? ( dev-python/nose )" PYTHON_MODNAME="asciitable.py" src_test() { testing() { [[ "${PYTHON_ABI}" == 3.* ]] && return PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests } python_execute_function testing }