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: ChangeLog hdf5-1.8.5_p1-r1.ebuild hdf5-1.8.5_p1.ebuild
Date: Fri, 05 Nov 2010 17:29:42
Message-Id: 20101105172936.98B9720051@flycatcher.gentoo.org
1 xarthisius 10/11/05 17:29:36
2
3 Modified: ChangeLog
4 Added: hdf5-1.8.5_p1-r1.ebuild
5 Removed: hdf5-1.8.5_p1.ebuild
6 Log:
7 Fix implicits.
8
9 (Portage version: 2.1.9.24/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.64 sci-libs/hdf5/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.64&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.64&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?r1=1.63&r2=1.64
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v
21 retrieving revision 1.63
22 retrieving revision 1.64
23 diff -u -r1.63 -r1.64
24 --- ChangeLog 5 Nov 2010 16:38:26 -0000 1.63
25 +++ ChangeLog 5 Nov 2010 17:29:36 -0000 1.64
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-libs/hdf5
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.63 2010/11/05 16:38:26 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.64 2010/11/05 17:29:36 xarthisius Exp $
31 +
32 +*hdf5-1.8.5_p1-r1 (05 Nov 2010)
33 +
34 + 05 Nov 2010; Kacper Kowalik <xarthisius@g.o> -hdf5-1.8.5_p1.ebuild,
35 + +hdf5-1.8.5_p1-r1.ebuild, +files/hdf5-1.8.5-implicits.patch:
36 + Fix implicits.
37
38 *hdf5-1.8.5_p1 (05 Nov 2010)
39
40
41
42
43 1.1 sci-libs/hdf5/hdf5-1.8.5_p1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.5_p1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.5_p1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: hdf5-1.8.5_p1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.5_p1-r1.ebuild,v 1.1 2010/11/05 17:29:36 xarthisius Exp $
53
54 EAPI=2
55
56 MY_P=${P/_p/-patch}
57
58 inherit autotools eutils
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/current/src/${MY_P}.tar.bz2"
63
64 LICENSE="NCSA-HDF"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
67
68 IUSE="cxx debug examples fortran mpi szip threads zlib"
69
70 RDEPEND="mpi? ( virtual/mpi[romio] )
71 szip? ( >=sci-libs/szip-2.1 )
72 zlib? ( sys-libs/zlib )"
73
74 DEPEND="${RDEPEND}
75 >=sys-devel/libtool-2.2
76 sys-process/time"
77
78 S=${WORKDIR}/${MY_P}
79
80 pkg_setup() {
81 if use mpi; then
82 if has_version 'sci-libs/hdf5[-mpi]'; then
83 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
84 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
85 fi
86 if use cxx; then
87 ewarn "Simultaneous mpi and cxx is not supported by ${PN}"
88 ewarn "Will disable cxx interface"
89 fi
90 export CC=mpicc
91 if use fortran; then
92 export FC=mpif90
93 fi
94 elif has_version 'sci-libs/hdf5[mpi]'; then
95 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
96 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
97 fi
98 }
99
100 src_prepare() {
101 epatch "${FILESDIR}"/${PN}-1.8.3-as-needed.patch
102 epatch "${FILESDIR}"/${PN}-1.8.5-implicits.patch
103 epatch "${FILESDIR}"/${PN}-1.8.5-noreturn.patch
104 epatch "${FILESDIR}"/${PN}-1.8.4-scaleoffset.patch
105
106 # respect gentoo examples directory
107 sed -i -e "s:hdf5_examples:doc/${PF}/examples:g" \
108 $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
109 sed -i \
110 -e '/docdir/d' \
111 config/commence.am || die
112 eautoreconf
113 # enable shared libs by default for h5cc config utility
114 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in \
115 || die "sed h5cc.in failed"
116 }
117
118 src_configure() {
119 # threadsafe incompatible with many options
120 local myconf="--disable-threadsafe"
121 use debug && myconf="${myconf} --enable-codestack"
122 use threads && ! use fortran && ! use cxx && ! use mpi \
123 && myconf="--enable-threadsafe"
124
125 if use mpi; then
126 myconf="${myconf} --disable-cxx"
127 else
128 # workaround for bug 285148
129 if use cxx; then
130 myconf="${myconf} $(use_enable cxx) CXX=$(tc-getCXX)"
131 fi
132 if use fortran; then
133 myconf="${myconf} FC=$(tc-getFC)"
134 fi
135 fi
136
137 econf \
138 --disable-sharedlib-rpath \
139 --enable-production \
140 --docdir=/usr/share/doc/${PF} \
141 --enable-deprecated-symbols \
142 --enable-shared \
143 $(use_enable debug debug all) \
144 $(use_enable fortran) \
145 $(use_enable mpi parallel) \
146 $(use_with szip szlib) \
147 $(use_with threads pthread) \
148 $(use_with zlib) \
149 ${myconf}
150 }
151
152 src_install() {
153 emake DESTDIR="${D}" install || die "emake install failed"
154 dodoc README.txt
155 if use examples; then
156 emake DESTDIR="${D}" install-examples \
157 || die "emake install examples failed"
158 fi
159 }