blob: bb93e824612b05c8311864b2d45df7d33fe6a553 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="header only C++ library for numerical optimization"
HOMEPAGE="https://ensmallen.org"
SRC_URI="https://github.com/mlpack/ensmallen/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="BSD"
SLOT="0"
IUSE="openmp test"
RESTRICT="!test? ( test )"
RDEPEND="sci-libs/armadillo[lapack]"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DUSE_OPENMP=$(usex openmp)
-DBUILD_TESTS=$(usex test)
)
cmake_src_configure
}
|