1 |
commit: 5667b14eedd2709b56657c173ebaa9f20e36f087 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 16:51:51 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 17:00:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5667b14e |
7 |
|
8 |
dev-python/wcsaxes: version bump and fix xdg sandbox violation |
9 |
Gentoo-Bug: 586610 |
10 |
|
11 |
Package-Manager: portage-2.3.0 |
12 |
|
13 |
dev-python/wcsaxes/Manifest | 1 + |
14 |
dev-python/wcsaxes/wcsaxes-0.9.ebuild | 58 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/wcsaxes/Manifest b/dev-python/wcsaxes/Manifest |
18 |
index 8c71a85..ae7244e 100644 |
19 |
--- a/dev-python/wcsaxes/Manifest |
20 |
+++ b/dev-python/wcsaxes/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST wcsaxes-0.8.tar.gz 226456 SHA256 3ada54586add52e70ceb5aff9257ae9c38a71d1889fe335bce3d219c5a03c672 SHA512 77a08a99b4b3fd4f08633a10d4a3dfd6726bc1433aca2c2bdb505fd93c79a5ba3735523697c11084f0044a22a5bda345a946f5770185815f92b71b59c7fc0769 WHIRLPOOL 3acbba0c1c93f4d2ceeea3d4f236f7294e3eb306b7f3f8be7244aa5b7f35452cc21c072a5f054a7608238262f6cc0dde19b40f02cd9705182430fa0a6e9b0470 |
23 |
+DIST wcsaxes-0.9.tar.gz 213306 SHA256 fd1897f611c48edee00b05bdd7bb238372843b9a8b8f7592cb0d5a7ed4d15b53 SHA512 ae5a69f6f7ab71d186a128d902ae2f6d2d1d8a8b3358af88da120815493d24ffdc5d7a07ee96efe5adc91f68822f070b3d667e52e7cee5ac501abe62a468e2c4 WHIRLPOOL 1232bc214082c1e7ed0bb362758e84b2f3601551b3f120cc6451f1e7b4e211d959d515f089c7b50fd505ff7e3c037bbe9138c117576ec69151f0dc7de5e69e1a |
24 |
|
25 |
diff --git a/dev-python/wcsaxes/wcsaxes-0.9.ebuild b/dev-python/wcsaxes/wcsaxes-0.9.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..f900e45 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/wcsaxes/wcsaxes-0.9.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
37 |
+ |
38 |
+inherit distutils-r1 virtualx xdg-utils |
39 |
+ |
40 |
+DESCRIPTION="Framework for plotting astronomical and geospatial data" |
41 |
+HOMEPAGE="http://wcsaxes.readthedocs.org" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
47 |
+IUSE="doc test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
51 |
+ dev-python/matplotlib[${PYTHON_USEDEP}]" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}] |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+ doc? ( |
56 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
57 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) |
58 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}/${PN}-0.8-disable_mpltest.patch" |
62 |
+) |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # use system astropy-helpers instead of bundled one |
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 |
+} |