# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 PYTHON_DEPEND="*:2.7" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="2.5 2.7-pypy-* 3.3" DISTUTILS_SRC_TEST=nosetests inherit distutils eutils DESCRIPTION="Essential requirement for PyRAF installation." HOMEPAGE="http://www.stsci.edu/institute/software_hardware/pyraf/localProductDescription" SRC_URI="http://stsdas.stsci.edu/download/pyraf/pyraf-2.0.tar.gz" LICENSE="BSD Similar" SLOT="0" KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" IUSE="" RDEPEND="dev-python/numpy dev-python/setuptools" DEPEND="${RDEPEND}" PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") S=${WORKDIR}/pyraf-2.0/required_pkgs/tools src_test() { testing() { nosetests -w "$(ls -d build-${PYTHON_ABI}/lib*)" } python_execute_function testing }