/[gentoo-x86]/sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild
Gentoo

Contents of /sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 12 22:24:34 2013 UTC (7 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup for prefix, removed old

(Portage version: 2.2.01.22124-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild,v 1.1 2012/11/29 19:41:14 bicatali Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
10
11 inherit distutils
12
13 MY_P="${P/scikits_/scikits.}"
14
15 DESCRIPTION="Python module for numerical optimization"
16 HOMEPAGE="http://projects.scipy.org/scipy/scikits"
17 SRC_URI="mirror://pypi/${PN:0:1}/scikits.optimization/${MY_P}.zip"
18
19 LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 IUSE=""
23
24 RDEPEND="dev-python/numpy
25 sci-libs/scikits"
26 DEPEND="${RDEPEND}
27 app-arch/unzip
28 dev-python/setuptools"
29
30 S="${WORKDIR}/${MY_P}"
31
32 src_test() {
33 testing() {
34 PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" \
35 "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
36 }
37 python_execute_function testing
38 }
39
40 src_install() {
41 distutils_src_install
42 remove_scikits() {
43 rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die
44 }
45 python_execute_function -q remove_scikits
46 }

  ViewVC Help
Powered by ViewVC 1.1.20