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: hdf5-1.8.10_p1.ebuild ChangeLog
Date: Mon, 28 Jan 2013 19:41:07
Message-Id: 20130128194103.964372171D@flycatcher.gentoo.org
1 xarthisius 13/01/28 19:41:03
2
3 Modified: ChangeLog
4 Added: hdf5-1.8.10_p1.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 895192F9)
9
10 Revision Changes Path
11 1.112 sci-libs/hdf5/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 4 Jan 2013 20:09:11 -0000 1.111
24 +++ ChangeLog 28 Jan 2013 19:41:03 -0000 1.112
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/hdf5
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.111 2013/01/04 20:09:11 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.112 2013/01/28 19:41:03 xarthisius Exp $
30 +
31 +*hdf5-1.8.10_p1 (28 Jan 2013)
32 +
33 + 28 Jan 2013; Kacper Kowalik <xarthisius@g.o>
34 + +files/hdf5-1.8.10_p1-comments.patch, +hdf5-1.8.10_p1.ebuild:
35 + Version bump
36
37 04 Jan 2013; Agostino Sarubbo <ago@g.o> hdf5-1.8.10.ebuild:
38 Stable for ia64, wrt bug #449332
39
40
41
42 1.1 sci-libs/hdf5/hdf5-1.8.10_p1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.10_p1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.10_p1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: hdf5-1.8.10_p1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.10_p1.ebuild,v 1.1 2013/01/28 19:41:03 xarthisius Exp $
52
53 EAPI=4
54
55 FORTRAN_NEEDED=fortran
56 MY_P=${PN}-${PV/_p/-patch}
57
58 inherit autotools eutils fortran-2 flag-o-matic toolchain-funcs multilib
59
60 DESCRIPTION="General purpose library and file format for storing scientific data"
61 HOMEPAGE="http://www.hdfgroup.org/HDF5/"
62 SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MY_P}/src/${MY_P}.tar.bz2"
63
64 LICENSE="NCSA-HDF"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
67 IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
68
69 REQUIRED_USE="
70 cxx? ( !mpi ) mpi? ( !cxx )
71 threads? ( !cxx !mpi !fortran )
72 fortran2003? ( fortran )"
73
74 RDEPEND="
75 mpi? ( virtual/mpi[romio] )
76 szip? ( >=sci-libs/szip-2.1 )
77 zlib? ( sys-libs/zlib )"
78
79 DEPEND="${RDEPEND}
80 sys-devel/libtool:2
81 >=sys-devel/autoconf-2.69"
82
83 pkg_setup() {
84 tc-export CXX CC AR # workaround for bug 285148
85 if use fortran; then
86 use fortran2003 && FORTRAN_STANDARD=2003
87 fortran-2_pkg_setup
88 fi
89 if use mpi; then
90 if has_version 'sci-libs/hdf5[-mpi]'; then
91 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
92 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
93 fi
94 export CC=mpicc
95 use fortran && export FC=mpif90
96 elif has_version 'sci-libs/hdf5[mpi]'; then
97 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
98 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
99 fi
100 }
101
102 S=${WORKDIR}/${MY_P}
103
104 src_prepare() {
105 epatch "${FILESDIR}"/${PN}-1.8.10-buildsystem.patch \
106 "${FILESDIR}"/${PN}-1.8.8-array_bounds.patch \
107 "${FILESDIR}"/${PN}-1.8.10-implicits.patch \
108 "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch \
109 "${FILESDIR}"/${PN}-1.8.9-mpicxx.patch \
110 "${FILESDIR}"/${P}-comments.patch
111 # respect gentoo examples directory
112 sed \
113 -e "s:hdf5_examples:doc/${PF}/examples:g" \
114 -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
115 sed \
116 -e '/docdir/d' \
117 -i config/commence.am || die
118 if ! use examples; then
119 sed -e '/^install:/ s/install-examples//' \
120 -i Makefile.am || die #409091
121 fi
122 eautoreconf
123 # enable shared libs by default for h5cc config utility
124 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
125 # bug #419677
126 use prefix && \
127 append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir) \
128 -Wl,-rpath,"${EPREFIX}"/$(get_libdir)
129 }
130
131 src_configure() {
132 econf \
133 --enable-production \
134 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
135 --enable-deprecated-symbols \
136 --enable-shared \
137 --disable-silent-rules \
138 $(use_enable prefix sharedlib-rpath) \
139 $(use_enable static-libs static) \
140 $(use_enable debug debug all) \
141 $(use_enable debug codestack) \
142 $(use_enable cxx) \
143 $(use_enable fortran) \
144 $(use_enable fortran2003) \
145 $(use_enable mpi parallel) \
146 $(use_enable threads threadsafe) \
147 $(use_with szip szlib) \
148 $(use_with threads pthread) \
149 $(use_with zlib) \
150 ${myconf}
151 }
152
153 src_install() {
154 default
155 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
156 }
157
158 pkg_postinst() {
159 if has_version "sci-libs/hdf5"; then
160 ewarn "You have upgraded hdf5 from previous version and the software"
161 ewarn "using it may start complaining about mismatch between headers"
162 ewarn "and library version. You have two options:"
163 ewarn " 1. export HDF5_DISABLE_VERSION_CHECK=2 to get rid of the"
164 ewarn " warning/error message"
165 ewarn " 2. re-emerge all reverse dependencies (type"
166 ewarn " 'emerge --depclean -pv sci-libs/hdf5' to get the list)"
167 fi
168 }