Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/hdf5: metadata.xml hdf5-1.8.8.ebuild ChangeLog
Date: Thu, 17 Nov 2011 12:19:50
Message-Id: 20111117121937.A313E2004C@flycatcher.gentoo.org
1 xarthisius 11/11/17 12:19:37
2
3 Modified: metadata.xml ChangeLog
4 Added: hdf5-1.8.8.ebuild
5 Log:
6 Version bump wrt #390811 by Tolga Dalman, fixes bug #383843 by Cedric
7
8 (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.9 sci-libs/hdf5/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/metadata.xml?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/metadata.xml?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/metadata.xml?r1=1.8&r2=1.9
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/metadata.xml,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- metadata.xml 26 Jun 2011 09:30:00 -0000 1.8
24 +++ metadata.xml 17 Nov 2011 12:19:37 -0000 1.9
25 @@ -2,10 +2,18 @@
26 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
27 <pkgmetadata>
28 <herd>sci</herd>
29 + <maintainer>
30 + <email>xarthisius@g.o</email>
31 + <name>Kacper Kowalik</name>
32 + </maintainer>
33 <longdescription>
34 - HDF5 is a file format and library for storing scientific data. HDF5
35 - was designed and implemented to address the deficiencies of HDF4.x. It
36 - has a more powerful and flexible data model, supports files larger
37 - than 2 GB, and supports parallel I/O.
38 -</longdescription>
39 + HDF5 is a file format and library for storing scientific data. HDF5
40 + was designed and implemented to address the deficiencies of HDF4.x. It
41 + has a more powerful and flexible data model, supports files larger
42 + than 2 GB, and supports parallel I/O.
43 + </longdescription>
44 + <use>
45 + <flag name="fortran2003">enable new features that require Fortran 2003
46 + (http://www.hdfgroup.org/HDF5/doc/fortran/NewFeatures_F2003.pdf)</flag>
47 + </use>
48 </pkgmetadata>
49
50
51
52 1.76 sci-libs/hdf5/ChangeLog
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.76&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.76&content-type=text/plain
56 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?r1=1.75&r2=1.76
57
58 Index: ChangeLog
59 ===================================================================
60 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v
61 retrieving revision 1.75
62 retrieving revision 1.76
63 diff -u -r1.75 -r1.76
64 --- ChangeLog 23 Oct 2011 11:40:12 -0000 1.75
65 +++ ChangeLog 17 Nov 2011 12:19:37 -0000 1.76
66 @@ -1,6 +1,12 @@
67 # ChangeLog for sci-libs/hdf5
68 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
69 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.75 2011/10/23 11:40:12 scarabeus Exp $
70 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.76 2011/11/17 12:19:37 xarthisius Exp $
71 +
72 +*hdf5-1.8.8 (17 Nov 2011)
73 +
74 + 17 Nov 2011; Kacper Kowalik <xarthisius@g.o>
75 + +files/hdf5-1.8.8-buildsystem.patch, +hdf5-1.8.8.ebuild, metadata.xml:
76 + Version bump wrt #390811 by Tolga Dalman, fixes bug #383843 by Cedric
77
78 23 Oct 2011; Tomáš Chvátal <scarabeus@g.o> -hdf5-1.8.6.ebuild,
79 hdf5-1.8.7.ebuild:
80
81
82
83 1.1 sci-libs/hdf5/hdf5-1.8.8.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.8.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.8.ebuild?rev=1.1&content-type=text/plain
87
88 Index: hdf5-1.8.8.ebuild
89 ===================================================================
90 # Copyright 1999-2011 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.8.ebuild,v 1.1 2011/11/17 12:19:37 xarthisius Exp $
93
94 EAPI=4
95
96 inherit autotools eutils fortran-2
97
98 DESCRIPTION="General purpose library and file format for storing scientific data"
99 HOMEPAGE="http://www.hdfgroup.org/HDF5/"
100 SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${P}/src/${P}.tar.bz2"
101
102 LICENSE="NCSA-HDF"
103 SLOT="0"
104 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
105 IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
106 REQUIRED_USE="fortran2003? ( fortran )"
107
108 RDEPEND="
109 fortran? ( virtual/fortran )
110 mpi? ( virtual/mpi[romio] )
111 szip? ( >=sci-libs/szip-2.1 )
112 zlib? ( sys-libs/zlib )"
113
114 DEPEND="${RDEPEND}
115 sys-devel/libtool:2"
116
117 pkg_setup() {
118 if use fortran; then
119 use fortran2003 && FORTRAN_STANDARD=2003
120 fortran-2_pkg_setup
121 fi
122 if use mpi; then
123 if has_version 'sci-libs/hdf5[-mpi]'; then
124 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
125 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
126 fi
127 if use cxx; then
128 ewarn "Simultaneous mpi and cxx is not supported by ${PN}"
129 ewarn "Will disable cxx interface"
130 fi
131 export CC=mpicc
132 use fortran && export FC=mpif90
133 elif has_version 'sci-libs/hdf5[mpi]'; then
134 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
135 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
136 fi
137 }
138
139 src_prepare() {
140 epatch "${FILESDIR}"/${P}-buildsystem.patch
141 # respect gentoo examples directory
142 sed \
143 -e "s:hdf5_examples:doc/${PF}/examples:g" \
144 -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
145 sed \
146 -e '/docdir/d' \
147 -i config/commence.am || die
148 eautoreconf
149 # enable shared libs by default for h5cc config utility
150 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
151 }
152
153 src_configure() {
154 # threadsafe incompatible with many options
155 local myconf="--disable-threadsafe"
156 use debug && myconf="${myconf} --enable-codestack"
157 use threads && ! use fortran && ! use cxx && ! use mpi \
158 && myconf="--enable-threadsafe"
159
160 if use mpi; then
161 myconf="${myconf} --disable-cxx"
162 else
163 # workaround for bug 285148
164 if use cxx; then
165 myconf="${myconf} $(use_enable cxx) CXX=$(tc-getCXX)"
166 fi
167 if use fortran; then
168 myconf="${myconf} FC=$(tc-getFC)"
169 fi
170 fi
171
172 econf \
173 --disable-sharedlib-rpath \
174 --enable-production \
175 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
176 --enable-deprecated-symbols \
177 --enable-shared \
178 --disable-silent-rules \
179 $(use_enable static-libs static) \
180 $(use_enable debug debug all) \
181 $(use_enable fortran) \
182 $(use_enable fortran2003) \
183 $(use_enable mpi parallel) \
184 $(use_with szip szlib) \
185 $(use_with threads pthread) \
186 $(use_with zlib) \
187 ${myconf}
188 }
189
190 src_install() {
191 default
192 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
193
194 if use examples; then
195 emake DESTDIR="${D}" install-examples
196 fi
197 }