1 |
commit: 21dcf273f2cc3859844a71e52cc5fecd63cfa9e5 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 16:12:54 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 16:12:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21dcf273 |
7 |
|
8 |
dev-libs/pthreadpool: drop gtest download |
9 |
|
10 |
Closes: https://bugs.gentoo.org/843593 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
.../files/pthreadpool-2022.05.09-gentoo.patch | 22 +++++++++++++++++++++- |
15 |
1 file changed, 21 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch |
18 |
index 3c2edfa1ca8a..a818eaabc1a1 100644 |
19 |
--- a/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch |
20 |
+++ b/dev-libs/pthreadpool/files/pthreadpool-2022.05.09-gentoo.patch |
21 |
@@ -1,6 +1,6 @@ |
22 |
--- a/CMakeLists.txt 2022-05-09 12:38:59.927116924 +0200 |
23 |
+++ b/CMakeLists.txt 2022-05-09 12:39:39.141532680 +0200 |
24 |
-@@ -37,12 +38,6 @@ |
25 |
+@@ -37,22 +37,10 @@ |
26 |
|
27 |
# ---[ Download deps |
28 |
IF(NOT DEFINED FXDIV_SOURCE_DIR) |
29 |
@@ -13,6 +13,16 @@ |
30 |
SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory") |
31 |
ENDIF() |
32 |
|
33 |
+ IF(PTHREADPOOL_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR) |
34 |
+- MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)") |
35 |
+- CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt") |
36 |
+- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . |
37 |
+- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") |
38 |
+- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . |
39 |
+- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") |
40 |
+ SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory") |
41 |
+ ENDIF() |
42 |
+ |
43 |
@@ -153,11 +143,7 @@ |
44 |
IF(NOT TARGET fxdiv) |
45 |
SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "") |
46 |
@@ -25,3 +35,13 @@ |
47 |
|
48 |
INSTALL(TARGETS pthreadpool |
49 |
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
50 |
+@@ -157,9 +151,6 @@ |
51 |
+ # ---[ Build google test |
52 |
+ IF(NOT TARGET gtest) |
53 |
+ SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE) |
54 |
+- ADD_SUBDIRECTORY( |
55 |
+- "${GOOGLETEST_SOURCE_DIR}" |
56 |
+- "${CMAKE_BINARY_DIR}/googletest") |
57 |
+ ENDIF() |
58 |
+ |
59 |
+ ADD_EXECUTABLE(pthreadpool-test test/pthreadpool.cc) |