summaryrefslogtreecommitdiff
path: root/dev-python/oct2py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/oct2py
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/oct2py')
-rw-r--r--dev-python/oct2py/Manifest7
-rw-r--r--dev-python/oct2py/metadata.xml17
-rw-r--r--dev-python/oct2py/oct2py-3.6.0.ebuild65
-rw-r--r--dev-python/oct2py/oct2py-4.0.6.ebuild54
4 files changed, 143 insertions, 0 deletions
diff --git a/dev-python/oct2py/Manifest b/dev-python/oct2py/Manifest
new file mode 100644
index 000000000000..57b69de6dd86
--- /dev/null
+++ b/dev-python/oct2py/Manifest
@@ -0,0 +1,7 @@
+DIST oct2py-3.6.0.tar.gz 668836 SHA256 b356daf63a80c778fcf81b380c187863b86e9aae88f8321bb543c5512835c69f SHA512 f414a0231665bc3bedb7dcdaab8c86f32c140e5107ef80b70e2f99467e737d033de6ff492f2af7233671bff9b148475e0af4881c073ac727d0fd1228b7cf59b6 WHIRLPOOL 498b69f6292fe60b1035ea8ef587b3dc7b49fb4353bf31ce5f19ca3afc74a3b4bdcff7700d77d6bd8e6bf079c590114fee1c2f0352127745d162fc3f6be9b3b9
+DIST oct2py-4.0.6.tar.gz 431738 SHA256 07cbcee467f6bd7bd2430d2ae270fcc035acf2c8ad35f6ad9bb6f7b0f915e179 SHA512 997ca843571d2d68c4c57c0213a525c1be5f8b3e3dbffffb6cd41e423d68c8836dd12a03d5210d7f0cbf8ff19be7bb9d25b48c62a236cae68a0762547e574caa WHIRLPOOL b824f9c21665a70e21e614022ccca7e05032f59d5fd5b1993b31f16dcd9d4d5cf2dfc948873df5ab9234b095d7b188867eac5ab4ee238c046131c0e042e3bb5e
+EBUILD oct2py-3.6.0.ebuild 1448 SHA256 bdff7f7910092f0081dde9612b1711fbb2c91f02ff580162958379acabee3b82 SHA512 f6ce0f0ee26befd1c140495660fa4fd0cb4dc641c89bcab435016d84aca37282e1fdc364c1ef0d6f41b646eae844edbf85e9e81f912a649074790ea8cf6bc16d WHIRLPOOL 80f608b101d4b3727301dafae03b733fbd77fbcb9baec259461f1cdeabef16a9e47e1fa1dfbb94d01f781317804fc0f90b80a5dd181201373466fab3cd1d8483
+EBUILD oct2py-4.0.6.ebuild 1158 SHA256 3a5ee76eba31de3f1d813fb90277f972bb330d4b84d3b030a952bb0d74d11b12 SHA512 34929079793a8f50664fcc94c5209f8747b20a779d5b094600e48c19082382bdfd28cb0efc9b0c4d2a8f82fb1fb7385642e8eec6f4660e937e12d2e6851da36c WHIRLPOOL 461022154242407aea5c88e1c8dbc5c3b77fb9a3b838276bed2624a0fb57d96b3fd1be00b7e460aebb85ed2961945b1fb4c0f4b9daf7948e4efe17e18bae3d3c
+MISC ChangeLog 4997 SHA256 d68bde856388569c1a12d7e8cb10e3548c9ea17fef5a93b237ebb6181b614491 SHA512 3ad7c22f07bfccbdaf746072059d7782cd43dfcceec2c418d9bb297bb0a9e44ed8a53218af9196eb271be60b5e52a9b337d6d44db0598d7e4e76ac3ca0f36392 WHIRLPOOL a2fe80d6a0d87bcc49b78aa037cd0d5ab031399b9836e58c6d9ae80c96859414b71ea453ba7f4a6e4f8aa1935be1f0cc47c2ef1ac9ac5f019a1cc978012b6ccd
+MISC ChangeLog-2015 3476 SHA256 e93046f5c3edd8905e7fa0313df8957b74083359d240ca6a59f5b9ccbdd78adc SHA512 42dbd9e19c0023a874995b5e8e92202ee76806a8d77a3ddad1805007917f426c81e31eb551e999d97c5825d000a409e12946674063c6a33d1d29c09119219c36 WHIRLPOOL 65baf61071b89fa87bd6a6453a9093f8c8bd728558071b567e5cc4e17f2f082c9ba0d3efb05dda905ad54b13a42436070ff0db6efd2ad5f94c74d219e6742ecd
+MISC metadata.xml 615 SHA256 996585b2728eea62d8eab062b60ae264c19e30195b29b6a774db15a80d8d2217 SHA512 e476f193cbbdefdf56caeb8a8a501f57daf1b74a12a32c426b6e9150ea0d5b2538b7bd9bbeb3b7f45ba01aa741be2fd0b4dbf8e8302e867230fc1b2512c10ca2 WHIRLPOOL 1f31e31ca30bc45b334a251d80862c68052d62101ab8015a97219dfe6e3da2efe24a3e7f04a629b982c74c95b59b81bd42c81f44d6c4d9d923bcde191ff56fc9
diff --git a/dev-python/oct2py/metadata.xml b/dev-python/oct2py/metadata.xml
new file mode 100644
index 000000000000..1b0577d069b3
--- /dev/null
+++ b/dev-python/oct2py/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Uses Octave to run commands and m-files. Supports any Octave
+ function or m-file, passing the data seamlessly between Python and
+ Octave using MAT files.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">oct2py</remote-id>
+ <remote-id type="github">blink1073/oct2py</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/oct2py/oct2py-3.6.0.ebuild b/dev-python/oct2py/oct2py-3.6.0.ebuild
new file mode 100644
index 000000000000..818ad6bda37f
--- /dev/null
+++ b/dev-python/oct2py/oct2py-3.6.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python to GNU Octave bridge"
+HOMEPAGE="
+ https://pypi.python.org/pypi/oct2py
+ http://pythonhosted.org/oct2py/
+ https://github.com/blink1073/oct2py"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+RDEPEND="
+ >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
+ >=sci-libs/scipy-0.12[${PYTHON_USEDEP}]
+ >=sci-mathematics/octave-4.2.0"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
+ dev-python/numpydoc[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/ipython[${PYTHON_USEDEP}]
+ )"
+
+python_prepare_all() {
+ # https://github.com/blink1073/oct2py/issues/77
+ sed \
+ -e 's:test_help:disabled:g' \
+ -i oct2py/tests/test_usage.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ if use doc; then
+ sphinx-build docs html || die
+ fi
+}
+
+python_test() {
+ unset DISPLAY
+ [[ ${EPYTHON} == python2.7 ]] && local OPTIONS="--with-doctest"
+ nosetests --exe -v oct2py ${OPTIONS} || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( html/. )
+ if use examples; then
+ docinto examples
+ dodoc -r example/.
+ fi
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/oct2py/oct2py-4.0.6.ebuild b/dev-python/oct2py/oct2py-4.0.6.ebuild
new file mode 100644
index 000000000000..cafb9f92a0ff
--- /dev/null
+++ b/dev-python/oct2py/oct2py-4.0.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python to GNU Octave bridge"
+HOMEPAGE="http://blink1073.github.io/oct2py/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+RDEPEND="
+ >=dev-python/numpy-1.11[${PYTHON_USEDEP}]
+ dev-python/octave_kernel[${PYTHON_USEDEP}]
+ >=sci-libs/scipy-0.17[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-python/numpydoc[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/ipython[${PYTHON_USEDEP}]
+ )
+"
+python_compile_all() {
+ if use doc; then
+ sphinx-build docs html || die
+ HTML_DOCS=( html/. )
+ fi
+}
+
+python_test() {
+ cd "${BUILD_DIR}/lib" || die
+ py.test -v -v || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use examples; then
+ docinto examples
+ dodoc -r example/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}