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.9-r1.ebuild ChangeLog hdf5-1.8.9.ebuild
Date: Wed, 06 Jun 2012 19:41:12
Message-Id: 20120606194027.B1BBF2004B@flycatcher.gentoo.org
1 xarthisius 12/06/06 19:40:27
2
3 Modified: ChangeLog
4 Added: hdf5-1.8.9-r1.ebuild
5 Removed: hdf5-1.8.9.ebuild
6 Log:
7 Don't disable rpath for shared libraries wrt #419677 by William Throwe <wtt6@×××××××.edu>
8
9 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.86 sci-libs/hdf5/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.86&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.86&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?r1=1.85&r2=1.86
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v
21 retrieving revision 1.85
22 retrieving revision 1.86
23 diff -u -r1.85 -r1.86
24 --- ChangeLog 30 May 2012 16:44:17 -0000 1.85
25 +++ ChangeLog 6 Jun 2012 19:40:27 -0000 1.86
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sci-libs/hdf5
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.85 2012/05/30 16:44:17 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.86 2012/06/06 19:40:27 xarthisius Exp $
31 +
32 +*hdf5-1.8.9-r1 (06 Jun 2012)
33 +
34 + 06 Jun 2012; Kacper Kowalik <xarthisius@g.o> +hdf5-1.8.9-r1.ebuild,
35 + -hdf5-1.8.9.ebuild:
36 + Don't disable rpath for shared libraries wrt #419677 by William Throwe
37 + <wtt6@×××××××.edu>
38
39 *hdf5-1.8.9 (30 May 2012)
40
41
42
43
44 1.1 sci-libs/hdf5/hdf5-1.8.9-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.9-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.9-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: hdf5-1.8.9-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.9-r1.ebuild,v 1.1 2012/06/06 19:40:27 xarthisius Exp $
54
55 EAPI=4
56
57 inherit autotools eutils fortran-2 toolchain-funcs
58
59 DESCRIPTION="General purpose library and file format for storing scientific data"
60 HOMEPAGE="http://www.hdfgroup.org/HDF5/"
61 SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${P}/src/${P}.tar.bz2"
62
63 LICENSE="NCSA-HDF"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
66 IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
67 REQUIRED_USE="cxx? ( !mpi ) mpi? ( !cxx )
68 threads? ( !cxx !mpi !fortran )
69 fortran2003? ( fortran )"
70
71 RDEPEND="
72 fortran? ( virtual/fortran )
73 mpi? ( virtual/mpi[romio] )
74 szip? ( >=sci-libs/szip-2.1 )
75 zlib? ( sys-libs/zlib )"
76
77 DEPEND="${RDEPEND}
78 sys-devel/libtool:2"
79
80 pkg_setup() {
81 tc-export CXX CC FC # workaround for bug 285148
82 if use fortran; then
83 use fortran2003 && FORTRAN_STANDARD=2003
84 fortran-2_pkg_setup
85 fi
86 if use mpi; then
87 if has_version 'sci-libs/hdf5[-mpi]'; then
88 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
89 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
90 fi
91 export CC=mpicc
92 use fortran && export FC=mpif90
93 elif has_version 'sci-libs/hdf5[mpi]'; then
94 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
95 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
96 fi
97 }
98
99 src_prepare() {
100 epatch "${FILESDIR}"/${PN}-1.8.8-buildsystem.patch \
101 "${FILESDIR}"/${PN}-1.8.8-array_bounds.patch \
102 "${FILESDIR}"/${P}-implicits.patch
103 # respect gentoo examples directory
104 sed \
105 -e "s:hdf5_examples:doc/${PF}/examples:g" \
106 -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
107 sed \
108 -e '/docdir/d' \
109 -i config/commence.am || die
110 if ! use examples; then
111 sed -e '/^install:/ s/install-examples//' \
112 -i Makefile.am || die #409091
113 fi
114 eautoreconf
115 # enable shared libs by default for h5cc config utility
116 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
117 }
118
119 src_configure() {
120 econf \
121 --enable-production \
122 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
123 --enable-deprecated-symbols \
124 --enable-shared \
125 --disable-silent-rules \
126 $(use_enable static-libs static) \
127 $(use_enable debug debug all) \
128 $(use_enable debug codestack) \
129 $(use_enable cxx) \
130 $(use_enable fortran) \
131 $(use_enable fortran2003) \
132 $(use_enable mpi parallel) \
133 $(use_enable threads threadsafe) \
134 $(use_with szip szlib) \
135 $(use_with threads pthread) \
136 $(use_with zlib) \
137 ${myconf}
138 }
139
140 src_install() {
141 default
142 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
143 }