Skip to content
This repository
tree: 6dad5835dc
Fetching contributors…

Cannot retrieve contributors at this time

file 64 lines (51 sloc) 1.549 kb
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit autotools-utils toolchain-funcs eutils

DESCRIPTION="LinBox is a C++ template library for linear algebra computation over integers and over finite fields"
HOMEPAGE="http://linalg.org/"
SRC_URI="http://linalg.org/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos"
IUSE="ntl sage static-libs"

# TODO: support examples ?

# disabling of commentator class breaks the tests
RESTRICT="mirror
sage? ( test )"

# FIXME: using external expat breaks the tests.
# FIXME: dependency on iml, mpfr, fplll, m4ri and m4rie are automagical
CDEPEND="dev-libs/gmp[cxx]
>=sci-libs/givaro-3.7.0
~sci-libs/fflas-ffpack-1.6.0
virtual/cblas
ntl? ( dev-libs/ntl )
sci-libs/iml
dev-libs/mpfr
sci-libs/fplll
sci-libs/m4ri
sci-libs/m4rie"
DEPEND="${CDEPEND}
virtual/pkgconfig"
RDEPEND="${CDEPEND}"

AT_M4DIR="macros"
AUTOTOOLS_IN_SOURCE_BUILD="1"
DOCS=( ChangeLog README NEWS TODO )

# TODO: installation of documentation does not work ?

src_configure() {
# FIXME: using external expat breaks the tests and various other components
# TODO: documentation does not work

# TODO: what does --enable-optimization do ?
myeconfargs=(
--enable-optimization
--with-default="${EPREFIX}"/usr
$(use_enable sage)
)

if use ntl ; then
myeconfargs+=(--with-ntl="${EPREFIX}"/usr)
else
myeconfargs+=(--with-ntl=no)
fi

autotools-utils_src_configure
}
Something went wrong with that request. Please try again.