From dac4048ba0ff88b2564a7ebfbbd29c267fd39a80 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Sun, 27 Feb 2022 15:51:29 +0100 Subject: [PATCH] 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 --- ...okens-cpp-0.7.0-install-when-testing.patch | 21 +++++++++++++++++++ .../scitokens-cpp/scitokens-cpp-0.7.0.ebuild | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.0-install-when-testing.patch 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 0000000000..c2b5008109 --- /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 a926a4b9f5..bef1bbae63 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