Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-astronomy/wcslib: wcslib-4.23.ebuild ChangeLog
Date: Wed, 28 May 2014 16:15:08
Message-Id: 20140528161504.AB40A2004E@flycatcher.gentoo.org
1 bicatali 14/05/28 16:15:04
2
3 Modified: ChangeLog
4 Added: wcslib-4.23.ebuild
5 Log:
6 Version bump
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.41 sci-astronomy/wcslib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 6 May 2014 15:55:36 -0000 1.40
24 +++ ChangeLog 28 May 2014 16:15:04 -0000 1.41
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-astronomy/wcslib
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v 1.40 2014/05/06 15:55:36 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v 1.41 2014/05/28 16:15:04 bicatali Exp $
30 +
31 +*wcslib-4.23 (28 May 2014)
32 +
33 + 28 May 2014; Sébastien Fabbro <bicatali@g.o> +wcslib-4.23.ebuild:
34 + Version bump
35
36 *wcslib-4.22 (06 May 2014)
37
38
39
40
41 1.1 sci-astronomy/wcslib/wcslib-4.23.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/wcslib-4.23.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/wcslib-4.23.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wcslib-4.23.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/wcslib-4.23.ebuild,v 1.1 2014/05/28 16:15:04 bicatali Exp $
51
52 EAPI=5
53
54 FORTRAN_NEEDED=fortran
55
56 inherit eutils fortran-2 multilib
57
58 DESCRIPTION="Astronomical World Coordinate System transformations library"
59 HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
60 SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
61
62 SLOT="0/4"
63 LICENSE="LGPL-3"
64 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
65 IUSE="doc fortran fits pgplot static-libs"
66
67 RDEPEND="
68 fits? ( sci-libs/cfitsio:0= )
69 pgplot? ( sci-libs/pgplot:0= )"
70 DEPEND="${RDEPEND}
71 sys-devel/flex
72 virtual/pkgconfig"
73
74 src_prepare() {
75 sed -i -e 's/COPYING\*//' GNUmakefile || die
76 }
77
78 src_configure() {
79 local myconf=(
80 --docdir="${EPREFIX}"/usr/share/doc/${PF}
81 $(use_enable static-libs static)
82 $(use_enable fortran)
83 )
84 # hacks because cfitsio and pgplot directories are hard-coded
85 if use fits; then
86 myconf+=(
87 --with-cfitsioinc="${EPREFIX}/usr/include"
88 --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)"
89 )
90 else
91 myconf+=( --without-cfitsio )
92 fi
93 if use pgplot; then
94 myconf+=(
95 --with-pgplotinc="${EPREFIX}/usr/include"
96 --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)"
97 )
98 else
99 myconf+=( --without-pgplot )
100 fi
101 econf ${myconf[@]}
102 }
103
104 src_compile() {
105 # nasty makefile, debugging means probably full rewrite
106 emake -j1
107 }
108
109 src_test() {
110 emake -j1 check
111 }
112
113 src_install () {
114 default
115 # static libs are same as shared (compiled with PIC)
116 # so they are not compiled twice
117 use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a
118 use doc || rm -r \
119 "${ED}"/usr/share/doc/${PF}/html \
120 "${ED}"/usr/share/doc/${PF}/*.pdf
121 }