diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/oct2py | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/oct2py')
-rw-r--r-- | dev-python/oct2py/Manifest | 2 | ||||
-rw-r--r-- | dev-python/oct2py/files/oct2py-1.3.0-test.patch | 21 | ||||
-rw-r--r-- | dev-python/oct2py/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/oct2py/oct2py-0.4.0-r1.ebuild | 45 | ||||
-rw-r--r-- | dev-python/oct2py/oct2py-1.3.0-r1.ebuild | 63 | ||||
-rw-r--r-- | dev-python/oct2py/oct2py-1.3.0.ebuild | 52 |
6 files changed, 196 insertions, 0 deletions
diff --git a/dev-python/oct2py/Manifest b/dev-python/oct2py/Manifest new file mode 100644 index 000000000000..143689424591 --- /dev/null +++ b/dev-python/oct2py/Manifest @@ -0,0 +1,2 @@ +DIST oct2py-0.4.0.tar.gz 107828 SHA256 f44da1ff41d8b21806976eaef500f1690c9c023bcd2be9a34d2dbbf26e442f00 SHA512 d62b6c7cc0f3a61e78cd4cd6a43d93a90f5d69187eb946847aa3f1df50edf6402ee845c51094696667afc29c284d6ef6e9af58d74b62ec177c2e4d18108c615e WHIRLPOOL 96da3725d4a53fa74791c219bd03d6adc49f11e47deb0ef864c86acc15f52145e303d4ac669667e79ef90dbb4af4cc7df298f16ebff7d5c20d02710c57c7738b +DIST oct2py-1.3.0.tar.gz 321768 SHA256 f0cae7aae111631c0fffb7f2511ee14fb847b4f501340e8506b0805b50c32f28 SHA512 b9a8896fa463356a08dee7cd2db97bedd5487d93ed33fe73e2c5205118915eac86dcd51dea42dc7338a7f6486704d1c8cb3259c3d8a2b53230c50608d1d043d8 WHIRLPOOL f06214e8005281fec801856596f076a5ad0c35bc3bdc62db3057b320ac1ef8ab07a7f073c4e9ced62ce336c64e773128d333fd0bb26fb891ea6931b84ee22001 diff --git a/dev-python/oct2py/files/oct2py-1.3.0-test.patch b/dev-python/oct2py/files/oct2py-1.3.0-test.patch new file mode 100644 index 000000000000..9bc22e091918 --- /dev/null +++ b/dev-python/oct2py/files/oct2py-1.3.0-test.patch @@ -0,0 +1,21 @@ +diff --git a/oct2py/ipython/tests/test_octavemagic.py b/oct2py/ipython/tests/test_octavemagic.py +index b75d992..43c0a8b 100644 +--- a/oct2py/ipython/tests/test_octavemagic.py ++++ b/oct2py/ipython/tests/test_octavemagic.py +@@ -1,5 +1,6 @@ + """Tests for Octave magics extension.""" + ++import codecs + import unittest + import sys + from IPython.testing.globalipapp import get_ipython +@@ -22,7 +23,8 @@ class OctaveMagicTest(unittest.TestCase): + IPython team's logic. + ''' + if not sys.stdin.encoding: +- sys.stdin.encoding = 'utf-8' # needed for py.test ++ # needed for py.test ++ sys.stdin = codecs.getreader('utf-8')(sys.stdin) + cls.ip = get_ipython() + # This is just to get a minimally modified version of the changes + # working diff --git a/dev-python/oct2py/metadata.xml b/dev-python/oct2py/metadata.xml new file mode 100644 index 000000000000..3afa342d8a4a --- /dev/null +++ b/dev-python/oct2py/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-mathematics</herd> +<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> +</upstream> +</pkgmetadata> diff --git a/dev-python/oct2py/oct2py-0.4.0-r1.ebuild b/dev-python/oct2py/oct2py-0.4.0-r1.ebuild new file mode 100644 index 000000000000..ec8b85cd5d9e --- /dev/null +++ b/dev-python/oct2py/oct2py-0.4.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Python to GNU Octave bridge" +HOMEPAGE="http://pypi.python.org/pypi/oct2py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + sci-libs/scipy[${PYTHON_USEDEP}] + sci-mathematics/octave" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +python_compile_all() { + if use doc; then + sphinx-build doc html || die + fi +} + +python_test() { + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all + + if use examples; then + insinto /usr/share/${PF}/ + doins -r example + fi +} diff --git a/dev-python/oct2py/oct2py-1.3.0-r1.ebuild b/dev-python/oct2py/oct2py-1.3.0-r1.ebuild new file mode 100644 index 000000000000..953032de3529 --- /dev/null +++ b/dev-python/oct2py/oct2py-1.3.0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python to GNU Octave bridge" +HOMEPAGE="http://pypi.python.org/pypi/oct2py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + sci-libs/scipy[${PYTHON_USEDEP}] + sci-mathematics/octave" +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() { + local PATCHES=( + "${FILESDIR}/${P}-test.patch" + ) + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +python_test() { + unset DISPLAY + if [[ ${EPYTHON} == python2.7 ]]; then + local OPTIONS="--with-doctest" + fi + nosetests oct2py ${OPTIONS} || die "Tests fail with ${EPYTHON}" + iptest -v IPython.extensions.tests.test_octavemagic || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r example + fi +} diff --git a/dev-python/oct2py/oct2py-1.3.0.ebuild b/dev-python/oct2py/oct2py-1.3.0.ebuild new file mode 100644 index 000000000000..b4a4a026dc6f --- /dev/null +++ b/dev-python/oct2py/oct2py-1.3.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python to GNU Octave bridge" +HOMEPAGE="http://pypi.python.org/pypi/oct2py" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" + +RDEPEND=" + sci-libs/scipy[${PYTHON_USEDEP}] + sci-mathematics/octave" +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_compile_all() { + if use doc; then + sphinx-build docs html || die + fi +} + +python_test() { + nosetests oct2py --with-doctest || die "Tests fail with ${EPYTHON}" + iptest -v IPython.extensions.tests.test_octavemagic || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( html/. ) + distutils-r1_python_install_all + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r example + fi +} |