dev-python/oct2py-3.6.0-r1 build with python 3.7

mhiretskiy
Ваше Имя 4 years ago
parent 6378785814
commit ee92ca4ee5

@ -0,0 +1,5 @@
DIST oct2py-3.6.0.tar.gz 668836 BLAKE2B 2edafd7c054a70a604273a7f3f5846926cb54dd05e7f2625aad57034d7760c099e9ad01120b719d3d047e6e6aa11f16e5fe8ca58e51079f038cea6d7aa3efe13 SHA512 f414a0231665bc3bedb7dcdaab8c86f32c140e5107ef80b70e2f99467e737d033de6ff492f2af7233671bff9b148475e0af4881c073ac727d0fd1228b7cf59b6
DIST oct2py-4.0.6.tar.gz 431738 BLAKE2B d76fd323fa2405cd70dd1d4cbbdf64bbd346d45dc8065de0913d44d833f6d609d20ec8887cefeafdc4e59c382f862a8954b395557ff5ec127a67b1df2d560083 SHA512 997ca843571d2d68c4c57c0213a525c1be5f8b3e3dbffffb6cd41e423d68c8836dd12a03d5210d7f0cbf8ff19be7bb9d25b48c62a236cae68a0762547e574caa
EBUILD oct2py-3.6.0-r1.ebuild 1429 BLAKE2B 0702ac34c1b1ad5008733da125443f541f7aee9d8bf3e4f90c6bcb8ca201df4b5059c9232132279116cfe6e3fc611162859685ba9a68ea13998ba1d667ef6035 SHA512 867e53f7a3e3733fae47d4f8b9372ad0cd050ccb5178149ed7ef40d68fd2cb3f410b6c62a06bad1407a5c5528224bb10046bb93a63ffe81525ac2ad859574774
EBUILD oct2py-4.0.6-r1.ebuild 1206 BLAKE2B 61a0e214902bef45baededd2860344a1db85621fb40cc37fd8475038889818dc4367dcafefde2456c24ba659f3b020944907e47c1a0c5615fc0bb69bac2e245c SHA512 b9605db4ec4c843f52645a15d30d1e4311b763980db6ffa1e0b3050798b6ef14b18bdd4cfcab473af55458badeb455d9e173bb00b6d2fc5ec6e53184d0be5650
MISC metadata.xml 615 BLAKE2B 32a95461360131faf43212d3e419ba75a12f853749baf7f862499155d6f445492c311860ea5ee7c7e22c5e9586c722df8382cfe2eb6f67ac7bc1596f6cb9602a SHA512 e476f193cbbdefdf56caeb8a8a501f57daf1b74a12a32c426b6e9150ea0d5b2538b7bd9bbeb3b7f45ba01aa741be2fd0b4dbf8e8302e867230fc1b2512c10ca2

@ -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>

@ -0,0 +1,65 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_7 )
inherit distutils-r1
DESCRIPTION="Python to GNU Octave bridge"
HOMEPAGE="
https://github.com/blink1073/oct2py
https://blink1073.github.io/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"
RESTRICT="!test? ( 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
}

@ -0,0 +1,57 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_7 )
inherit distutils-r1
DESCRIPTION="Python to GNU Octave bridge"
HOMEPAGE="
https://github.com/blink1073/oct2py
https://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"
RESTRICT="!test? ( 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
}
Loading…
Cancel
Save