1 |
commit: 49f61e6e1da42c049152cd346a4776dfb5582371 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 17:48:00 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 18:03:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49f61e6e |
7 |
|
8 |
dev-python/pyregion: version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/pyregion/Manifest | 1 + |
13 |
dev-python/pyregion/pyregion-1.2.ebuild | 63 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyregion/Manifest b/dev-python/pyregion/Manifest |
17 |
index 255fa19..3c6bdab 100644 |
18 |
--- a/dev-python/pyregion/Manifest |
19 |
+++ b/dev-python/pyregion/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pyregion-1.1.4.tar.gz 99454 SHA256 2d7d5ce46a3b4177978d4901c9c46ce402165113049006b923f5346b014973b9 SHA512 572a10593dc93f64ad6fd1d7a8f19582df04309b88a73fb41e3b4c71036d61c3857114cc01025e581ddd3a63af92fabb5375c1ee8fe487f83da2780569954236 WHIRLPOOL 54791087d514e9c4b0e850c77219ed4d453a2a86c148ce04f2dc8cbcdc9138e075860acc6c2812e9033cfe15cca2b093d792186a2b47f903c747d2486feab8bd |
22 |
+DIST pyregion-1.2.tar.gz 1133496 SHA256 4f57070564526974661bbbf96cd1d509a708909002dd34f0354ac80c391b5e61 SHA512 80f851ecc8ec60a287b11b558fab920da7565c3574b0e6e977b8c8e3f40951f0407b27cc1c24e0d9d864f9b853b03053e9fae3ee81a32ab36078f2c8ce6334b9 WHIRLPOOL bef7db8c184d7e9f3aad4ab7d8494ff8b512ecc275e81202f66727658eabb1a6ef3d47fefcf7eac4ea5390a2baad08e5c370efcc6d908130ff265a73701f8e45 |
23 |
|
24 |
diff --git a/dev-python/pyregion/pyregion-1.2.ebuild b/dev-python/pyregion/pyregion-1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..48af339 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyregion/pyregion-1.2.ebuild |
29 |
@@ -0,0 +1,63 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
37 |
+inherit distutils-r1 virtualx xdg-utils |
38 |
+ |
39 |
+DESCRIPTION="Python module to parse ds9 region file" |
40 |
+HOMEPAGE="http://pyregion.readthedocs.org/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
45 |
+LICENSE="MIT" |
46 |
+ |
47 |
+IUSE="doc examples test" |
48 |
+RDEPEND=" |
49 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
50 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
51 |
+ dev-python/pyparsing[${PYTHON_USEDEP}]" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
54 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}] |
55 |
+ dev-python/cython[${PYTHON_USEDEP}] |
56 |
+ doc? ( |
57 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
58 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
59 |
+ dev-python/wcsaxes[${PYTHON_USEDEP}] ) |
60 |
+ test? ( |
61 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
62 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] )" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # use astropy-helpers from system |
66 |
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die |
67 |
+ xdg_environment_reset |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_compile_all() { |
72 |
+ if use doc; then |
73 |
+ python_setup |
74 |
+ VARTEXFONTS="${T}"/fonts \ |
75 |
+ MPLCONFIGDIR="${BUILD_DIR}" \ |
76 |
+ PYTHONPATH="${BUILD_DIR}"/lib \ |
77 |
+ esetup.py build_sphinx --no-intersphinx |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ virtx esetup.py test |
83 |
+} |
84 |
+ |
85 |
+python_install_all() { |
86 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
87 |
+ distutils-r1_python_install_all |
88 |
+ if use examples; then |
89 |
+ insinto /usr/share/doc/${PF} |
90 |
+ doins -r examples |
91 |
+ fi |
92 |
+} |