From da74857cf833fe14ec26b1a13024d70bf48f4d79 Mon Sep 17 00:00:00 2001 From: Kamal Abdellatif Date: Mon, 13 Feb 2023 15:17:49 +0000 Subject: [PATCH] dev-cpp/xtl: avoid unnecessary test compilation during src_install Signed-off-by: Kamal Abdellatif --- dev-cpp/xtl/xtl-0.7.5.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev-cpp/xtl/xtl-0.7.5.ebuild b/dev-cpp/xtl/xtl-0.7.5.ebuild index 939a65d5ff..83b5fa6f99 100644 --- a/dev-cpp/xtl/xtl-0.7.5.ebuild +++ b/dev-cpp/xtl/xtl-0.7.5.ebuild @@ -3,6 +3,9 @@ EAPI=8 +# required because of manual install in src_install +CMAKE_MAKEFILE_GENERATOR="emake" + PYTHON_COMPAT=( python3_{9..11} ) inherit cmake python-any-r1 @@ -57,3 +60,11 @@ src_compile() { src_test() { cmake_src_compile xtest } + +src_install() { + # Default install target depends on tests with USE=test enabled. + # However, this is a header-only library. + DESTDIR="${D}" cmake_build install/fast "$@" + + einstalldocs +}