diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-01-08 19:26:17 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-01-08 19:26:17 +0000 |
commit | 2dc0920ff6a3c8ffe3d6b284240351f6d2c725db (patch) | |
tree | 6af0530696ca62e20da2a248b25b1d28630e7650 /sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild | |
parent | Fix deprecation warnings. (diff) | |
download | historical-2dc0920ff6a3c8ffe3d6b284240351f6d2c725db.tar.gz historical-2dc0920ff6a3c8ffe3d6b284240351f6d2c725db.tar.bz2 historical-2dc0920ff6a3c8ffe3d6b284240351f6d2c725db.zip |
Initial import to the main tree
Package-Manager: portage-2.1.9.30/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild')
-rw-r--r-- | sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild b/sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild new file mode 100644 index 000000000000..1423b13b05f0 --- /dev/null +++ b/sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild,v 1.1 2011/01/08 19:23:25 bicatali Exp $ + +EAPI="2" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +MY_P="${P/scikits_/scikits.}" + +DESCRIPTION="Python module for numerical optimization" +HOMEPAGE="http://projects.scipy.org/scipy/scikits" +SRC_URI="http://pypi.python.org/packages/source/s/scikits.optimization/${MY_P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/numpy + sci-libs/scikits" +DEPEND="${RDEPEND} + app-arch/unzip + dev-python/setuptools" + +S="${WORKDIR}/${MY_P}" + +src_test() { + testing() { + PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test + } + python_execute_function testing +} + +src_install() { + distutils_src_install + remove_scikits() { + rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die + } + python_execute_function -q remove_scikits +} |