aboutsummaryrefslogtreecommitdiff
blob: 7d8054513bccd1f83b8d1a19e62d7be35a6c2fa3 (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
43
44
45
46
47
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit toolchain-funcs

DESCRIPTION="C++ wrapper for LAPACK libraries"
HOMEPAGE="http://lapackpp.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc static-libs"

RDEPEND="
	virtual/blas
	virtual/lapack"
DEPEND="${RDEPEND}
	virtual/pkgconfig
	doc? ( app-doc/doxygen[latex] )"

src_prepare() {
	# Parallel build issues
	sed -i 's/\bmake\b/$(MAKE)/' Makefile.in || die
}

src_configure() {
	econf \
		$(use_enable static-libs static) \
		--disable-atlas \
		--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
		--with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
}

src_compile() {
	default
	use doc && emake srcdoc
}

src_install() {
	default
	use doc && dohtml -r api-doc/html/*
}