diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyregion | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyregion')
-rw-r--r-- | dev-python/pyregion/Manifest | 5 | ||||
-rw-r--r-- | dev-python/pyregion/metadata.xml | 15 | ||||
-rw-r--r-- | dev-python/pyregion/pyregion-1.1.4.ebuild | 31 | ||||
-rw-r--r-- | dev-python/pyregion/pyregion-1.2.ebuild | 62 |
4 files changed, 113 insertions, 0 deletions
diff --git a/dev-python/pyregion/Manifest b/dev-python/pyregion/Manifest new file mode 100644 index 000000000000..4f0807ce9fe3 --- /dev/null +++ b/dev-python/pyregion/Manifest @@ -0,0 +1,5 @@ +DIST pyregion-1.1.4.tar.gz 99454 BLAKE2B e8e58364d825261baa9a706e02c0d2c57fab3b0fbdc18da1bbb07015f308c856795802af0ed8a09ecfac30600c0fa7fffaa824d5c330f45377208248d439b139 SHA512 572a10593dc93f64ad6fd1d7a8f19582df04309b88a73fb41e3b4c71036d61c3857114cc01025e581ddd3a63af92fabb5375c1ee8fe487f83da2780569954236 +DIST pyregion-1.2.tar.gz 1133496 BLAKE2B eea77b0c015b96aa277aa971e890db71cae2e5de112fa34898df8a80fdd48bbc7f13b3f298582d51bcead609c62e90d3e5c049bda37603e8ae1d655cb4f618c1 SHA512 80f851ecc8ec60a287b11b558fab920da7565c3574b0e6e977b8c8e3f40951f0407b27cc1c24e0d9d864f9b853b03053e9fae3ee81a32ab36078f2c8ce6334b9 +EBUILD pyregion-1.1.4.ebuild 738 BLAKE2B f150dfd422fc8bd19c534fea41ef5f96074bb2b8c07194f34c4254a86adcbf5914ab8dad4b8b7ccb43181c57a6d05e1edbd8ef6931b2a1e5afcd22d333724e55 SHA512 bce60d3c8a038de4a1c1a8c4ce6937a9b434e5848be2863254ff7d7dafda2e3f7c1e6a28ee1bcafeb057dcc60d62a1736d35f2e925ec0cefd44b308bb5b8ab67 +EBUILD pyregion-1.2.ebuild 1543 BLAKE2B b69c9a0354791bad1338b5a6f596ad31bcbfb37f411e3589812fb5b63366d79a5f3f9af8682b622aaa8932afe82bf30a526993796e0af4cefcc48b8cce561d69 SHA512 65b302cd2224b88a90bd3a106a2e68899610d33acd0ff3c42d6c7e9551f5deba5cb1f9ac104626e4d5475053930b89f5ae9e452340c5e0e2045f8204e1af3cbc +MISC metadata.xml 512 BLAKE2B 05d13186313d06a7f0c6370adedc1dbac3300662951ff249f63ef5d4dd33a237dcefe98c76d9dec07186ff4e27ec155b9ed60d7b0ec630fe7b500c906ab1f0f1 SHA512 0187a79d485d66fed785fc6ee8288be4cde62e47a7fec9ae3ffe0b4235125025e63496d53caa606d360ed95cab11fb448bf39ac39601d2913fe59f7a158aa946 diff --git a/dev-python/pyregion/metadata.xml b/dev-python/pyregion/metadata.xml new file mode 100644 index 000000000000..255624cbc7ce --- /dev/null +++ b/dev-python/pyregion/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> +</maintainer> +<longdescription lang="en"> + pyregion is a python module to parse ds9 region files. It also + support ciao region files, and can draw regions using matplotlib. +</longdescription> +<upstream> + <remote-id type="pypi">pyregion</remote-id> +</upstream> +</pkgmetadata> diff --git a/dev-python/pyregion/pyregion-1.1.4.ebuild b/dev-python/pyregion/pyregion-1.1.4.ebuild new file mode 100644 index 000000000000..69753f59d42f --- /dev/null +++ b/dev-python/pyregion/pyregion-1.1.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +inherit distutils-r1 + +DESCRIPTION="Python module to parse ds9 region file" +HOMEPAGE="http://pyregion.readthedocs.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="MIT" + +IUSE="examples" +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}]" +DEPEND="${DEPEND} + || ( dev-python/cython[${PYTHON_USEDEP}] + dev-python/pyrex[${PYTHON_USEDEP}] )" + +python_install_all() { + distutils-r1_python_install_all + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/dev-python/pyregion/pyregion-1.2.ebuild b/dev-python/pyregion/pyregion-1.2.ebuild new file mode 100644 index 000000000000..d4dac7cb0776 --- /dev/null +++ b/dev-python/pyregion/pyregion-1.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +inherit distutils-r1 virtualx xdg-utils + +DESCRIPTION="Python module to parse ds9 region file" +HOMEPAGE="http://pyregion.readthedocs.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="MIT" + +IUSE="doc examples test" +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyparsing[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/wcsaxes[${PYTHON_USEDEP}] ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # use astropy-helpers from system + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |