View | Details | Raw Unified
Collapse All | Expand All

(-) itpp-3.10.8.ebuild (-6 / +8 lines)
 Lines 11-19    Link Here 
SLOT="0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="~amd64 ~x86"
IUSE="blas cblas debug doc fftw lapack"
IUSE="blas cblas debug doc fftw lapack minimal"
DEPEND="fftw? ( >=sci-libs/fftw-3.0.0 )
DEPEND="!minimal? ( fftw? ( >=sci-libs/fftw-3.0.0 ) )
		blas? ( virtual/blas
		blas? ( virtual/blas
				cblas? ( || ( >=sci-libs/gsl-1.4
				cblas? ( || ( >=sci-libs/gsl-1.4
							>=sci-libs/acml-2.5.3
							>=sci-libs/acml-2.5.3
 Lines 35-58    Link Here 
src_compile() {
src_compile() {
	local myconf
	local myconf
	if use blas; then
	if use blas; then
		myconf="--with-blas=-lblas"
		myconf="--with-blas=-lblas"
	else
	else
		myconf="--without-blas"
		myconf="--without-blas"
	fi
	fi
	if use minimal; then
		myconf="--disable-comm --disable-fixed --disable-optim --disable-protocol --disable-signal --disable-srccode ${myconf}"
	fi
	econf $(use_enable doc html-doc) \
	econf $(use_enable doc html-doc) \
		$(use_enable debug) \
		$(use_enable debug) \
		$(use_with cblas) \
		$(use_with cblas) \
		$(use_with lapack) \
		$(use_with lapack) \
		$(use_with fftw fft) \
		$(use_with fftw fft) \
		"$myconf" \
		${myconf} \
		|| die "econf failed"
		|| die "econf failed"
	emake || die "emake failed"
	emake || die "emake failed"
}
}
src_install() {
src_install() {
	make install DESTDIR=${D} || die "make install failed"
	make install DESTDIR=${D} || die "make install failed"
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO || \
	dodoc AUTHORS ChangeLog ChangeLog-2006 ChangeLog-2005 INSTALL \
		die "failed to install docs"
		NEWS NEWS-3.10 README TODO || die "failed to install docs"
}
}