Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/hdf5/files/, sci-libs/hdf5/
Date: Sat, 07 Jul 2012 00:48:42
Message-Id: 1341597007.aa8d1629a74fa1d78d505fee76946c82d828e111.bicatali@gentoo
1 commit: aa8d1629a74fa1d78d505fee76946c82d828e111
2 Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
3 AuthorDate: Fri Jul 6 17:50:07 2012 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 17:50:07 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=aa8d1629
7
8 sci-libs/hdf5: in main tree
9
10 ---
11 sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch | 22 -----
12 sci-libs/hdf5/files/hdf5-1.8.8-buildsystem.patch | 33 -------
13 sci-libs/hdf5/files/hdf5-1.8.9-implicits.patch | 55 -----------
14 sci-libs/hdf5/hdf5-1.8.9_pre14.ebuild | 101 ---------------------
15 sci-libs/hdf5/metadata.xml | 19 ----
16 5 files changed, 0 insertions(+), 230 deletions(-)
17
18 diff --git a/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch b/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch
19 deleted file mode 100644
20 index 042d012..0000000
21 --- a/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch
22 +++ /dev/null
23 @@ -1,22 +0,0 @@
24 ---- a/perform/pio_engine.c
25 -+++ b/perform/pio_engine.c
26 -@@ -454,7 +454,7 @@
27 - subdir = (user ? user : login);
28 -
29 - if (subdir) {
30 -- for (i = 0; i < size && prefix[i]; i++)
31 -+ for (i = 0; i < size-1 && prefix[i]; i++)
32 - fullname[i] = prefix[i];
33 -
34 - fullname[i++] = '/';
35 ---- a/perform/sio_engine.c
36 -+++ b/perform/sio_engine.c
37 -@@ -353,7 +353,7 @@
38 - subdir = (user ? user : login);
39 -
40 - if (subdir) {
41 -- for (i = 0; i < size && prefix[i]; i++)
42 -+ for (i = 0; i < size-1 && prefix[i]; i++)
43 - fullname[i] = prefix[i];
44 -
45 - fullname[i++] = '/';
46
47 diff --git a/sci-libs/hdf5/files/hdf5-1.8.8-buildsystem.patch b/sci-libs/hdf5/files/hdf5-1.8.8-buildsystem.patch
48 deleted file mode 100644
49 index 0f85cf5..0000000
50 --- a/sci-libs/hdf5/files/hdf5-1.8.8-buildsystem.patch
51 +++ /dev/null
52 @@ -1,33 +0,0 @@
53 -Prevent build system with messing up LD_LIBRARY_PATH
54 -
55 ---- a/configure.in
56 -+++ b/configure.in
57 -@@ -2328,8 +2328,6 @@
58 - dnl
59 - AC_MSG_CHECKING([how to print long long])
60 - AC_CACHE_VAL([hdf5_cv_printf_ll],
61 --LD_LIBRARY_PATH="$LD_LIBRARY_PATH`echo $AM_LDFLAGS $LDFLAGS | sed -e 's/-L/:/g' -e 's/ //g'`"
62 --export LD_LIBRARY_PATH
63 -
64 - for hdf5_cv_printf_ll in l ll L q unknown; do
65 - AC_TRY_RUN([
66 ---- a/src/Makefile.am
67 -+++ b/src/Makefile.am
68 -@@ -125,8 +125,6 @@
69 - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore
70 - # is set to ignore the error.
71 - H5Tinit.c: H5detect$(EXEEXT)
72 -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \
73 -- sed -e 's/-L/:/g' -e 's/ //g'`" \
74 - $(RUNSERIAL) ./H5detect$(EXEEXT) > $@ || \
75 - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
76 - ($(RM) $@ ; exit 1)
77 -@@ -137,8 +135,6 @@
78 - # Remove the generated .c file if errors occur unless HDF5_Make_Ignore
79 - # is set to ignore the error.
80 - H5lib_settings.c: H5make_libsettings$(EXEEXT) libhdf5.settings
81 -- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \
82 -- sed -e 's/-L/:/g' -e 's/ //g'`" \
83 - $(RUNSERIAL) ./H5make_libsettings$(EXEEXT) > $@ || \
84 - (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
85 - ($(RM) $@ ; exit 1)
86
87 diff --git a/sci-libs/hdf5/files/hdf5-1.8.9-implicits.patch b/sci-libs/hdf5/files/hdf5-1.8.9-implicits.patch
88 deleted file mode 100644
89 index 43e4f07..0000000
90 --- a/sci-libs/hdf5/files/hdf5-1.8.9-implicits.patch
91 +++ /dev/null
92 @@ -1,55 +0,0 @@
93 ---- b/configure.in
94 -+++ a/configure.in
95 -@@ -1499,6 +1499,9 @@
96 - dnl though we do not do this as it breaks the big test on older versions
97 - dnl of linux (CentOS 4.6) using newer versions of gcc (4.6.2).
98 - AM_CPPFLAGS="-D_BSD_SOURCE $AM_CPPFLAGS"
99 -+
100 -+ dnl _GNU_SOURCE is needed for vasprintf
101 -+ AM_CPPFLAGS="-D_GNU_SOURCE $AM_CPPFLAGS"
102 - ;;
103 - esac
104 -
105 ---- a/test/cache_common.h
106 -+++ b/test/cache_common.h
107 -@@ -702,5 +702,9 @@
108 - hbool_t compare_init,
109 - int test_num);
110 -
111 -+hbool_t resize_configs_are_equal(const H5C_auto_size_ctl_t *a,
112 -+ const H5C_auto_size_ctl_t *b,
113 -+ hbool_t compare_init);
114 -+
115 - #endif /* _CACHE_COMMON_H */
116 -
117 ---- a/tools/misc/talign.c
118 -+++ b/tools/misc/talign.c
119 -@@ -23,6 +23,7 @@
120 -
121 - #include "hdf5.h"
122 - #include "H5private.h"
123 -+#include "h5tools.h"
124 -
125 - const char *fname = "talign.h5";
126 - const char *setname = "align";
127 ---- a/tools/h5repack/testh5repack_detect_szip.c
128 -+++ b/tools/h5repack/testh5repack_detect_szip.c
129 -@@ -17,6 +17,7 @@
130 - #include "h5repack.h"
131 - #include "h5tools.h"
132 - #include "h5test.h"
133 -+#include "h5tools_utils.h"
134 -
135 -
136 - /* Name of tool */
137 ---- a/hl/src/H5LTanalyze.c
138 -+++ b/hl/src/H5LTanalyze.c
139 -@@ -49,7 +49,8 @@
140 - #define YY_FLEX_MINOR_VERSION 5
141 -
142 - #include <stdio.h>
143 -+#include "H5pubconf.h"
144 - #ifdef H5_HAVE_UNISTD_H
145 - #include <unistd.h>
146 - #endif
147 -
148
149 diff --git a/sci-libs/hdf5/hdf5-1.8.9_pre14.ebuild b/sci-libs/hdf5/hdf5-1.8.9_pre14.ebuild
150 deleted file mode 100644
151 index 702301a..0000000
152 --- a/sci-libs/hdf5/hdf5-1.8.9_pre14.ebuild
153 +++ /dev/null
154 @@ -1,101 +0,0 @@
155 -# Copyright 1999-2012 Gentoo Foundation
156 -# Distributed under the terms of the GNU General Public License v2
157 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.8.ebuild,v 1.4 2011/12/05 16:56:26 xarthisius Exp $
158 -
159 -EAPI=4
160 -
161 -inherit autotools eutils fortran-2 toolchain-funcs versionator
162 -
163 -MY_PV=$(replace_version_separator 3 '-')
164 -MY_PV=${MY_PV/pre/snap}
165 -MYP=${PN}-${MY_PV}
166 -VER=$(get_version_component_range 1-2)
167 -VER=v${VER/./}
168 -
169 -DESCRIPTION="General purpose library and file format for storing scientific data"
170 -HOMEPAGE="http://www.hdfgroup.org/HDF5/"
171 -SRC_URI="http://www.hdfgroup.uiuc.edu/ftp/pub/outgoing/${PN}/snapshots/${VER}/${MYP}.tar.bz2"
172 -
173 -LICENSE="NCSA-HDF"
174 -SLOT="0"
175 -KEYWORDS=""
176 -IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
177 -REQUIRED_USE="cxx? ( !mpi ) mpi? ( !cxx )
178 - threads? ( !cxx !mpi !fortran )
179 - fortran2003? ( fortran )"
180 -
181 -RDEPEND="fortran? ( virtual/fortran )
182 - mpi? ( virtual/mpi[romio] )
183 - szip? ( >=sci-libs/szip-2.1 )
184 - zlib? ( sys-libs/zlib )"
185 -
186 -DEPEND="${RDEPEND}
187 - sys-devel/libtool:2"
188 -
189 -S=${WORKDIR}/${MYP}
190 -
191 -pkg_setup() {
192 - tc-export CXX CC FC # workaround for bug 285148
193 - if use fortran; then
194 - use fortran2003 && FORTRAN_STANDARD=2003
195 - fortran-2_pkg_setup
196 - fi
197 - if use mpi; then
198 - if has_version 'sci-libs/hdf5[-mpi]'; then
199 - ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
200 - ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
201 - fi
202 - export CC=mpicc
203 - use fortran && export FC=mpif90
204 - elif has_version 'sci-libs/hdf5[mpi]'; then
205 - ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
206 - ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
207 - fi
208 -}
209 -
210 -src_prepare() {
211 - epatch "${FILESDIR}"/${PN}-1.8.8-buildsystem.patch \
212 - "${FILESDIR}"/${PN}-1.8.8-array_bounds.patch \
213 - "${FILESDIR}"/${PN}-1.8.9-implicits.patch
214 - # respect gentoo examples directory
215 - sed \
216 - -e "s:hdf5_examples:doc/${PF}/examples:g" \
217 - -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
218 - sed \
219 - -e '/docdir/d' \
220 - -i config/commence.am || die
221 - eautoreconf
222 - # enable shared libs by default for h5cc config utility
223 - sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
224 -}
225 -
226 -src_configure() {
227 - econf \
228 - --disable-sharedlib-rpath \
229 - --enable-production \
230 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
231 - --enable-deprecated-symbols \
232 - --enable-shared \
233 - --disable-silent-rules \
234 - $(use_enable static-libs static) \
235 - $(use_enable debug debug all) \
236 - $(use_enable debug codestack) \
237 - $(use_enable cxx) \
238 - $(use_enable fortran) \
239 - $(use_enable fortran2003) \
240 - $(use_enable mpi parallel) \
241 - $(use_enable threads threadsafe) \
242 - $(use_with szip szlib) \
243 - $(use_with threads pthread) \
244 - $(use_with zlib) \
245 - ${myconf}
246 -}
247 -
248 -src_install() {
249 - default
250 - use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
251 -
252 - if use examples; then
253 - emake DESTDIR="${D}" install-examples
254 - fi
255 -}
256
257 diff --git a/sci-libs/hdf5/metadata.xml b/sci-libs/hdf5/metadata.xml
258 deleted file mode 100644
259 index 6b6f687..0000000
260 --- a/sci-libs/hdf5/metadata.xml
261 +++ /dev/null
262 @@ -1,19 +0,0 @@
263 -<?xml version="1.0" encoding="UTF-8"?>
264 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
265 -<pkgmetadata>
266 - <herd>sci</herd>
267 - <maintainer>
268 - <email>xarthisius@g.o</email>
269 - <name>Kacper Kowalik</name>
270 - </maintainer>
271 - <longdescription>
272 - HDF5 is a file format and library for storing scientific data. HDF5
273 - was designed and implemented to address the deficiencies of HDF4.x. It
274 - has a more powerful and flexible data model, supports files larger
275 - than 2 GB, and supports parallel I/O.
276 - </longdescription>
277 - <use>
278 - <flag name="fortran2003">enable new features that require Fortran 2003
279 - (http://www.hdfgroup.org/HDF5/doc/fortran/NewFeatures_F2003.pdf)</flag>
280 - </use>
281 -</pkgmetadata>