commit:     dac4048ba0ff88b2564a7ebfbbd29c267fd39a80
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun Feb 27 14:51:29 2022 +0000
Commit:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sun Feb 27 14:51:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dac4048b

dev-cpp/scitokens-cpp: Install binaries and lib also if USE=TEST.

Upstream disables installation hard in that case.

See also: https://github.com/scitokens/scitokens-cpp/issues/82

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 .../scitokens-cpp-0.7.0-install-when-testing.patch  | 21 +++++++++++++++++++++
 dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild    |  4 ++++
 2 files changed, 25 insertions(+)

diff --git 
a/dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.0-install-when-testing.patch 
b/dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.0-install-when-testing.patch
new file mode 100644
index 000000000..c2b500810
--- /dev/null
+++ b/dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.0-install-when-testing.patch
@@ -0,0 +1,21 @@
+Bug: https://github.com/scitokens/scitokens-cpp/issues/82
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ec5c878..611afb1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -81,13 +81,12 @@ endif()
+ enable_testing()
+ add_subdirectory(test)
+ 
+-else()
++endif()
+ get_directory_property(TARGETS BUILDSYSTEM_TARGETS)
+ install(
+   TARGETS ${TARGETS} 
+   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+   RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
+-endif()
+ 
+ install(
+   FILES src/scitokens.h

diff --git a/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild 
b/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
index a926a4b9f..bef1bbae6 100644
--- a/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
+++ b/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
        test? ( dev-cpp/gtest )"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/"${PN}"-0.7.0-install-when-testing.patch
+)
+
 src_prepare() {
        # Unbundle dev-cpp/gtest, dev-cpp/jwt-cpp
        rm -rvf vendor

Reply via email to