/[gentoo-x86]/sci-libs/hdf5/hdf5-1.8.8-r1.ebuild
Gentoo

Contents of /sci-libs/hdf5/hdf5-1.8.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Oct 18 21:30:05 2012 UTC (2 years, 2 months ago) by jlec
Branch: MAIN
Changes since 1.7: +5 -4 lines
sci-libs/hdf5: Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the updated fortran-2.eclass

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.8-r1.ebuild,v 1.7 2012/10/14 19:03:20 jlec Exp $
4
5 EAPI=4
6
7 FORTRAN_NEEDED=fortran
8
9 inherit autotools eutils fortran-2 toolchain-funcs
10
11 DESCRIPTION="General purpose library and file format for storing scientific data"
12 HOMEPAGE="http://www.hdfgroup.org/HDF5/"
13 SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${P}/src/${P}.tar.bz2"
14
15 LICENSE="NCSA-HDF"
16 SLOT="0"
17 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
18 IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
19
20 REQUIRED_USE="
21 cxx? ( !mpi ) mpi? ( !cxx )
22 threads? ( !cxx !mpi !fortran )
23 fortran2003? ( fortran )"
24
25 RDEPEND="
26 mpi? ( virtual/mpi[romio] )
27 szip? ( >=sci-libs/szip-2.1 )
28 zlib? ( sys-libs/zlib )"
29
30 DEPEND="${RDEPEND}
31 sys-devel/libtool:2"
32
33 pkg_setup() {
34 tc-export CXX CC # workaround for bug 285148
35 if use fortran; then
36 use fortran2003 && FORTRAN_STANDARD=2003
37 fortran-2_pkg_setup
38 fi
39 if use mpi; then
40 if has_version 'sci-libs/hdf5[-mpi]'; then
41 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
42 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
43 fi
44 export CC=mpicc
45 use fortran && export FC=mpif90
46 elif has_version 'sci-libs/hdf5[mpi]'; then
47 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
48 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
49 fi
50 }
51
52 src_prepare() {
53 epatch "${FILESDIR}"/${P}-buildsystem.patch \
54 "${FILESDIR}"/${P}-array_bounds.patch \
55 "${FILESDIR}"/${P}-implicits.patch
56 # respect gentoo examples directory
57 sed \
58 -e "s:hdf5_examples:doc/${PF}/examples:g" \
59 -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
60 sed \
61 -e '/docdir/d' \
62 -i config/commence.am || die
63 if ! use examples; then
64 sed -e '/^install:/ s/install-examples//' \
65 -i Makefile.am || die #409091
66 fi
67 eautoreconf
68 # enable shared libs by default for h5cc config utility
69 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
70 }
71
72 src_configure() {
73 econf \
74 --disable-sharedlib-rpath \
75 --enable-production \
76 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
77 --enable-deprecated-symbols \
78 --enable-shared \
79 --disable-silent-rules \
80 $(use_enable static-libs static) \
81 $(use_enable debug debug all) \
82 $(use_enable debug codestack) \
83 $(use_enable cxx) \
84 $(use_enable fortran) \
85 $(use_enable fortran2003) \
86 $(use_enable mpi parallel) \
87 $(use_enable threads threadsafe) \
88 $(use_with szip szlib) \
89 $(use_with threads pthread) \
90 $(use_with zlib) \
91 ${myconf}
92 }
93
94 src_install() {
95 default
96 use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
97 }

  ViewVC Help
Powered by ViewVC 1.1.20