mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
sci-libs/mlpack: buld tests, system catch
Closes: https://bugs.gentoo.org/842801 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -84,6 +84,7 @@ RDEPEND="
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
R? ( dev-R/pkgbuild )
|
||||
test? ( dev-cpp/catch:0 )
|
||||
"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
@@ -111,6 +112,7 @@ src_unpack() {
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
rm src/mlpack/tests/catch.hpp
|
||||
rm -r src/mlpack/core/std_backport || die
|
||||
rm -r src/mlpack/core/cereal/{pair_associative_container,unordered_map}.hpp || die
|
||||
|
||||
@@ -121,12 +123,9 @@ src_prepare() {
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use R && append-cxxflags "-larmadillo"
|
||||
append-cxxflags "-I/usr/include/catch2"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_CLI_EXECUTABLES=ON
|
||||
@@ -158,6 +157,11 @@ src_configure() {
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use test && cmake_src_compile mlpack_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user