1 |
commit: 1eba31fad08aa75170ac7093235037076a0870e5 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 19:29:41 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 21:31:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eba31fa |
7 |
|
8 |
dev-python/pydl: initial import |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/pydl/Manifest | 1 + |
13 |
dev-python/pydl/metadata.xml | 18 ++++++++++++++ |
14 |
dev-python/pydl/pydl-0.5.2.ebuild | 52 +++++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pydl/Manifest b/dev-python/pydl/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000..237e241 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pydl/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pydl-0.5.2.tar.gz 687455 SHA256 d6a7442b67785e4f239d1fe8a2be490b5db4b536d4365572adbb6222fddb4dcd SHA512 17608441b5a78dda2155646757e6c573030d2d2dd5bb643852cede14aca64c5a8efd66007fe63f084bdb7ef8d131df51b2f28d7e87a673cb100983f89a0899e7 WHIRLPOOL 6310c8cca95e054e70e0619e3f0150997f15efca85c788c177ce47bc1a3cd14297d7279bef338e8e5e5087530fc120158061df54ff3ccce635c1c05ae54f48f4 |
24 |
|
25 |
diff --git a/dev-python/pydl/metadata.xml b/dev-python/pydl/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000..9c578b9 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pydl/metadata.xml |
30 |
@@ -0,0 +1,18 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>sci-astronomy@g.o</email> |
36 |
+ <name>Gentoo Astronomy Project</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> |
39 |
+ PyDL consists of Python replacements for functions that are part of the IDL |
40 |
+ built-in library or part of astronomical IDL libraries. |
41 |
+ The emphasis is on reproducing results of the astronomical library |
42 |
+ functions. |
43 |
+ Only the bare minimum of IDL built-in functions are implemented to support this. |
44 |
+ </longdescription> |
45 |
+ <upstream> |
46 |
+ <remote-id type="pypi">pydl</remote-id> |
47 |
+ </upstream> |
48 |
+</pkgmetadata> |
49 |
|
50 |
diff --git a/dev-python/pydl/pydl-0.5.2.ebuild b/dev-python/pydl/pydl-0.5.2.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000..177bd96 |
53 |
--- /dev/null |
54 |
+++ b/dev-python/pydl/pydl-0.5.2.ebuild |
55 |
@@ -0,0 +1,52 @@ |
56 |
+# Copyright 1999-2016 Gentoo Foundation |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+# $Id$ |
59 |
+ |
60 |
+EAPI=6 |
61 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
62 |
+ |
63 |
+inherit distutils-r1 virtualx xdg-utils |
64 |
+ |
65 |
+DESCRIPTION="Library of IDL astronomy routines converted to Python" |
66 |
+HOMEPAGE="https://pypi.python.org/pypi/pydl/" |
67 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
68 |
+ |
69 |
+LICENSE="BSD" |
70 |
+SLOT="0" |
71 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
72 |
+IUSE="doc test" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
76 |
+ sci-libs/scipy[${PYTHON_USEDEP}]" |
77 |
+DEPEND="${RDEPEND} |
78 |
+ dev-python/astropy-helpers[${PYTHON_USEDEP}] |
79 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
80 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
81 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
82 |
+ |
83 |
+python_prepare_all() { |
84 |
+ # use system astropy-helpers instead of bundled one |
85 |
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die |
86 |
+ xdg_environment_reset |
87 |
+ distutils-r1_python_prepare_all |
88 |
+} |
89 |
+ |
90 |
+python_compile_all() { |
91 |
+ if use doc; then |
92 |
+ python_setup |
93 |
+ VARTEXFONTS="${T}"/fonts \ |
94 |
+ MPLCONFIGDIR="${BUILD_DIR}" \ |
95 |
+ PYTHONPATH="${BUILD_DIR}"/lib \ |
96 |
+ esetup.py build_sphinx --no-intersphinx |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+python_test() { |
101 |
+ virtx esetup.py test |
102 |
+} |
103 |
+ |
104 |
+python_install_all() { |
105 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
106 |
+ distutils-r1_python_install_all |
107 |
+} |