commit:     49f61e6e1da42c049152cd346a4776dfb5582371
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  1 17:48:00 2016 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Sep  1 18:03:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49f61e6e

dev-python/pyregion: version bump

Package-Manager: portage-2.3.0

 dev-python/pyregion/Manifest            |  1 +
 dev-python/pyregion/pyregion-1.2.ebuild | 63 +++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-python/pyregion/Manifest b/dev-python/pyregion/Manifest
index 255fa19..3c6bdab 100644
--- a/dev-python/pyregion/Manifest
+++ b/dev-python/pyregion/Manifest
@@ -1 +1,2 @@
 DIST pyregion-1.1.4.tar.gz 99454 SHA256 
2d7d5ce46a3b4177978d4901c9c46ce402165113049006b923f5346b014973b9 SHA512 
572a10593dc93f64ad6fd1d7a8f19582df04309b88a73fb41e3b4c71036d61c3857114cc01025e581ddd3a63af92fabb5375c1ee8fe487f83da2780569954236
 WHIRLPOOL 
54791087d514e9c4b0e850c77219ed4d453a2a86c148ce04f2dc8cbcdc9138e075860acc6c2812e9033cfe15cca2b093d792186a2b47f903c747d2486feab8bd
+DIST pyregion-1.2.tar.gz 1133496 SHA256 
4f57070564526974661bbbf96cd1d509a708909002dd34f0354ac80c391b5e61 SHA512 
80f851ecc8ec60a287b11b558fab920da7565c3574b0e6e977b8c8e3f40951f0407b27cc1c24e0d9d864f9b853b03053e9fae3ee81a32ab36078f2c8ce6334b9
 WHIRLPOOL 
bef7db8c184d7e9f3aad4ab7d8494ff8b512ecc275e81202f66727658eabb1a6ef3d47fefcf7eac4ea5390a2baad08e5c370efcc6d908130ff265a73701f8e45

diff --git a/dev-python/pyregion/pyregion-1.2.ebuild 
b/dev-python/pyregion/pyregion-1.2.ebuild
new file mode 100644
index 00000000..48af339
--- /dev/null
+++ b/dev-python/pyregion/pyregion-1.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+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
+}

Reply via email to