blob: 517bc35ffeb99f9d944007b6ea9d11ef86290b56 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit eutils cmake-utils
DESCRIPTION="f2c'ed version of LAPACK"
HOMEPAGE="http://www.netlib.org/clapack/"
SRC_URI="http://www.netlib.org/${PN}/${P}-CMAKE.tgz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND=">=dev-libs/libf2c-20090407-r1
virtual/cblas"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${P}-CMAKE
src_prepare() {
epatch "${FILESDIR}"/${P}-noblasf2c-r4.patch
sed \
-e 's:"f2c.h":<f2c.h>:g' \
-i SRC/*.c || die
sed \
-e 's:"blas.h":<cblas.h>:g' \
-i SRC/*.c || die
}
src_configure() {
local mycmakeargs=( $(cmake-utils_use_enable test TESTS) )
cmake-utils_src_configure
}
|