1 |
commit: 68ea487d29d1060c80752e3042dd9b09d2438b3c |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 19 12:01:54 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 19 12:02:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ea487d |
7 |
|
8 |
sci-astronomy/gnuastro: add version 0.16 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/673946 |
11 |
Bug: https://bugs.gentoo.org/644224 |
12 |
Bug: https://bugs.gentoo.org/723198 |
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
15 |
|
16 |
sci-astronomy/gnuastro/Manifest | 1 + |
17 |
sci-astronomy/gnuastro/gnuastro-0.16.ebuild | 54 +++++++++++++++++++++++++++++ |
18 |
2 files changed, 55 insertions(+) |
19 |
|
20 |
diff --git a/sci-astronomy/gnuastro/Manifest b/sci-astronomy/gnuastro/Manifest |
21 |
index e4664a60b31b..bcdb52172119 100644 |
22 |
--- a/sci-astronomy/gnuastro/Manifest |
23 |
+++ b/sci-astronomy/gnuastro/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST gnuastro-0.16.tar.gz 6089988 BLAKE2B be85152e6638a3462cf00555748a6be8d8c9d30b7c43332f1a16140bd22af2d7e948e1e089045b51b22db1541645dc82668cf2cb8c73abf3b07418343f1c02d9 SHA512 8848528b1a117aaebed854db2e8e4586d3b3f860f25f07a1362b7cd1ffd4f0f7ef214fc0b91b3bfc4aaf1ba9c8bbeaf9dec82979665db1c6fe3703f39354a867 |
26 |
DIST gnuastro-0.3.tar.gz 4525361 BLAKE2B 432078bf330fc8e6886246e4aec767c86b9c19c0c438a3c37b1912e3433e82c68db1090351b0e2e8e4fbb8a7906aa3ac031db8abd5e8c15380e1e8c349b9ebe5 SHA512 08556fd0de196c331cfd68e4b385fbef5c130fa9c914889367f4e3637b8dc6270a2424ef92c6641ec803c355d0577cebf3ace5ad76a7024f0414bb516338beac |
27 |
|
28 |
diff --git a/sci-astronomy/gnuastro/gnuastro-0.16.ebuild b/sci-astronomy/gnuastro/gnuastro-0.16.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..ca9adb3bb97c |
31 |
--- /dev/null |
32 |
+++ b/sci-astronomy/gnuastro/gnuastro-0.16.ebuild |
33 |
@@ -0,0 +1,54 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit autotools |
40 |
+ |
41 |
+DESCRIPTION="GNU Astronomy Utilities" |
42 |
+HOMEPAGE="https://www.gnu.org/software/gnuastro" |
43 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0/1" |
47 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
48 |
+ |
49 |
+IUSE="static-libs threads" |
50 |
+ |
51 |
+# jpeg, pdf, and libgit2 are forced deps |
52 |
+# because they are automagically detected. |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ app-text/ghostscript-gpl |
56 |
+ dev-libs/libgit2:= |
57 |
+ media-libs/tiff |
58 |
+ net-misc/curl |
59 |
+ sci-astronomy/wcslib:0= |
60 |
+ sci-libs/cfitsio:0= |
61 |
+ sci-libs/gsl:0= |
62 |
+ sys-libs/zlib:= |
63 |
+ virtual/jpeg:0= |
64 |
+" |
65 |
+DEPEND="${RDEPEND}" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ sed -i -e 's/-O3//' configure.ac || die |
70 |
+ eautoreconf |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local myeconfargs=( |
75 |
+ $(use_enable static-libs static) |
76 |
+ $(use_enable threads) |
77 |
+ ) |
78 |
+ econf ${myeconfargs[@]} |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ default |
83 |
+ |
84 |
+ if ! use static-libs; then |
85 |
+ find "${ED}" -name '*.la' -delete || die |
86 |
+ fi |
87 |
+} |