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.19.ebuild ChangeLog
Date: Fri, 22 Nov 2013 19:48:26
Message-Id: 20131122194822.F1FE82004B@flycatcher.gentoo.org
1 bicatali 13/11/22 19:48:22
2
3 Modified: ChangeLog
4 Added: wcslib-4.19.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.37 sci-astronomy/wcslib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 8 Jul 2013 17:24:22 -0000 1.36
24 +++ ChangeLog 22 Nov 2013 19:48:22 -0000 1.37
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-astronomy/wcslib
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v 1.36 2013/07/08 17:24:22 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/wcslib/ChangeLog,v 1.37 2013/11/22 19:48:22 bicatali Exp $
30 +
31 +*wcslib-4.19 (22 Nov 2013)
32 +
33 + 22 Nov 2013; Sébastien Fabbro <bicatali@g.o> +wcslib-4.19.ebuild:
34 + Version bump
35
36 08 Jul 2013; Sébastien Fabbro <bicatali@g.o> -wcslib-4.16.ebuild:
37 Version bump
38
39
40
41 1.1 sci-astronomy/wcslib/wcslib-4.19.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/wcslib-4.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/wcslib/wcslib-4.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wcslib-4.19.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.19.ebuild,v 1.1 2013/11/22 19:48:22 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 )
69 pgplot? ( sci-libs/pgplot )"
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 # hacks because cfitsio and pgplot directories are hard-coded
81 if use fits; then
82 myconf+=(
83 --with-cfitsioinc="${EROOT}/usr/include"
84 --with-cfitsiolib="${EROOT}/usr/$(get_libdir)"
85 )
86 else
87 myconf+=( --without-cfitsio )
88 fi
89 if use pgplot; then
90 myconf+=(
91 --with-pgplotinc="${EROOT}/usr/include"
92 --with-pgplotlib="${EROOT}/usr/$(get_libdir)"
93 )
94 else
95 myconf+=( --without-pgplot )
96 fi
97 econf \
98 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
99 $(use_enable static-libs static) \
100 $(use_enable fortran) \
101 ${myconf[@]}
102 }
103
104 src_compile() {
105 # nasty makefile, debugging means 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 "${ED}"/usr/share/doc/${PF}/html \
119 "${ED}"/usr/share/doc/${PF}/*.pdf
120 }