1 |
commit: 6cbe9f1a288e92707da37402999292a53cebc3aa |
2 |
Author: Kacper Kowalik (Xarthisius) <xarthisius <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 28 12:12:46 2012 +0000 |
4 |
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 28 12:12:46 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6cbe9f1a |
7 |
|
8 |
[dev-python/pyhdf] initial import wrt #423953. Ebuild written by Paweł Rumian <gorkypl <AT> gmail.com> with my modifications |
9 |
|
10 |
--- |
11 |
dev-python/pyhdf/metadata.xml | 12 +++++++++ |
12 |
dev-python/pyhdf/pyhdf-0.8.3.ebuild | 44 +++++++++++++++++++++++++++++++++++ |
13 |
2 files changed, 56 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pyhdf/metadata.xml b/dev-python/pyhdf/metadata.xml |
16 |
new file mode 100644 |
17 |
index 0000000..274be42 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pyhdf/metadata.xml |
20 |
@@ -0,0 +1,12 @@ |
21 |
+<?xml version="1.0" encoding="UTF-8"?> |
22 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
23 |
+<pkgmetadata> |
24 |
+ <herd>sci</herd> |
25 |
+ <maintainer> |
26 |
+ <email>gorkypl@×××××.com</email> |
27 |
+ <name>Paweł Rumian</name> |
28 |
+ </maintainer> |
29 |
+ <use> |
30 |
+ <flag name="szip">Allow to use <pkg>sci-libs/szip</pkg> for SZIP compression method in SDsetcompress()</flag> |
31 |
+ </use> |
32 |
+</pkgmetadata> |
33 |
|
34 |
diff --git a/dev-python/pyhdf/pyhdf-0.8.3.ebuild b/dev-python/pyhdf/pyhdf-0.8.3.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..d8f80ef |
37 |
--- /dev/null |
38 |
+++ b/dev-python/pyhdf/pyhdf-0.8.3.ebuild |
39 |
@@ -0,0 +1,44 @@ |
40 |
+# Copyright 1999-2012 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Header: $ |
43 |
+ |
44 |
+EAPI=4 |
45 |
+ |
46 |
+PYTHON_DEPEND="2" |
47 |
+SUPPORT_PYTHON_ABIS="1" |
48 |
+RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython" |
49 |
+ |
50 |
+inherit distutils |
51 |
+ |
52 |
+DESCRIPTION="Python interface to NCSA HDF4 library." |
53 |
+HOMEPAGE="http://pysclint.sourceforge.net/pycdf/ http://pypi.python.org/pypi/pyhdf" |
54 |
+SRC_URI="mirror://sourceforge/pysclint/${PN}/${PV}/${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="PSF-2" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+IUSE="examples szip" |
60 |
+ |
61 |
+RDEPEND="dev-python/numpy |
62 |
+ sci-libs/hdf[szip=]" |
63 |
+DEPEND="dev-python/setuptools |
64 |
+ ${RDEPEND}" |
65 |
+ |
66 |
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
67 |
+ |
68 |
+src_compile () { |
69 |
+ use szip || export NOSZIP=1 |
70 |
+ distutils_src_compile |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ distutils_src_install |
75 |
+ |
76 |
+ dohtml doc/*.html |
77 |
+ dodoc CHANGES doc/*.txt |
78 |
+ |
79 |
+ if use examples; then |
80 |
+ insinto /usr/share/doc/${PF} |
81 |
+ doins -r examples |
82 |
+ fi |
83 |
+} |