summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-11-29 19:41:14 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-11-29 19:41:14 +0000
commit1bdae8f04d811f3d7ffb226768d500ba945c2495 (patch)
treef449cfe6bf7ef70ce6bf5c1d1cd64d03200bcedd /sci-libs/scikits_optimization
parentVersion bump. Bug #445166 (diff)
downloadgentoo-2-1bdae8f04d811f3d7ffb226768d500ba945c2495.tar.gz
gentoo-2-1bdae8f04d811f3d7ffb226768d500ba945c2495.tar.bz2
gentoo-2-1bdae8f04d811f3d7ffb226768d500ba945c2495.zip
Version bump
(Portage version: 2.2.01.21313-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs/scikits_optimization')
-rw-r--r--sci-libs/scikits_optimization/ChangeLog8
-rw-r--r--sci-libs/scikits_optimization/metadata.xml12
-rw-r--r--sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild46
3 files changed, 60 insertions, 6 deletions
diff --git a/sci-libs/scikits_optimization/ChangeLog b/sci-libs/scikits_optimization/ChangeLog
index 83b57e2f2875..193704dc48e4 100644
--- a/sci-libs/scikits_optimization/ChangeLog
+++ b/sci-libs/scikits_optimization/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/scikits_optimization
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_optimization/ChangeLog,v 1.3 2012/08/03 22:43:52 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_optimization/ChangeLog,v 1.4 2012/11/29 19:41:14 bicatali Exp $
+
+*scikits_optimization-0.2 (29 Nov 2012)
+
+ 29 Nov 2012; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_optimization-0.2.ebuild, metadata.xml:
+ Version bump
03 Aug 2012; Sébastien Fabbro <bicatali@gentoo.org>
scikits_optimization-0.1.ebuild:
diff --git a/sci-libs/scikits_optimization/metadata.xml b/sci-libs/scikits_optimization/metadata.xml
index e97cdf515565..8d8255f3901e 100644
--- a/sci-libs/scikits_optimization/metadata.xml
+++ b/sci-libs/scikits_optimization/metadata.xml
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci</herd>
- <longdescription lang="en">A Python module for numerical optimization.</longdescription>
- <upstream>
- <remote-id type="pypi">scikits.optimization</remote-id>
- </upstream>
+<herd>sci</herd>
+<longdescription lang="en">
+ A Python module for numerical optimization.
+</longdescription>
+<upstream>
+ <remote-id type="pypi">scikits.optimization</remote-id>
+</upstream>
</pkgmetadata>
diff --git a/sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild b/sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild
new file mode 100644
index 000000000000..4f0db7a5f04a
--- /dev/null
+++ b/sci-libs/scikits_optimization/scikits_optimization-0.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 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.2.ebuild,v 1.1 2012/11/29 19:41:14 bicatali Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
+
+inherit distutils
+
+MY_P="${P/scikits_/scikits.}"
+
+DESCRIPTION="Python module for numerical optimization"
+HOMEPAGE="http://projects.scipy.org/scipy/scikits"
+SRC_URI="mirror://pypi/${PN:0:1}/scikits.optimization/${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+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
+}