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 (-3 / +15 lines)
Lines 12-25 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
Lines 33-44 Link Here
33
		myconf="--with-hdf5=/usr --with-zlib=/usr"
34
		myconf="--with-hdf5=/usr --with-zlib=/usr"
34
		use szip && myconf="${myconf} --with-szlib=/usr"
35
		use szip && myconf="${myconf} --with-szlib=/usr"
35
	fi
36
	fi
37
	if use mpi; then
38
		export CC=mpicc
39
		if use cxx; then
40
			export CXX=mpicxx
41
		fi
42
		if use fortran; then
43
			export FC=mpif90
44
			export F77=mpif77
45
		fi
46
	fi
36
47
37
	econf \
48
	econf \
38
		--docdir=/usr/share/doc/${PF} \
49
		--docdir=/usr/share/doc/${PF} \
39
		--enable-shared \
50
		--enable-shared \
40
		$(use_enable fortran f77) \
51
		$(use_enable fortran f77) \
41
		$(use_enable fortran f90) \
52
		$(use_enable fortran f90) \
53
		$(use_enable cxx cxx) \
42
		$(use_enable fortran separate-fortran) \
54
		$(use_enable fortran separate-fortran) \
43
		$(use_enable hdf5 netcdf-4) \
55
		$(use_enable hdf5 netcdf-4) \
44
		$(use_enable hdf5 ncgen4) \
56
		$(use_enable hdf5 ncgen4) \

Return to bug 302056