summaryrefslogtreecommitdiff
path: root/dev-python/wcsaxes
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/wcsaxes
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/wcsaxes')
-rw-r--r--dev-python/wcsaxes/Manifest8
-rw-r--r--dev-python/wcsaxes/files/wcsaxes-0.8-disable_mpltest.patch14
-rw-r--r--dev-python/wcsaxes/metadata.xml14
-rw-r--r--dev-python/wcsaxes/wcsaxes-0.8.ebuild56
-rw-r--r--dev-python/wcsaxes/wcsaxes-0.9.ebuild59
5 files changed, 151 insertions, 0 deletions
diff --git a/dev-python/wcsaxes/Manifest b/dev-python/wcsaxes/Manifest
new file mode 100644
index 000000000000..8d3a205115f2
--- /dev/null
+++ b/dev-python/wcsaxes/Manifest
@@ -0,0 +1,8 @@
+AUX wcsaxes-0.8-disable_mpltest.patch 366 SHA256 2273f1af0ef0c5077b5b41b49b5ce765fdb6cd53fa27f6b6fd981fba5479213f SHA512 fa40ad937d212f63bd9c9856c6b19d819f790b5025480dfe2ddb461b2d67d0c6f0f32f8f8f4b53275ece2f43856225d9b3533081fb32828ec3961a1755fc35b9 WHIRLPOOL 03d62053a6dc818b31c904b5ad57e29a0869a95b51f8e2f862cf591fb6f7f9c5a26b867921c8fc8b9df6edac6ae00fa5458dc7b758617b4d31acfd40cbca2154
+DIST wcsaxes-0.8.tar.gz 226456 SHA256 3ada54586add52e70ceb5aff9257ae9c38a71d1889fe335bce3d219c5a03c672 SHA512 77a08a99b4b3fd4f08633a10d4a3dfd6726bc1433aca2c2bdb505fd93c79a5ba3735523697c11084f0044a22a5bda345a946f5770185815f92b71b59c7fc0769 WHIRLPOOL 3acbba0c1c93f4d2ceeea3d4f236f7294e3eb306b7f3f8be7244aa5b7f35452cc21c072a5f054a7608238262f6cc0dde19b40f02cd9705182430fa0a6e9b0470
+DIST wcsaxes-0.9.tar.gz 213306 SHA256 fd1897f611c48edee00b05bdd7bb238372843b9a8b8f7592cb0d5a7ed4d15b53 SHA512 ae5a69f6f7ab71d186a128d902ae2f6d2d1d8a8b3358af88da120815493d24ffdc5d7a07ee96efe5adc91f68822f070b3d667e52e7cee5ac501abe62a468e2c4 WHIRLPOOL 1232bc214082c1e7ed0bb362758e84b2f3601551b3f120cc6451f1e7b4e211d959d515f089c7b50fd505ff7e3c037bbe9138c117576ec69151f0dc7de5e69e1a
+EBUILD wcsaxes-0.8.ebuild 1369 SHA256 80dde0457cbca9cb3ecb89bd3545b89767c7cbeb00196f5874bbf1c09beb9705 SHA512 24778db90866580198e3edbc77b07c46c7f66ee32ac77e6b005f7a9e4831538c6ca1395079465e439cb6345f5fbac1989491c9278ec6aa80c340447742778efe WHIRLPOOL 602c872e1400ab44c61b92fcaa6fa68f24120790ed992b11fba8202d957758f092450e78c217ed0d63d65829f014e4dbddebe63ae513cd22f4f5d5c1fc3b5ae0
+EBUILD wcsaxes-0.9.ebuild 1495 SHA256 8fe00eb965c4ae39f2c04ef921d577e5b6f4f5687e604766bd7d5970668a0750 SHA512 619dcdb539f744d75a32f29306446a8f1a81acf03b6adc0a9734c9faa69059747544bab6823b73d8bab9f26e75843ab4395dfdb2314018faf7e8fa92a3be9289 WHIRLPOOL b9f5c604b3ffd91737f2835c8af3b89c5ba5be11b0fbf7f9783b276551d3ce4c6b247fdbd884c2db670ed33f09b5babbd1f1a56323b2526a197d1c6eb8fa3a1e
+MISC ChangeLog 3775 SHA256 1f47905d09523f5df904e0102614f667e056331efb6cd8d2f3ec198ad6c829bb SHA512 12fd4d0092973531a94700b8404d7463278221f27112655b4bfa1bd99a6b947e83cbb1df181c79fdcc47aa025206ecce2aafcddc1c475fd0b01b3c32575eef1d WHIRLPOOL 394a9b902802fe9b5a0442e7d92870fecadd102b4e71f904ec812a691ce563c8f85e616133a2bcd97d50e59665c743909b74a8bdcc4df516579ac7ce384389ba
+MISC ChangeLog-2015 372 SHA256 469ef503748b87fccf0b2d7944685f448b9e5318a7a81063c429d865f6f4fcc0 SHA512 fe7fbc260e07898ccf2a25416bdd88fe8761eb96092caace5da05a3a1bfc7d68a3462c8a525647493b4f40688a8e5f3225f8e3211ec2b9e83ec4d8dabe7e5ba2 WHIRLPOOL 95e2087c4faca504c09cc7252f0037aa3345686582db5317da3f061afdafa3b00f946bed7b6add9cb275a25a357a4c48fe7c649abe6ccfab6a4ae8cb4bdb7ddf
+MISC metadata.xml 453 SHA256 35c9d678bafae433da05a3e6d5b878855a198529d1f309572157ffdcd34975a9 SHA512 11a93fdd498a01227f31e388d681cce63e88063ab877ce483332fea9ce818dcde0ab3d7ad24c32e71ffae7fb105ec465499b4f2b74faa5fdd08f51e435467ce4 WHIRLPOOL 704dd2702bf0e1230411d70d7a67d289d748061ee1c31f768546a2a515d80d529354c9f468f81df8491bc6aeff417747a0b68a139947880456b7df68df0664a8
diff --git a/dev-python/wcsaxes/files/wcsaxes-0.8-disable_mpltest.patch b/dev-python/wcsaxes/files/wcsaxes-0.8-disable_mpltest.patch
new file mode 100644
index 000000000000..9426b3296c04
--- /dev/null
+++ b/dev-python/wcsaxes/files/wcsaxes-0.8-disable_mpltest.patch
@@ -0,0 +1,14 @@
+Author: Ole Streicher <olebole@debian.org>
+Description: Remove the tests that require pytest-mpl
+ Pytest_mpl is (still) not available in Debian.
+ https://github.com/astrofrog/pytest-mpl
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -11,7 +11,6 @@
+ minversion = 2.2
+ norecursedirs = build docs/_build
+ doctest_plus = enabled
+-addopts = --mpl
+
+ [ah_bootstrap]
+ auto_use = False
diff --git a/dev-python/wcsaxes/metadata.xml b/dev-python/wcsaxes/metadata.xml
new file mode 100644
index 000000000000..f85db4532e4d
--- /dev/null
+++ b/dev-python/wcsaxes/metadata.xml
@@ -0,0 +1,14 @@
+<?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">
+ Framework for plotting astronomical and geospatial data
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">wcsaxes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/wcsaxes/wcsaxes-0.8.ebuild b/dev-python/wcsaxes/wcsaxes-0.8.ebuild
new file mode 100644
index 000000000000..670ffebcd975
--- /dev/null
+++ b/dev-python/wcsaxes/wcsaxes-0.8.ebuild
@@ -0,0 +1,56 @@
+# 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 virtualx
+
+DESCRIPTION="Framework for plotting astronomical and geospatial data"
+HOMEPAGE="http://wcsaxes.readthedocs.org"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+RDEPEND="
+ dev-python/astropy[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.8-disable_mpltest.patch"
+)
+
+python_prepare_all() {
+ # use system astropy-helpers instead of bundled one
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die
+ 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
+}
diff --git a/dev-python/wcsaxes/wcsaxes-0.9.ebuild b/dev-python/wcsaxes/wcsaxes-0.9.ebuild
new file mode 100644
index 000000000000..898e26934a0d
--- /dev/null
+++ b/dev-python/wcsaxes/wcsaxes-0.9.ebuild
@@ -0,0 +1,59 @@
+# 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="Framework for plotting astronomical and geospatial data"
+HOMEPAGE="http://wcsaxes.readthedocs.org"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+RDEPEND="
+ dev-python/astropy[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.8-disable_mpltest.patch"
+)
+
+python_prepare_all() {
+ # use system astropy-helpers instead of bundled one
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die
+ echo "backend: Agg" > "${WORKDIR}"/matplotlibrc || die
+ export MATPLOTLIBRC="${WORKDIR}"
+ 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
+}