View | Details | Raw Unified
Collapse All | Expand All

(-) itpp-3.9.0.ebuild.old (-19 / +13 lines)
 Lines 3-39    Link Here 
# $Header: $
# $Header: $
DESCRIPTION="IT++ is a C++ library of mathematical, signal processing, speech processing, and communications classes and functions"
DESCRIPTION="IT++ is a C++ library of mathematical, signal processing, speech processing, and communications classes and functions"
LICENSE="GPL-2"
HOMEPAGE="http://itpp.sourceforge.net/"
HOMEPAGE="http://itpp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
KEYWORDS="~x86"
IUSE="blas debug doc fftw lapack"
IUSE="blas debug doc fftw lapack"
DEPEND="fftw? ( >=sci-libs/fftw-3.0.0 )
DEPEND="fftw? ( >=sci-libs/fftw-3.0.0 )
	blas? ( ~sci-libs/blas-atlas )
	blas? ( sci-libs/blas-atlas )
	lapack? ( virtual/lapack )"
	lapack? ( virtual/lapack )
	doc? (  app-doc/doxygen )"
pkg_setup() {
	if [ -z `which g77` ]; then
		eerror "No fortran compiler found on the system!"
		eerror "Please add fortran to your USE flags and reemerge gcc!"
		die
	fi
}
src_compile() {
src_compile() {
	local myconf="$(use_enable doc html-doc) \
	econf $(use_enable doc html-doc) \
		$(use_enable debug debug) \
		$(use_enable debug) \
		$(use_with fftw fftw) \
		$(use_with fftw) \
		$(use_with blas cblas) \
		$(use_with blas cblas) \
		$(use_with lapack lapack)"
		$(use_with lapack) \
	econf ${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 INSTALL NEWS README TODO || \
		die "failed to install docs"
}
}