blob: 02fd2e0350000964fe499dbd8fd6ea4714cb60e4 (
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
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
FORTRAN_NEEDED=fortran
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils fortran-2
UPSTREAM_NO=32735
DESCRIPTION="Kernel for Adaptative, Asynchronous Parallel and Interactive programming"
HOMEPAGE="http://kaapi.gforge.inria.fr"
SRC_URI="https://gforge.inria.fr/frs/download.php/${UPSTREAM_NO}/${P}.tar.gz"
SLOT="0"
LICENSE="CeCILL-2"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="blas cxx fortran gpu openmp static-libs"
RDEPEND="
sys-apps/hwloc
dev-libs/libffi
"
DEPEND="${RDEPEND}
"
PATCHES=(
"${FILESDIR}"/${P}-flags.patch
"${FILESDIR}"/${P}-ffi.patch
)
src_prepare() {
sed \
-e 's:-Werror::g' \
-i tests/testsuite* tests/*/*.am || die
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=(
--enable-mode=gentoo
--enable-api-kaapic
--enable-api-quark
--with-ccache=no
--enable-hwloc
--with-libffi="${EPREFIX}"/usr
--enable-target$(usex gpu gpu mt)
$(use_enable fortran api-kaapif)
$(use_enable cxx api-kaapixx)
$(use_enable blas kblas)
$(use_enable openmp libkomp)
# $(use_with plasma "${EPREFIX}"/usr)
)
autotools-utils_src_configure
}
|