--- itpp-3.10.8.ebuild 2007-01-16 03:46:01.000000000 +0100 +++ itpp-3.99.0.ebuild 2007-01-21 18:47:58.000000000 +0100 @@ -11,9 +11,9 @@ SLOT="0" 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 cblas? ( || ( >=sci-libs/gsl-1.4 >=sci-libs/acml-2.5.3 @@ -35,24 +35,26 @@ src_compile() { local myconf - if use blas; then myconf="--with-blas=-lblas" else myconf="--without-blas" 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) \ $(use_enable debug) \ $(use_with cblas) \ $(use_with lapack) \ $(use_with fftw fft) \ - "$myconf" \ + ${myconf} \ || die "econf failed" emake || die "emake failed" } src_install() { make install DESTDIR=${D} || die "make install failed" - dodoc AUTHORS ChangeLog INSTALL NEWS README TODO || \ - die "failed to install docs" + dodoc AUTHORS ChangeLog ChangeLog-2006 ChangeLog-2005 INSTALL \ + NEWS NEWS-3.10 README TODO || die "failed to install docs" }