Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/wcslib/
Date: Thu, 18 Feb 2016 18:11:26
Message-Id: 1455822457.ece6bbd2240c21bd8df6db7cf367386ba25345ae.bicatali@gentoo
1 commit: ece6bbd2240c21bd8df6db7cf367386ba25345ae
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 19:07:37 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 19:07:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ece6bbd2
7
8 sci-astronly/wcslib: version bump
9
10 Package-Manager: portage-2.2.27
11
12 sci-astronomy/wcslib/Manifest | 1 +
13 sci-astronomy/wcslib/metadata.xml | 3 ++
14 sci-astronomy/wcslib/wcslib-5.14.ebuild | 72 +++++++++++++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest
18 index 469c65a..c70ed80 100644
19 --- a/sci-astronomy/wcslib/Manifest
20 +++ b/sci-astronomy/wcslib/Manifest
21 @@ -1 +1,2 @@
22 DIST wcslib-4.25.1.tar.bz2 2027340 SHA256 1e5127513c2f402a30daa280f5b4f6da53e73484cbc8085868bc432f807c8495 SHA512 0ed9eeb4b84d2f022394a1ccd04db8a62cb4593d43c5c12e0034f27a12d52cc8c8bf4b14f5d30f71e933682809e3dac5377be1c69bfc6321f6d96b91f6f1da3c WHIRLPOOL 75785c8687cfad92ba6d33444757005c13346188a46913b38afb66997676bae5284e27ccd7f348e88a9d14b6c27d522a06d37e744a5a258e76ef3ed73cefb262
23 +DIST wcslib-5.14.tar.bz2 2221717 SHA256 4d3f12d2636bb75488eaaa3ed435d7664d2c26a73a67ac1f7d5f3e530f39e37f SHA512 431693cffcc7a9f2b29040a34f7dbac2f3360b094a42467f7378523c15260ffb3c0ad330e07077a40bf694956fae2371550d6583580f0bcc16ec47f9fbc5bc28 WHIRLPOOL 2acf5040b4960c001b7076189c1da4dd6b327257295dcdfa8a89d553a93f0980b0e62d66aec244a9cc8af70cc62b0497362839f26bb6cc6517e219ba55b73e93
24
25 diff --git a/sci-astronomy/wcslib/metadata.xml b/sci-astronomy/wcslib/metadata.xml
26 index a599762..f74e784 100644
27 --- a/sci-astronomy/wcslib/metadata.xml
28 +++ b/sci-astronomy/wcslib/metadata.xml
29 @@ -19,5 +19,8 @@
30 <flag name="pgplot">
31 Builds PGBSOX routines, needs <pkg>sci-libs/pgplot</pkg> library
32 </flag>
33 + <flag name="tools">
34 + Builds and installs extra command line utilities for WCS checking
35 + </flag>
36 </use>
37 </pkgmetadata>
38
39 diff --git a/sci-astronomy/wcslib/wcslib-5.14.ebuild b/sci-astronomy/wcslib/wcslib-5.14.ebuild
40 new file mode 100644
41 index 0000000..e05fe6f
42 --- /dev/null
43 +++ b/sci-astronomy/wcslib/wcslib-5.14.ebuild
44 @@ -0,0 +1,72 @@
45 +# Copyright 1999-2016 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Id$
48 +
49 +EAPI=6
50 +
51 +FORTRAN_NEEDED=fortran
52 +
53 +inherit fortran-2
54 +
55 +DESCRIPTION="Astronomical World Coordinate System transformations library"
56 +HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
57 +SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
58 +
59 +SLOT="0/5"
60 +LICENSE="LGPL-3"
61 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
62 +IUSE="doc fortran fits pgplot static-libs +tools"
63 +
64 +RDEPEND="
65 + fits? ( sci-libs/cfitsio:0= )
66 + pgplot? ( sci-libs/pgplot:0= )"
67 +DEPEND="${RDEPEND}
68 + sys-devel/flex
69 + virtual/pkgconfig"
70 +
71 +src_configure() {
72 + local myconf=(
73 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
74 + --htmldir="${EPREFIX}"/usr/share/doc/${PF}
75 + $(use_enable fortran)
76 + $(use_enable tools utils)
77 + )
78 + # hacks because cfitsio and pgplot directories are hard-coded
79 + if use fits; then
80 + myconf+=(
81 + --with-cfitsioinc="${EPREFIX}/usr/include"
82 + --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)"
83 + )
84 + else
85 + myconf+=( --without-cfitsio )
86 + fi
87 + if use pgplot; then
88 + myconf+=(
89 + --with-pgplotinc="${EPREFIX}/usr/include"
90 + --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)"
91 + )
92 + else
93 + myconf+=( --without-pgplot )
94 + fi
95 + econf ${myconf[@]}
96 + sed -i -e 's/COPYING\*//' GNUmakefile || die
97 +}
98 +
99 +src_compile() {
100 + # nasty makefile, debugging means probably full rewrite
101 + emake -j1
102 +}
103 +
104 +src_test() {
105 + emake -j1 check
106 +}
107 +
108 +src_install () {
109 + default
110 + # static libs share the same symbols as shared (i.e. compiled with PIC)
111 + # so they are not compiled twice
112 + use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a
113 + use doc || rm -r \
114 + "${ED}"/usr/share/doc/${PF}/html \
115 + "${ED}"/usr/share/doc/${PF}/*.pdf
116 +}