1 |
commit: cf7a9b97d0139d38645f6dd2ef911282e5096b0f |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 10:46:33 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 10:47:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf7a9b97 |
7 |
|
8 |
dev-python/fitsio: add 1.1.7, ebuild cleanup, fix license |
9 |
|
10 |
Closes: https://bugs.gentoo.org/771702 |
11 |
Closes: https://bugs.gentoo.org/748327 |
12 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
13 |
|
14 |
dev-python/fitsio/Manifest | 1 + |
15 |
dev-python/fitsio/fitsio-1.1.7.ebuild | 36 +++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 37 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/fitsio/Manifest b/dev-python/fitsio/Manifest |
19 |
index 6c3314878498..5d468a97cfeb 100644 |
20 |
--- a/dev-python/fitsio/Manifest |
21 |
+++ b/dev-python/fitsio/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST fitsio-0.9.11.tar.gz 6020222 BLAKE2B a71a0a6a026999b06dce54beb48fab2f510951099788b51456a6e07057daa7c911d5a2841d5f15a397705459daf081ff91bff1014782c93cb1dd76faf0ef2e1d SHA512 751b9612fe051f128d8f5dea61e2d119409293051a130ee3e18836181637e8c8daea757a715012fd024678d00e234e8b6c0cc0c9229c2bd9a406db312e4607d7 |
24 |
+DIST fitsio-1.1.7.gh.tar.gz 5052055 BLAKE2B be9c632dcdd08325c5abb2cb9ed9eee6476b27ef2e7197298b269156346ecb72afc9f1d1c2e3ade045f69cde3afac5a6bf3fe5ecbce67fdfc1e6ede529ab1b32 SHA512 d6e81de08c38346050fbaa3e2fb51a496e76133bb0b04f20d816b51b7b7bf21ba37a400c3a6a7f966959223545c736ca6245427457154a4b5976b5a997e9cfcc |
25 |
|
26 |
diff --git a/dev-python/fitsio/fitsio-1.1.7.ebuild b/dev-python/fitsio/fitsio-1.1.7.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..80ad81b256f8 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/fitsio/fitsio-1.1.7.ebuild |
31 |
@@ -0,0 +1,36 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python library to read from and write to FITS files" |
42 |
+HOMEPAGE="https://github.com/esheldon/fitsio" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/esheldon/fitsio/archive/${PV}.tar.gz |
45 |
+ -> ${P}.gh.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2+" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/numpy-1.11[${PYTHON_USEDEP}] |
53 |
+ sci-libs/cfitsio:0= |
54 |
+" |
55 |
+BDEPEND="${RDEPEND}" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ sed -e '/self.use_system_fitsio/s/False/True/' -i setup.py || die |
59 |
+ |
60 |
+ distutils-r1_src_prepare |
61 |
+} |
62 |
+ |
63 |
+python_test() { |
64 |
+ cp -r -l -n fitsio "${BUILD_DIR}/lib" || die |
65 |
+ cd "${BUILD_DIR}/lib" || die |
66 |
+ ${EPYTHON} -c "import fitsio; exit(fitsio.test.test())" || die "Tests failed with ${EPYTHON}" |
67 |
+} |