commit:     da74857cf833fe14ec26b1a13024d70bf48f4d79
Author:     Kamal Abdellatif <gentoo.kamal <AT> tgf <DOT> pw>
AuthorDate: Mon Feb 13 15:17:49 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 15:43:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=da74857c

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

Signed-off-by: Kamal Abdellatif <gentoo.kamal <AT> tgf.pw>

 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 939a65d5f..83b5fa6f9 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
+}

Reply via email to