# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 ECVS_SERVER="blitz.cvs.sourceforge.net:/cvsroot/blitz" ECVS_MODULE="blitz" inherit eutils cvs autotools DESCRIPTION="High-performance C++ numeric library" HOMEPAGE="http://www.oonumerics.org/blitz/" SRC_URI="" IUSE="doc examples static-libs" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" LICENSE="|| ( GPL-2 Blitz-Artistic )" DEPEND="doc? ( app-doc/doxygen )" RDEPEND="" S="${WORKDIR}"/${PN} src_prepare() { eautoreconf } src_configure() { econf \ --enable-shared \ --disable-cxx-flags-preset \ --disable-fortran \ --without-blas \ $(use_enable static-libs static) \ $(use_enable doc doxygen) \ $(use_enable doc html-docs) } src_compile() { emake lib } src_test() { # exprctor fails if BZ_DEBUG flag is not set # CXXFLAGS gets overwritten emake AM_CXXFLAGS="-DBZ_DEBUG" check-testsuite } src_install () { default dodoc ChangeLog.1 README.binutils use doc && dohtml -r html if use examples; then insinto /usr/share/doc/${PF}/examples doins examples/*.cpp || die fi }