summaryrefslogtreecommitdiff
blob: 84f090788b080c95aaf8c8522a38fd6bf9a7dcb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/blitz/blitz-0.6.ebuild,v 1.9 2006/09/02 21:20:43 wormo Exp $

DESCRIPTION="High-performance C++ numeric library"
SRC_URI="mirror://sourceforge/${PN/-/}/${P}.tar.gz"
RESTRICT="nomirror"
HOMEPAGE="http://www.oonumerics.org/blitz"
DEPEND="icc? ( dev-lang/icc )"
IUSE="icc"

SLOT="0"
KEYWORDS="x86"
LICENSE="GPL-2"

src_compile() {

	# default to gcc
	local myconf="--with-cxx=gcc"
	# ICC: if we've got it, use it
	use icc && myconf="--with-cxx=icc"
	# oops, they're not in the distribution, but the build requires them
	touch NEWS AUTHORS
	./configure ${myconf} --prefix=${D}/usr
	emake || die
	emake check-testsuite || die
}

src_install () {

	emake install || die
	cd ${S}
	dodoc ChangeLog ChangeLog.1 LICENSE README README.binutils TODO COPYING LEGAL
	cd ${D}/usr
	dohtml -r doc/blitz
	rm -rf ${D}/usr/doc
	rm -rf ${D}/usr/demos
	rm -rf ${D}/usr/testsuite
	rm ${D}/usr/include/random/Makefile.am
	rm ${D}/usr/examples/Makefile
	mv benchmarks examples ${D}/usr/share/doc/${P}
}