1 |
commit: a901fb5b9a1e317224a8126783bea78045554eaf |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 19 20:05:50 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 20:30:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a901fb5b |
7 |
|
8 |
sci-libs/cfitsio: security bump to 3.480 |
9 |
|
10 |
Changes: |
11 |
* Update licence to ISC |
12 |
* EAPI 7 bump |
13 |
* Drop doc, examples USE flags |
14 |
* Remove other now non-existent options upstream |
15 |
|
16 |
Bug: https://bugs.gentoo.org/673944 |
17 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
18 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/16749 |
20 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
21 |
|
22 |
sci-libs/cfitsio/Manifest | 1 + |
23 |
sci-libs/cfitsio/cfitsio-3.480.ebuild | 71 +++++++++++++++++++++++++++++++++++ |
24 |
2 files changed, 72 insertions(+) |
25 |
|
26 |
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest |
27 |
index 14225a2fe01..d9d1cb2960a 100644 |
28 |
--- a/sci-libs/cfitsio/Manifest |
29 |
+++ b/sci-libs/cfitsio/Manifest |
30 |
@@ -1,2 +1,3 @@ |
31 |
DIST cfitsio-3.360.tar.gz 4104894 BLAKE2B 7a84177c28679db5c27d0586cb6959a0663918a84d46ced9aea6ef7e6bdd32955946807efd4cd852e55128dbc887c4a2135b2eba26847b265011bfd6df049335 SHA512 158819b4a3a29c29a5f017283e2b20067420994e881d202dbf3ba199c9e564dc1e74f8be5ce84f78107126d2a8688cc55cc7ed284540ca647e44cdc3b0b02072 |
32 |
DIST cfitsio-3.410.tar.gz 4194529 BLAKE2B 31250b9add5b6a85c919c33251d127117ceab81c2243e0b9f8bbe2ef0fd09c85a938b7525338bc718a9b3035efa3660ecffa17ec79e3e278c8014e727f23473b SHA512 cc1de2a4314e7c82bdd6855e11dea4e18dc4e7bcb27b0d15b884cbaeb4acd3b1e12dadd17ab83c7917570934913f89337035470ee4921e7b62409a81052d70cd |
33 |
+DIST cfitsio-3.48.tar.gz 4928169 BLAKE2B 86e2af3f767c9572c07d1b81138973f81f0ad62a862fb2e457de363a552c17990aacd4f931f233f2cdbbe41c10dac3aa1bfb46220b34fc4407fea4ac01a46132 SHA512 08a13931726b0ee15bd4e2ad6dd4debb8268f3b0bc33adadec5c6a29295dd536bcccb3cc949721c6cebac6f43b6118e5e38332ac0ba8a07a43553416d8debae5 |
34 |
|
35 |
diff --git a/sci-libs/cfitsio/cfitsio-3.480.ebuild b/sci-libs/cfitsio/cfitsio-3.480.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..53eb483eab3 |
38 |
--- /dev/null |
39 |
+++ b/sci-libs/cfitsio/cfitsio-3.480.ebuild |
40 |
@@ -0,0 +1,71 @@ |
41 |
+# Copyright 1999-2020 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+inherit fortran-2 multilib-minimal |
47 |
+ |
48 |
+# Upstream call this release 3.480, but drop the 0 in the tarball filename |
49 |
+MY_PV="3.48" |
50 |
+MY_P="${PN}-${MY_PV}" |
51 |
+ |
52 |
+DESCRIPTION="C and Fortran library for manipulating FITS files" |
53 |
+HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html" |
54 |
+SRC_URI="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${MY_P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="ISC" |
57 |
+SLOT="0/8" |
58 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" |
59 |
+IUSE="bzip2 cpu_flags_x86_sse2 cpu_flags_x86_ssse3 curl" |
60 |
+ |
61 |
+BDEPEND=" |
62 |
+ sys-devel/bison |
63 |
+ sys-devel/flex |
64 |
+" |
65 |
+RDEPEND=" |
66 |
+ net-misc/curl[${MULTILIB_USEDEP}] |
67 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
68 |
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) |
69 |
+" |
70 |
+DEPEND=" |
71 |
+ ${RDEPEND} |
72 |
+ dev-lang/cfortran |
73 |
+" |
74 |
+ |
75 |
+S="${WORKDIR}/${MY_P}" |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ fortran-2_pkg_setup |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ # Avoid internal cfortran |
85 |
+ mv cfortran.h cfortran.h.disabled |
86 |
+ ln -s "${EPREFIX}"/usr/include/cfortran.h . || die |
87 |
+ |
88 |
+ multilib_copy_sources |
89 |
+} |
90 |
+ |
91 |
+multilib_src_configure() { |
92 |
+ ECONF_SOURCE="${S}" econf \ |
93 |
+ $(use_with bzip2) \ |
94 |
+ $(use_enable curl) \ |
95 |
+ $(use_enable cpu_flags_x86_sse2 sse2) \ |
96 |
+ $(use_enable cpu_flags_x86_ssse3 ssse3) |
97 |
+} |
98 |
+ |
99 |
+multilib_src_install_all() { |
100 |
+ dodoc README docs/changes.txt |
101 |
+ |
102 |
+ dodoc docs/{quick,cfitsio,fpackguide}.pdf |
103 |
+ dodoc docs/fitsio.pdf |
104 |
+ |
105 |
+ insinto /usr/share/doc/${PF}/examples |
106 |
+ doins cookbook.c testprog.c speed.c smem.c |
107 |
+ doins cookbook.f testf77.f |
108 |
+ |
109 |
+ # Remove static libs |
110 |
+ find "${ED}" -name '*.a' -delete || die |
111 |
+} |