aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/oct2py/Manifest1
-rw-r--r--dev-python/oct2py/metadata.xml10
-rw-r--r--dev-python/oct2py/oct2py-0.3.1.ebuild49
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/oct2py/Manifest b/dev-python/oct2py/Manifest
new file mode 100644
index 0000000..5342193
--- /dev/null
+++ b/dev-python/oct2py/Manifest
@@ -0,0 +1 @@
+DIST oct2py-0.3.1.zip 117885 SHA256 c18f357ac579f764a7269a17959db7e24b2fba0a3026c030799120000225f8cf SHA512 78ac10466b1f25140950c3d99f1fb31eb551c839833176603b6eb562893f30bdaf199a775d20717eabafce3f137a8dc98601adabccb5bc666206ebff42c6da3b WHIRLPOOL 9a46e03618060c386d89ea9b5293b4715d2acd2e7c281e357adef0e63a1d85db2f7d8aa455605b056f39193826bce445a21169de23b9a53fcfb13aa66eb65106
diff --git a/dev-python/oct2py/metadata.xml b/dev-python/oct2py/metadata.xml
new file mode 100644
index 0000000..d02cc23
--- /dev/null
+++ b/dev-python/oct2py/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer><email>tampakrap@gentoo.org</email></maintainer>
+ <maintainer>
+ <email>della5@iinet.com.au</email>
+ <name>Ian Delaney aka idella4 proxy maintainer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/oct2py/oct2py-0.3.1.ebuild b/dev-python/oct2py/oct2py-0.3.1.ebuild
new file mode 100644
index 0000000..c166873
--- /dev/null
+++ b/dev-python/oct2py/oct2py-0.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+PYTHON_DEPEND="*:2.6"
+SUPPORT_PYTHON_ABIS="1"
+#RESTRICT_PYTHON_ABIS="3.*"
+inherit distutils
+
+DESCRIPTION="Uses Octave to run commands and m-files"
+HOMEPAGE="http://pypi.python.org/pypi/octpy https://bitbucket.org/blink1073/oct2py/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="app-arch/unzip
+ dev-python/setuptools"
+RDEPEND="${DEPEND}
+ sci-mathematics/octave
+ dev-python/numpy
+ sci-libs/scipy
+ doc? ( dev-python/sphinx )"
+
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ mkdir doc/{html,_static} || die
+ PYTHONPATH=.:../ sphinx-build -b html doc/ doc/html
+ fi
+}
+
+src_test() {
+ testing() {
+ pushd build-"${PYTHON_ABI}"/lib > /dev/null
+ PYTHONPATH=. "$(PYTHON)" -v ${PN}/tests/test_oct2py.py
+ popd > /dev/null
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ use doc && dohtml -r doc/html/
+}