Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302056 | Differences between
and this patch

Collapse All | Expand All

(-)netcdf-4.0.1.ebuild.orig (-5 / +18 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-libs/netcdf/netcdf-4.0.1.ebuild,v 1.1 2009/12/07 08:59:30 bicatali Exp $
3
# $Header$
4
4
5
EAPI=2
5
EAPI=2
6
6
Lines 12-28 Link Here
12
12
13
LICENSE="UCAR-Unidata"
13
LICENSE="UCAR-Unidata"
14
SLOT="0"
14
SLOT="0"
15
IUSE="doc fortran hdf5 mpi szip"
15
IUSE="doc fortran hdf5 mpi szip cxx"
16
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
17
17
18
RDEPEND="hdf5? ( >=sci-libs/hdf5-1.8[zlib,szip?,mpi?] )"
18
RDEPEND="hdf5? ( >=sci-libs/hdf5-1.8[zlib,szip?,mpi=] )"
19
DEPEND="${RDEPEND}
19
DEPEND="${RDEPEND}
20
	>=sys-devel/libtool-2.2
20
	>=sys-devel/libtool-2.2
21
	doc? ( virtual/latex-base )
21
	doc? ( virtual/latex-base )
22
	fortran? ( dev-lang/cfortran )"
22
	fortran? ( dev-lang/cfortran )
23
	mpi? ( virtual/mpi[cxx?,fortran?] )"
23
24
24
src_prepare() {
25
src_prepare() {
25
	epatch "${FILESDIR}"/${P}-as-needed.patch
26
	epatch "${FILESDIR}"/${P}-as-needed.patch
27
	epatch "${FILESDIR}"/${P}-fortran-tests.patch
26
	rm -f fortran/cfortran.h || die
28
	rm -f fortran/cfortran.h || die
27
	eautoreconf
29
	eautoreconf
28
}
30
}
Lines 33-44 Link Here
33
		myconf="--with-hdf5=/usr --with-zlib=/usr"
35
		myconf="--with-hdf5=/usr --with-zlib=/usr"
34
		use szip && myconf="${myconf} --with-szlib=/usr"
36
		use szip && myconf="${myconf} --with-szlib=/usr"
35
	fi
37
	fi
38
	if use mpi; then
39
		export CC=mpicc
40
		if use cxx; then
41
			export CXX=mpicxx
42
		fi
43
		if use fortran; then
44
			export FC=mpif90
45
			export F77=mpif77
46
		fi
47
	fi
36
48
37
	econf \
49
	econf \
38
		--docdir=/usr/share/doc/${PF} \
50
		--docdir=/usr/share/doc/${PF} \
39
		--enable-shared \
51
		--enable-shared \
40
		$(use_enable fortran f77) \
52
		$(use_enable fortran f77) \
41
		$(use_enable fortran f90) \
53
		$(use_enable fortran f90) \
54
		$(use_enable cxx) \
42
		$(use_enable fortran separate-fortran) \
55
		$(use_enable fortran separate-fortran) \
43
		$(use_enable hdf5 netcdf-4) \
56
		$(use_enable hdf5 netcdf-4) \
44
		$(use_enable hdf5 ncgen4) \
57
		$(use_enable hdf5 ncgen4) \

Return to bug 302056