Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 120163 | Differences between
and this patch

Collapse All | Expand All

(-)itpp-3.9.0.ebuild.old (-19 / +13 lines)
Lines 3-39 Link Here
3
# $Header: $
3
# $Header: $
4
4
5
DESCRIPTION="IT++ is a C++ library of mathematical, signal processing, speech processing, and communications classes and functions"
5
DESCRIPTION="IT++ is a C++ library of mathematical, signal processing, speech processing, and communications classes and functions"
6
LICENSE="GPL-2"
6
HOMEPAGE="http://itpp.sourceforge.net/"
7
HOMEPAGE="http://itpp.sourceforge.net/"
7
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
8
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
8
LICENSE="GPL-2"
9
9
SLOT="0"
10
SLOT="0"
10
KEYWORDS="~x86 ~amd64"
11
KEYWORDS="~x86"
11
IUSE="blas debug doc fftw lapack"
12
IUSE="blas debug doc fftw lapack"
12
13
13
DEPEND="fftw? ( >=sci-libs/fftw-3.0.0 )
14
DEPEND="fftw? ( >=sci-libs/fftw-3.0.0 )
14
	blas? ( ~sci-libs/blas-atlas )
15
	blas? ( sci-libs/blas-atlas )
15
	lapack? ( virtual/lapack )"
16
	lapack? ( virtual/lapack )
16
17
	doc? (  app-doc/doxygen )"
17
pkg_setup() {
18
	if [ -z `which g77` ]; then
19
		eerror "No fortran compiler found on the system!"
20
		eerror "Please add fortran to your USE flags and reemerge gcc!"
21
		die
22
	fi
23
}
24
18
25
src_compile() {
19
src_compile() {
26
	local myconf="$(use_enable doc html-doc) \
20
	econf $(use_enable doc html-doc) \
27
		$(use_enable debug debug) \
21
		$(use_enable debug) \
28
		$(use_with fftw fftw) \
22
		$(use_with fftw) \
29
		$(use_with blas cblas) \
23
		$(use_with blas cblas) \
30
		$(use_with lapack lapack)"
24
		$(use_with lapack) \
31
	econf ${myconf} || die "econf failed"
25
		|| die "econf failed"
32
	emake || die "emake failed"
26
	emake || die "emake failed"
33
}
27
}
34
28
35
src_install() {
29
src_install() {
36
	make install DESTDIR=${D} || die "make install failed"
30
	make install DESTDIR=${D} || die "make install failed"
37
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
31
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO || \
32
		die "failed to install docs"
38
}
33
}
39

Return to bug 120163