1 |
commit: d8586233dc80725e9fa66dba3cbadf5263937f18 |
2 |
Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 19 11:06:57 2012 +0000 |
4 |
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 19 11:06:57 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xarthisius.git;a=commit;h=d8586233 |
7 |
|
8 |
[dev-python/astropy] intial import |
9 |
|
10 |
--- |
11 |
dev-python/astropy/Manifest | 3 + |
12 |
dev-python/astropy/astropy-0.1.ebuild | 48 ++++++++++++++++++++++ |
13 |
dev-python/astropy/files/astropy-0.1-expat.patch | 33 +++++++++++++++ |
14 |
3 files changed, 84 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/astropy/Manifest b/dev-python/astropy/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..abf3ef0 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/astropy/Manifest |
21 |
@@ -0,0 +1,3 @@ |
22 |
+AUX astropy-0.1-expat.patch 1108 RMD160 354afe0606a1637764a166d385b56fa826560a4b SHA1 ac7adaa80af462436a9df31ea5bab4a8739f1b7d SHA256 9e929cfaa1ebd2d0f82d185dd7f72924f21f655105ccd843f620143654bf4ab0 |
23 |
+DIST astropy-0.1.tar.gz 3109566 RMD160 9dc3fc390d3eb15a6e5997e0f6703bef046a2cdd SHA1 89e483a021f94a3e9807a737f8bb3aee93af5a60 SHA256 205f4576b6267a362d96f7b9e913e1f21efd3d7c58b9d58ebc0d2ed69382c540 |
24 |
+EBUILD astropy-0.1.ebuild 1121 RMD160 c47d6ef51b24e3b0aa1458383bfcd36aba2a5ea4 SHA1 e3cd30939941ecb9014fb13f228aa93cb8183c75 SHA256 f8fafc56d29c7077672425b5895c5ca776e31a3c47910f7280f5a0ff7520df70 |
25 |
|
26 |
diff --git a/dev-python/astropy/astropy-0.1.ebuild b/dev-python/astropy/astropy-0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..9356fe1 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/astropy/astropy-0.1.ebuild |
31 |
@@ -0,0 +1,48 @@ |
32 |
+# Copyright 1999-2012 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Header: $ |
35 |
+ |
36 |
+EAPI=4 |
37 |
+ |
38 |
+SUPPORT_PYTHON_ABIS="1" |
39 |
+DISTUTILS_SRC_TEST=setup.py |
40 |
+ |
41 |
+inherit eutils distutils |
42 |
+ |
43 |
+DESCRIPTION="Collection of common tools needed for performing astronomy and astrophysics" |
44 |
+HOMEPAGE="http://astropy.org/ https://github.com/astropy/astropy" |
45 |
+SRC_URI="http://github.com/downloads/${PN}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="doc test" |
51 |
+ |
52 |
+RDEPEND="dev-libs/expat |
53 |
+ dev-python/numpy" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ dev-python/configobj |
56 |
+ doc? ( dev-python/sphinx ) |
57 |
+ test? ( dev-python/pytest )" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ # Upstream likes to bundle everythin |
61 |
+ rm -rf cextern ${PN}/extern |
62 |
+ export ASTROPY_USE_SYSTEM_PYTEST=1 |
63 |
+ epatch "${FILESDIR}"/${P}-expat.patch |
64 |
+ sed -e 's/from ..extern.configobj //g' \ |
65 |
+ -i astropy/config/configuration.py || die |
66 |
+ distutils_src_prepare |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ distutils_src_compile |
71 |
+ if use doc; then |
72 |
+ PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) emake html -C docs |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ distutils_src_install |
78 |
+ use doc && dohtml -r docs/_build/html/ |
79 |
+} |
80 |
|
81 |
diff --git a/dev-python/astropy/files/astropy-0.1-expat.patch b/dev-python/astropy/files/astropy-0.1-expat.patch |
82 |
new file mode 100644 |
83 |
index 0000000..5bc1b29 |
84 |
--- /dev/null |
85 |
+++ b/dev-python/astropy/files/astropy-0.1-expat.patch |
86 |
@@ -0,0 +1,33 @@ |
87 |
+--- astropy/utils/xml/setup_package.py.orig 2012-06-18 07:48:04.000000000 +0200 |
88 |
++++ astropy/utils/xml/setup_package.py 2012-06-19 12:43:29.685002916 +0200 |
89 |
+@@ -4,7 +4,6 @@ |
90 |
+ |
91 |
+ |
92 |
+ def get_extensions(build_type='release'): |
93 |
+- EXPAT_DIR = 'cextern/expat/lib' |
94 |
+ XML_DIR = 'astropy/utils/xml/src' |
95 |
+ |
96 |
+ defines = [("HAVE_EXPAT_CONFIG_H", 1)] |
97 |
+@@ -21,18 +20,14 @@ |
98 |
+ # place of ours. |
99 |
+ extra_link_args = [ |
100 |
+ '-Wl,--version-script={0}'.format( |
101 |
+- join(XML_DIR, 'iterparse.map')) |
102 |
+- ] |
103 |
++ join(XML_DIR, 'iterparse.map')), |
104 |
++ '-lexpat'] |
105 |
+ else: |
106 |
+ extra_link_args = [] |
107 |
+ |
108 |
+ return [Extension( |
109 |
+ "astropy.utils.xml._iterparser", |
110 |
+- [join(XML_DIR, "iterparse.c"), |
111 |
+- join(EXPAT_DIR, "xmlparse.c"), |
112 |
+- join(EXPAT_DIR, "xmlrole.c"), |
113 |
+- join(EXPAT_DIR, "xmltok.c"), |
114 |
+- join(EXPAT_DIR, "xmltok_impl.c")], |
115 |
++ [join(XML_DIR, "iterparse.c")], |
116 |
+ define_macros=defines, |
117 |
+- include_dirs=[XML_DIR, EXPAT_DIR], |
118 |
++ include_dirs=[XML_DIR], |
119 |
+ extra_link_args=extra_link_args)] |