summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-01-08 19:23:25 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-01-08 19:23:25 +0000
commit948bf9cb4141ca4eb2745b7ade4bb605388722c7 (patch)
tree10d06ce2d41a52d612adb0fd62cf9f49e7a32eb8 /sci-libs/scikits_optimization
parentInitial import to the main tree (diff)
downloadgentoo-2-948bf9cb4141ca4eb2745b7ade4bb605388722c7.tar.gz
gentoo-2-948bf9cb4141ca4eb2745b7ade4bb605388722c7.tar.bz2
gentoo-2-948bf9cb4141ca4eb2745b7ade4bb605388722c7.zip
Initial import to the main tree
(Portage version: 2.1.9.30/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/scikits_optimization')
-rw-r--r--sci-libs/scikits_optimization/ChangeLog22
-rw-r--r--sci-libs/scikits_optimization/metadata.xml8
-rw-r--r--sci-libs/scikits_optimization/scikits_optimization-0.1.ebuild45
3 files changed, 75 insertions, 0 deletions
diff --git a/sci-libs/scikits_optimization/ChangeLog b/sci-libs/scikits_optimization/ChangeLog
new file mode 100644
index 000000000000..b59b02377281
--- /dev/null
+++ b/sci-libs/scikits_optimization/ChangeLog
@@ -0,0 +1,22 @@
+# ChangeLog for sci-libs/scikits_optimization
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_optimization/ChangeLog,v 1.1 2011/01/08 19:23:25 bicatali Exp $
+
+ 08 Jan 2011; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_optimization-0.1.ebuild, +metadata.xml:
+ Initial import to the main tree
+
+ 04 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ scikits_optimization-0.1.ebuild:
+ Now depend on common scikits
+
+ 29 Jun 2010; Justin Lecher <jlec@gentoo.org>
+ scikits_optimization-0.1.ebuild:
+ Python ABI fixes
+
+*scikits_optimization-0.1 (26 Mar 2010)
+
+ 26 Mar 2010; Sébastien Fabbro <bicatali@gentoo.org>
+ +scikits_optimization-0.1.ebuild, +metadata.xml:
+ Initial import
+
diff --git a/sci-libs/scikits_optimization/metadata.xml b/sci-libs/scikits_optimization/metadata.xml
new file mode 100644
index 000000000000..4603bd8a9e79
--- /dev/null
+++ b/sci-libs/scikits_optimization/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
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
+}