Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcslib/
Date: Sat, 09 Jan 2021 04:21:58
Message-Id: 1610166107.eae97f44bad07f4bb930f2f15b25b806dc9be268.sam@gentoo
1 commit: eae97f44bad07f4bb930f2f15b25b806dc9be268
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 5 20:31:35 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 9 04:21:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eae97f44
7
8 sci-astronomy/wcslib: verbump to 7.3.1
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/18959
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 sci-astronomy/wcslib/Manifest | 1 +
16 sci-astronomy/wcslib/wcslib-7.3.1.ebuild | 66 ++++++++++++++++++++++++++++++++
17 2 files changed, 67 insertions(+)
18
19 diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest
20 index 5216dd92ca3..d42974ef89b 100644
21 --- a/sci-astronomy/wcslib/Manifest
22 +++ b/sci-astronomy/wcslib/Manifest
23 @@ -1 +1,2 @@
24 +DIST wcslib-7.3.1.tar.bz2 2434274 BLAKE2B 9789a8eb34fe37c96b52e20efe3c14368499058e5c46aad4853b2be5f32a31df26525ec2c38d0ce87bcb7891b91a3ec3ac537e3c662c716a7c4381f26cd715e4 SHA512 753e0e202fb4250d321c36a0df9cd45ed88697111a06e108bc3e5397ddecc60d460cda2b4d45b5311dd72b88b66d4c70ff150b03e2da46c834b024f15304779b
25 DIST wcslib-7.3.tar.bz2 2435669 BLAKE2B c0f641b4c2fdd9d332816195f399eb2ab3c5aa585f08c4857af77bd5ed4074e653663f7cbddc6d7678cd85bed2c0bd95719cd83a5138d21ad24841396d4c11b9 SHA512 8c98c4b575056e2d966b77a4bc951256d02ecee3a11847e140fd38d93afd0f76b3e906d590c952dc9fc58ceeb1ba062b19d8e1e676ee0032f5b7ed13a9dfa892
26
27 diff --git a/sci-astronomy/wcslib/wcslib-7.3.1.ebuild b/sci-astronomy/wcslib/wcslib-7.3.1.ebuild
28 new file mode 100644
29 index 00000000000..a7feb7d418e
30 --- /dev/null
31 +++ b/sci-astronomy/wcslib/wcslib-7.3.1.ebuild
32 @@ -0,0 +1,66 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +FORTRAN_NEEDED=fortran
39 +
40 +inherit fortran-2
41 +
42 +DESCRIPTION="Astronomical World Coordinate System transformations library"
43 +HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/"
44 +SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
45 +
46 +SLOT="0/7"
47 +LICENSE="LGPL-3"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="doc fortran fits pgplot static-libs +tools"
50 +
51 +RDEPEND="
52 + fits? ( sci-libs/cfitsio:0= )
53 + pgplot? ( sci-libs/pgplot:0= )"
54 +DEPEND="${RDEPEND}
55 + sys-devel/flex
56 + virtual/pkgconfig"
57 +
58 +src_configure() {
59 + local myconf=(
60 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
61 + --htmldir="${EPREFIX}"/usr/share/doc/${PF}
62 + $(use_enable fortran)
63 + $(use_enable tools utils)
64 + )
65 + # hacks because cfitsio and pgplot directories are hard-coded
66 + if use fits; then
67 + myconf+=(
68 + --with-cfitsioinc="${EPREFIX}/usr/include"
69 + --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)"
70 + )
71 + else
72 + myconf+=( --without-cfitsio )
73 + fi
74 + if use pgplot; then
75 + myconf+=(
76 + --with-pgplotinc="${EPREFIX}/usr/include"
77 + --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)"
78 + )
79 + else
80 + myconf+=( --without-pgplot )
81 + fi
82 + econf ${myconf[@]}
83 + sed -i -e 's/COPYING\*//' GNUmakefile || die
84 +}
85 +
86 +src_test() {
87 + emake check
88 +}
89 +
90 +src_install () {
91 + default
92 + # static libs share the same symbols as shared (i.e. compiled with PIC)
93 + # so they are not compiled twice
94 + use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a
95 + use doc || rm -r \
96 + "${ED}"/usr/share/doc/${PF}/html \
97 + "${ED}"/usr/share/doc/${PF}/*.pdf
98 +}