dev-cpp/xtl: avoid unnecessary test compilation during src_install

Signed-off-by: Kamal Abdellatif <gentoo.kamal@tgf.pw>
This commit is contained in:
Kamal Abdellatif
2023-02-13 15:17:49 +00:00
parent 1c766603e2
commit da74857cf8

View File

@@ -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
}