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-libs/netcdf: ChangeLog netcdf-4.0.1-r1.ebuild netcdf-4.0.1.ebuild
Date: Thu, 28 Jan 2010 22:19:56
Message-Id: E1NaciN-0006I0-4z@stork.gentoo.org
1 bicatali 10/01/28 22:19:51
2
3 Modified: ChangeLog
4 Added: netcdf-4.0.1-r1.ebuild
5 Removed: netcdf-4.0.1.ebuild
6 Log:
7 Fixed for mpi, now uses exclusively system cfortran, and cleaned the pkg-config files. Thanks Xarthisius for his help.
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.64 sci-libs/netcdf/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/netcdf/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/netcdf/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/netcdf/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/netcdf/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 7 Dec 2009 17:53:00 -0000 1.63
24 +++ ChangeLog 28 Jan 2010 22:19:50 -0000 1.64
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-libs/netcdf
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/ChangeLog,v 1.63 2009/12/07 17:53:00 bicatali Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/ChangeLog,v 1.64 2010/01/28 22:19:50 bicatali Exp $
31 +
32 +*netcdf-4.0.1-r1 (28 Jan 2010)
33 +
34 + 28 Jan 2010; Sébastien Fabbro <bicatali@g.o> -netcdf-4.0.1.ebuild,
35 + +netcdf-4.0.1-r1.ebuild, +files/netcdf-4.0.1-cfortran.patch,
36 + +files/netcdf-4.0.1-pkgconfig.patch:
37 + Fixed for mpi, now uses exclusively system cfortran, and cleaned the
38 + pkg-config files. Thanks Xarthisius for his help.
39
40 07 Dec 2009; Sébastien Fabbro <bicatali@g.o>
41 -files/netcdf-3.6.2-as-needed.patch, -files/netcdf-3.6.2-gcc43.patch,
42
43
44
45 1.1 sci-libs/netcdf/netcdf-4.0.1-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: netcdf-4.0.1-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1-r1.ebuild,v 1.1 2010/01/28 22:19:50 bicatali Exp $
55
56 EAPI=2
57
58 inherit eutils autotools
59
60 DESCRIPTION="Scientific library and interface for array oriented data access"
61 SRC_URI="ftp://ftp.unidata.ucar.edu/pub/netcdf/${P}.tar.gz"
62 HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/"
63
64 LICENSE="UCAR-Unidata"
65 SLOT="0"
66 IUSE="doc fortran hdf5 mpi szip cxx"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
68
69 RDEPEND="hdf5? ( >=sci-libs/hdf5-1.8[zlib,szip?,mpi=] )"
70 DEPEND="${RDEPEND}
71 >=sys-devel/libtool-2.2
72 doc? ( virtual/latex-base )
73 fortran? ( dev-lang/cfortran )
74 mpi? ( virtual/mpi[cxx?,fortran?] )"
75
76 pkg_setup() {
77 if use mpi; then
78 export CC=mpicc
79 if use cxx; then
80 export CXX=mpicxx
81 fi
82 if use fortran; then
83 export FC=mpif90
84 export F77=mpif77
85 fi
86 fi
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${P}-as-needed.patch
91 epatch "${FILESDIR}"/${P}-cfortran.patch
92 epatch "${FILESDIR}"/${P}-pkgconfig.patch
93 # use system cfortran
94 rm -f fortran/cfortran.h || die
95 eautoreconf
96 }
97
98 src_configure() {
99 local myconf
100 if use hdf5; then
101 myconf="--with-hdf5=/usr --with-zlib=/usr"
102 use szip && myconf="${myconf} --with-szlib=/usr"
103 fi
104 econf \
105 --docdir=/usr/share/doc/${PF} \
106 --enable-shared \
107 $(use_enable fortran f77) \
108 $(use_enable fortran f90) \
109 $(use_enable cxx) \
110 $(use_enable fortran separate-fortran) \
111 $(use_enable hdf5 netcdf-4) \
112 $(use_enable hdf5 ncgen4) \
113 $(use_enable doc docs-install) \
114 ${myconf}
115 }
116
117 src_compile() {
118 # hack to allow parallel build
119 if use doc; then
120 emake pdf || die "emake pdf failed"
121 cd man4
122 emake -j1 || die "emake doc failed"
123 cd ..
124 fi
125 emake || die "emake failed"
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install || die "emake install failed"
130 dodoc README RELEASE_NOTES VERSION
131 }