Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 493222
Collapse All | Expand All

(-)hypre-2.9.0b.ebuild.orig (-22 / +8 lines)
Lines 15-28 Link Here
15
LICENSE="LGPL-2.1"
15
LICENSE="LGPL-2.1"
16
SLOT="0/${PV}"
16
SLOT="0/${PV}"
17
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18
IUSE="blas doc examples fortran lapack mpi"
18
IUSE="doc examples fortran mpi"
19
20
REQUIRED_USE="mpi? ( fortran lapack )"
21
19
22
RDEPEND="
20
RDEPEND="
23
	sci-libs/superlu:0=
21
	sci-libs/superlu:0=
24
	blas? ( virtual/blas )
22
	virtual/blas
25
	lapack? ( virtual/lapack )
23
	virtual/lapack
26
	mpi? ( virtual/mpi )"
24
	mpi? ( virtual/mpi )"
27
DEPEND="${RDEPEND}
25
DEPEND="${RDEPEND}
28
	virtual/pkgconfig"
26
	virtual/pkgconfig"
Lines 53-78 Link Here
53
	local myeconfargs+=(
51
	local myeconfargs+=(
54
		--enable-shared
52
		--enable-shared
55
		--without-superlu
53
		--without-superlu
56
		--without-strict-checking
54
		--with-blas-libs="$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's/-l//g')"
55
		--with-blas-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L blas | sed -e 's/-L//g')"
56
		--with-lapack-libs="$($(tc-getPKG_CONFIG) --libs-only-l lapack | sed -e 's/-l//g')"
57
		--with-lapack-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L lapack | sed -e 's/-L//g')"
57
		$(use_enable fortran)
58
		$(use_enable fortran)
58
		$(use_with mpi MPI)
59
		$(use_with mpi MPI)
59
	)
60
	)
60
	if use blas; then
61
61
		myeconfargs+=(
62
			--with-blas-libs="$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's/-l//g')"
63
			--with-blas-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L blas | sed -e 's/-L//g')"
64
		)
65
	else
66
		myeconfargs+=( --without-blas )
67
	fi
68
	if use lapack; then
69
		myeconfargs+=(
70
			--with-lapack-libs="$($(tc-getPKG_CONFIG) --libs-only-l lapack | sed -e 's/-l//g')"
71
			--with-lapack-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L lapack | sed -e 's/-L//g')"
72
		)
73
	else
74
		myeconfargs+=( --without-lapack )
75
	fi
76
	econf "${myeconfargs[@]}"
62
	econf "${myeconfargs[@]}"
77
}
63
}
78
64

Return to bug 493222