Gentoo Archives: gentoo-commits

From: Oliver Freyermuth <o.freyermuth@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/scitokens-cpp/, dev-cpp/scitokens-cpp/files/
Date: Sun, 27 Feb 2022 14:51:36
Message-Id: 1645973489.dac4048ba0ff88b2564a7ebfbbd29c267fd39a80.freyermuth@gentoo
1 commit: dac4048ba0ff88b2564a7ebfbbd29c267fd39a80
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sun Feb 27 14:51:29 2022 +0000
4 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
5 CommitDate: Sun Feb 27 14:51:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dac4048b
7
8 dev-cpp/scitokens-cpp: Install binaries and lib also if USE=TEST.
9
10 Upstream disables installation hard in that case.
11
12 See also: https://github.com/scitokens/scitokens-cpp/issues/82
13
14 Package-Manager: Portage-3.0.30, Repoman-3.0.3
15 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
16
17 .../scitokens-cpp-0.7.0-install-when-testing.patch | 21 +++++++++++++++++++++
18 dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild | 4 ++++
19 2 files changed, 25 insertions(+)
20
21 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
22 new file mode 100644
23 index 000000000..c2b500810
24 --- /dev/null
25 +++ b/dev-cpp/scitokens-cpp/files/scitokens-cpp-0.7.0-install-when-testing.patch
26 @@ -0,0 +1,21 @@
27 +Bug: https://github.com/scitokens/scitokens-cpp/issues/82
28 +
29 +diff --git a/CMakeLists.txt b/CMakeLists.txt
30 +index ec5c878..611afb1 100644
31 +--- a/CMakeLists.txt
32 ++++ b/CMakeLists.txt
33 +@@ -81,13 +81,12 @@ endif()
34 + enable_testing()
35 + add_subdirectory(test)
36 +
37 +-else()
38 ++endif()
39 + get_directory_property(TARGETS BUILDSYSTEM_TARGETS)
40 + install(
41 + TARGETS ${TARGETS}
42 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
43 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
44 +-endif()
45 +
46 + install(
47 + FILES src/scitokens.h
48
49 diff --git a/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild b/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
50 index a926a4b9f..bef1bbae6 100644
51 --- a/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
52 +++ b/dev-cpp/scitokens-cpp/scitokens-cpp-0.7.0.ebuild
53 @@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
54 test? ( dev-cpp/gtest )"
55 BDEPEND="virtual/pkgconfig"
56
57 +PATCHES=(
58 + "${FILESDIR}"/"${PN}"-0.7.0-install-when-testing.patch
59 +)
60 +
61 src_prepare() {
62 # Unbundle dev-cpp/gtest, dev-cpp/jwt-cpp
63 rm -rvf vendor