1 |
commit: 62f7ec58ddd8db23c982f4782f5733ee94b7dcd0 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 27 16:47:25 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 27 16:47:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62f7ec58 |
7 |
|
8 |
net-libs/google-cloud-cpp: revbump with patches that are now upstream |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
.../files/0001-Make-the-install-target-work.patch | 12 ++ |
13 |
...GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch | 18 +-- |
14 |
.../files/0002-cmake-fix-library-issues.patch | 180 --------------------- |
15 |
.../files/0002-cmake-set-library-soversions.patch | 130 +++++++++++++++ |
16 |
...2.0.ebuild => google-cloud-cpp-0.2.0-r1.ebuild} | 3 +- |
17 |
5 files changed, 153 insertions(+), 190 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/google-cloud-cpp/files/0001-Make-the-install-target-work.patch b/net-libs/google-cloud-cpp/files/0001-Make-the-install-target-work.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..f84cb4be3c2 |
22 |
--- /dev/null |
23 |
+++ b/net-libs/google-cloud-cpp/files/0001-Make-the-install-target-work.patch |
24 |
@@ -0,0 +1,12 @@ |
25 |
+diff -ur google-cloud-cpp-0.2.0.orig/google/cloud/storage/CMakeLists.txt google-cloud-cpp-0.2.0/google/cloud/storage/CMakeLists.txt |
26 |
+--- google-cloud-cpp-0.2.0.orig/google/cloud/storage/CMakeLists.txt 2018-09-28 00:39:41.170482472 +0800 |
27 |
++++ google-cloud-cpp-0.2.0/google/cloud/storage/CMakeLists.txt 2018-09-28 00:42:09.679979597 +0800 |
28 |
+@@ -321,7 +321,7 @@ |
29 |
+ PATTERN "testing/*" |
30 |
+ EXCLUDE) |
31 |
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/version_info.h DESTINATION |
32 |
+- include/storage/client) |
33 |
++ include/google/cloud/storage) |
34 |
+ |
35 |
+ # Setup global variables used in the following *.in files. |
36 |
+ set(GOOGLE_CLOUD_CPP_CONFIG_VERSION_MAJOR ${STORAGE_CLIENT_VERSION_MAJOR}) |
37 |
|
38 |
diff --git a/net-libs/google-cloud-cpp/files/0001-cmake-Fix-GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch b/net-libs/google-cloud-cpp/files/0001-cmake-Fix-GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch |
39 |
index d479a82b1e3..a1b9a166ea3 100644 |
40 |
--- a/net-libs/google-cloud-cpp/files/0001-cmake-Fix-GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch |
41 |
+++ b/net-libs/google-cloud-cpp/files/0001-cmake-Fix-GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch |
42 |
@@ -1,31 +1,31 @@ |
43 |
-From eb0155e90498a5d7341490b9ed123f7638bffe44 Mon Sep 17 00:00:00 2001 |
44 |
+From ef34b197dd23833c0dde9ea20f62681dbafa7a9b Mon Sep 17 00:00:00 2001 |
45 |
From: Jason Zaman <jason@×××××××××.com> |
46 |
Date: Fri, 7 Sep 2018 21:19:11 +0800 |
47 |
Subject: [PATCH 1/2] cmake: Fix GOOGLE_CLOUD_CPP_GRPC_PROVIDER=pkg-config |
48 |
|
49 |
The grpc_cpp_plugin executable needs to be marked imported otherwise |
50 |
-cmake will try (and fail) to build it. |
51 |
-Also the location variable was typo'd. |
52 |
+cmake will try (and fail) to build it. Also the location variable was |
53 |
+typo'd. |
54 |
|
55 |
Signed-off-by: Jason Zaman <jason@×××××××××.com> |
56 |
--- |
57 |
- cmake/IncludeGrpc.cmake | 4 ++-- |
58 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
59 |
+ cmake/IncludeGrpc.cmake | 5 ++--- |
60 |
+ 1 file changed, 2 insertions(+), 3 deletions(-) |
61 |
|
62 |
diff --git a/cmake/IncludeGrpc.cmake b/cmake/IncludeGrpc.cmake |
63 |
-index 14273cbb..929f984d 100644 |
64 |
+index 36dcfe5c..c18f5cbc 100644 |
65 |
--- a/cmake/IncludeGrpc.cmake |
66 |
+++ b/cmake/IncludeGrpc.cmake |
67 |
-@@ -231,9 +231,9 @@ elseif("${GOOGLE_CLOUD_CPP_GRPC_PROVIDER}" STREQUAL "pkg-config") |
68 |
+@@ -225,9 +225,8 @@ elseif("${GOOGLE_CLOUD_CPP_GRPC_PROVIDER}" STREQUAL "pkg-config") |
69 |
${PROTOBUF_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Release |
70 |
${PROTOBUF_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Debug) |
71 |
mark_as_advanced(PROTOC_GRPCPP_PLUGIN_EXECUTABLE) |
72 |
- add_executable(grpc_cpp_plugin ${PROTOC_GRPC_PLUGIN_EXECUTABLE}) |
73 |
+ add_executable(grpc_cpp_plugin IMPORTED) |
74 |
set_property(TARGET grpc_cpp_plugin |
75 |
- PROPERTY IMPORTED_LOCATION |
76 |
+- PROPERTY IMPORTED_LOCATION |
77 |
- ${PROTOC_GRPCPP_CPP_PLUGIN_EXECUTABLE}) |
78 |
-+ ${PROTOC_GRPCPP_PLUGIN_EXECUTABLE}) |
79 |
++ PROPERTY IMPORTED_LOCATION ${PROTOC_GRPCPP_PLUGIN_EXECUTABLE}) |
80 |
|
81 |
endif () |
82 |
-- |
83 |
|
84 |
diff --git a/net-libs/google-cloud-cpp/files/0002-cmake-fix-library-issues.patch b/net-libs/google-cloud-cpp/files/0002-cmake-fix-library-issues.patch |
85 |
deleted file mode 100644 |
86 |
index 23a6d24d54d..00000000000 |
87 |
--- a/net-libs/google-cloud-cpp/files/0002-cmake-fix-library-issues.patch |
88 |
+++ /dev/null |
89 |
@@ -1,180 +0,0 @@ |
90 |
-From 9978d05d4418bf813b8a457a2e49d0fc8fc8b26b Mon Sep 17 00:00:00 2001 |
91 |
-From: Jason Zaman <jason@×××××××××.com> |
92 |
-Date: Fri, 7 Sep 2018 22:35:24 +0800 |
93 |
-Subject: [PATCH 2/2] cmake: fix library issues |
94 |
- |
95 |
-Set library soversions so CMake sets the symlinks and soversions |
96 |
-properly. |
97 |
-Install the cmake files in the correct dir. |
98 |
- |
99 |
-Signed-off-by: Jason Zaman <jason@×××××××××.com> |
100 |
---- |
101 |
- google/cloud/CMakeLists.txt | 14 +++++++------- |
102 |
- google/cloud/bigtable/CMakeLists.txt | 11 ++++++++--- |
103 |
- google/cloud/firestore/CMakeLists.txt | 14 ++++++++------ |
104 |
- google/cloud/storage/CMakeLists.txt | 12 +++++++----- |
105 |
- 4 files changed, 30 insertions(+), 21 deletions(-) |
106 |
- |
107 |
-diff --git a/google/cloud/CMakeLists.txt b/google/cloud/CMakeLists.txt |
108 |
-index 4d777261..4e26290c 100644 |
109 |
---- a/google/cloud/CMakeLists.txt |
110 |
-+++ b/google/cloud/CMakeLists.txt |
111 |
-@@ -99,6 +99,9 @@ target_include_directories(google_cloud_cpp_common |
112 |
- $<INSTALL_INTERFACE:include>) |
113 |
- target_compile_options(google_cloud_cpp_common |
114 |
- PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
115 |
-+set_target_properties(google_cloud_cpp_common PROPERTIES |
116 |
-+ VERSION ${GOOGLE_CLOUD_CPP_VERSION_MAJOR}.${GOOGLE_CLOUD_CPP_VERSION_MINOR}.${GOOGLE_CLOUD_CPP_VERSION_PATCH} |
117 |
-+ SOVERSION ${GOOGLE_CLOUD_CPP_VERSION_MAJOR}) |
118 |
- |
119 |
- include(CreateBazelConfig) |
120 |
- create_bazel_config(google_cloud_cpp_common) |
121 |
-@@ -150,7 +153,7 @@ endforeach () |
122 |
- |
123 |
- # Export the CMake targets to make it easy to create configuration files. |
124 |
- install(EXPORT google_cloud_cpp_common-targets |
125 |
-- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/google_cloud_cpp_common") |
126 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
127 |
- |
128 |
- # Install the libraries and headers in the locations determined by |
129 |
- # GNUInstallDirs |
130 |
-@@ -186,12 +189,9 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_common.pc" |
131 |
- configure_file("config.cmake.in" "google_cloud_cpp_common-config.cmake" @ONLY) |
132 |
- configure_file("${PROJECT_SOURCE_DIR}/google/cloud/config-version.cmake.in" |
133 |
- "google_cloud_cpp_common-config-version.cmake" @ONLY) |
134 |
--install( |
135 |
-- FILES |
136 |
-- "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_common-config.cmake" |
137 |
-- "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_common-config-version.cmake" |
138 |
-- DESTINATION |
139 |
-- "${CMAKE_INSTALL_LIBDIR}/cmake/google_cloud_cpp_common") |
140 |
-+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_common-config.cmake" |
141 |
-+ "${CMAKE_CURRENT_BINARY_DIR}/google_cloud_cpp_common-config-version.cmake" |
142 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
143 |
- |
144 |
- add_subdirectory(bigtable) |
145 |
- add_subdirectory(firestore) |
146 |
-diff --git a/google/cloud/bigtable/CMakeLists.txt b/google/cloud/bigtable/CMakeLists.txt |
147 |
-index 8aaff05c..9bd3effd 100644 |
148 |
---- a/google/cloud/bigtable/CMakeLists.txt |
149 |
-+++ b/google/cloud/bigtable/CMakeLists.txt |
150 |
-@@ -102,6 +102,9 @@ target_include_directories(bigtable_protos |
151 |
- $<INSTALL_INTERFACE:include>) |
152 |
- target_compile_options(bigtable_protos |
153 |
- PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
154 |
-+set_target_properties(bigtable_protos PROPERTIES |
155 |
-+ VERSION ${BIGTABLE_CLIENT_VERSION_MAJOR}.${BIGTABLE_CLIENT_VERSION_MINOR}.${BIGTABLE_CLIENT_VERSION_PATCH} |
156 |
-+ SOVERSION ${BIGTABLE_CLIENT_VERSION_MAJOR}) |
157 |
- add_library(bigtable::protos ALIAS bigtable_protos) |
158 |
- |
159 |
- # Enable unit tests |
160 |
-@@ -212,6 +215,9 @@ target_include_directories(bigtable_client |
161 |
- $<INSTALL_INTERFACE:include>) |
162 |
- target_compile_options(bigtable_client |
163 |
- PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
164 |
-+set_target_properties(bigtable_client PROPERTIES |
165 |
-+ VERSION ${BIGTABLE_CLIENT_VERSION_MAJOR}.${BIGTABLE_CLIENT_VERSION_MINOR}.${BIGTABLE_CLIENT_VERSION_PATCH} |
166 |
-+ SOVERSION ${BIGTABLE_CLIENT_VERSION_MAJOR}) |
167 |
- add_library(bigtable::client ALIAS bigtable_client) |
168 |
- |
169 |
- include(CreateBazelConfig) |
170 |
-@@ -369,7 +375,7 @@ if (NOT ${GOOGLE_CLOUD_CPP_GRPC_PROVIDER} STREQUAL "module") |
171 |
- |
172 |
- # Export the CMake targets to make it easy to create configuration files. |
173 |
- install(EXPORT bigtable-targets |
174 |
-- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/bigtable_client") |
175 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
176 |
- endif () |
177 |
- |
178 |
- install(TARGETS bigtable_client |
179 |
-@@ -407,5 +413,4 @@ configure_file("${PROJECT_SOURCE_DIR}/google/cloud/config-version.cmake.in" |
180 |
- "bigtable_client-config-version.cmake" @ONLY) |
181 |
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bigtable_client-config.cmake" |
182 |
- "${CMAKE_CURRENT_BINARY_DIR}/bigtable_client-config-version.cmake" |
183 |
-- DESTINATION |
184 |
-- "${CMAKE_INSTALL_LIBDIR}/cmake/bigtable_client") |
185 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
186 |
-diff --git a/google/cloud/firestore/CMakeLists.txt b/google/cloud/firestore/CMakeLists.txt |
187 |
-index 88c5ad6d..63d8add1 100644 |
188 |
---- a/google/cloud/firestore/CMakeLists.txt |
189 |
-+++ b/google/cloud/firestore/CMakeLists.txt |
190 |
-@@ -62,6 +62,9 @@ target_include_directories(firestore_client |
191 |
- $<INSTALL_INTERFACE:include>) |
192 |
- target_compile_options(firestore_client |
193 |
- PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
194 |
-+set_target_properties(firestore_client PROPERTIES |
195 |
-+ VERSION ${FIRESTORE_CLIENT_VERSION_MAJOR}.${FIRESTORE_CLIENT_VERSION_MINOR}.${FIRESTORE_CLIENT_VERSION_PATCH} |
196 |
-+ SOVERSION ${FIRESTORE_CLIENT_VERSION_MAJOR}) |
197 |
- add_library(firestore::client ALIAS firestore_client) |
198 |
- |
199 |
- include(CreateBazelConfig) |
200 |
-@@ -104,7 +107,8 @@ install(TARGETS |
201 |
- |
202 |
- # The exports can only be installed if all the dependencies are installed. CMake |
203 |
- # needs to know where the submodules will be installed from, |
204 |
--install(EXPORT firestore-targets DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake) |
205 |
-+install(EXPORT firestore-targets |
206 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
207 |
- |
208 |
- install(TARGETS firestore_client |
209 |
- EXPORT firestore-targets |
210 |
-@@ -138,8 +142,6 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/firestore_client.pc" DESTINATION |
211 |
- configure_file("config.cmake.in" "firestore_client-config.cmake" @ONLY) |
212 |
- configure_file("${PROJECT_SOURCE_DIR}/google/cloud/config-version.cmake.in" |
213 |
- "firestore_client-config-version.cmake" @ONLY) |
214 |
--install( |
215 |
-- FILES "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config.cmake" |
216 |
-- "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config-version.cmake" |
217 |
-- DESTINATION |
218 |
-- ${CMAKE_INSTALL_DATAROOTDIR}/cmake) |
219 |
-+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config.cmake" |
220 |
-+ "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config-version.cmake" |
221 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
222 |
-diff --git a/google/cloud/storage/CMakeLists.txt b/google/cloud/storage/CMakeLists.txt |
223 |
-index c8b641a0..c91bb17c 100644 |
224 |
---- a/google/cloud/storage/CMakeLists.txt |
225 |
-+++ b/google/cloud/storage/CMakeLists.txt |
226 |
-@@ -216,6 +216,9 @@ target_include_directories(storage_client |
227 |
- $<INSTALL_INTERFACE:include>) |
228 |
- target_compile_options(storage_client |
229 |
- PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
230 |
-+set_target_properties(storage_client PROPERTIES |
231 |
-+ VERSION ${STORAGE_CLIENT_VERSION_MAJOR}.${STORAGE_CLIENT_VERSION_MINOR}.${STORAGE_CLIENT_VERSION_PATCH} |
232 |
-+ SOVERSION ${STORAGE_CLIENT_VERSION_MAJOR}) |
233 |
- |
234 |
- add_library(storage_client_testing |
235 |
- testing/canonical_errors.h |
236 |
-@@ -326,20 +329,20 @@ install(TARGETS storage_common_options nlohmann_json |
237 |
- |
238 |
- # Export the CMake targets to make it easy to create configuration files. |
239 |
- install(EXPORT storage-targets |
240 |
-- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/storage_client") |
241 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
242 |
- |
243 |
- install(TARGETS storage_client |
244 |
- EXPORT storage-targets |
245 |
- RUNTIME DESTINATION bin |
246 |
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
247 |
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
248 |
--install(DIRECTORY . DESTINATION include/storage/client |
249 |
-+install(DIRECTORY . DESTINATION include/google/cloud/storage/client |
250 |
- FILES_MATCHING |
251 |
- PATTERN "*.h" |
252 |
- PATTERN "testing/*" |
253 |
- EXCLUDE) |
254 |
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/version_info.h DESTINATION |
255 |
-- include/storage/client) |
256 |
-+ include/google/cloud/storage/client) |
257 |
- |
258 |
- # Setup global variables used in the following *.in files. |
259 |
- set(GOOGLE_CLOUD_CPP_CONFIG_VERSION_MAJOR ${STORAGE_CLIENT_VERSION_MAJOR}) |
260 |
-@@ -362,5 +365,4 @@ configure_file("${PROJECT_SOURCE_DIR}/google/cloud/config-version.cmake.in" |
261 |
- "storage_client-config-version.cmake" @ONLY) |
262 |
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/storage_client-config.cmake" |
263 |
- "${CMAKE_CURRENT_BINARY_DIR}/storage_client-config-version.cmake" |
264 |
-- DESTINATION |
265 |
-- "${CMAKE_INSTALL_LIBDIR}/cmake/storage_client") |
266 |
-+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules") |
267 |
--- |
268 |
-2.16.4 |
269 |
- |
270 |
|
271 |
diff --git a/net-libs/google-cloud-cpp/files/0002-cmake-set-library-soversions.patch b/net-libs/google-cloud-cpp/files/0002-cmake-set-library-soversions.patch |
272 |
new file mode 100644 |
273 |
index 00000000000..74a57711ed6 |
274 |
--- /dev/null |
275 |
+++ b/net-libs/google-cloud-cpp/files/0002-cmake-set-library-soversions.patch |
276 |
@@ -0,0 +1,130 @@ |
277 |
+From b1d6f58033be92661f91b221b878e333eb02fd7f Mon Sep 17 00:00:00 2001 |
278 |
+From: Jason Zaman <jason@×××××××××.com> |
279 |
+Date: Fri, 7 Sep 2018 22:35:24 +0800 |
280 |
+Subject: [PATCH 2/2] cmake: set library soversions |
281 |
+ |
282 |
+Set library soversions so CMake sets the symlinks and soversions |
283 |
+properly. Install the cmake files in the correct dir. |
284 |
+ |
285 |
+Signed-off-by: Jason Zaman <jason@×××××××××.com> |
286 |
+--- |
287 |
+ google/cloud/CMakeLists.txt | 7 +++++++ |
288 |
+ google/cloud/bigtable/CMakeLists.txt | 14 ++++++++++++++ |
289 |
+ google/cloud/firestore/CMakeLists.txt | 12 ++++++++++-- |
290 |
+ google/cloud/storage/CMakeLists.txt | 9 ++++++++- |
291 |
+ 4 files changed, 39 insertions(+), 3 deletions(-) |
292 |
+ |
293 |
+diff --git a/google/cloud/CMakeLists.txt b/google/cloud/CMakeLists.txt |
294 |
+index 3f3f8742..442f4e17 100644 |
295 |
+--- a/google/cloud/CMakeLists.txt |
296 |
++++ b/google/cloud/CMakeLists.txt |
297 |
+@@ -98,6 +98,13 @@ target_include_directories(google_cloud_cpp_common |
298 |
+ $<INSTALL_INTERFACE:include>) |
299 |
+ target_compile_options(google_cloud_cpp_common |
300 |
+ PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
301 |
++set_target_properties( |
302 |
++ google_cloud_cpp_common |
303 |
++ PROPERTIES |
304 |
++ VERSION |
305 |
++ ${GOOGLE_CLOUD_CPP_VERSION_MAJOR}.${GOOGLE_CLOUD_CPP_VERSION_MINOR}.${GOOGLE_CLOUD_CPP_VERSION_PATCH} |
306 |
++ SOVERSION |
307 |
++ ${GOOGLE_CLOUD_CPP_VERSION_MAJOR}) |
308 |
+ |
309 |
+ include(CreateBazelConfig) |
310 |
+ create_bazel_config(google_cloud_cpp_common) |
311 |
+diff --git a/google/cloud/bigtable/CMakeLists.txt b/google/cloud/bigtable/CMakeLists.txt |
312 |
+index 9ed778eb..fd9c8797 100644 |
313 |
+--- a/google/cloud/bigtable/CMakeLists.txt |
314 |
++++ b/google/cloud/bigtable/CMakeLists.txt |
315 |
+@@ -102,6 +102,13 @@ target_include_directories(bigtable_protos |
316 |
+ $<INSTALL_INTERFACE:include>) |
317 |
+ target_compile_options(bigtable_protos |
318 |
+ PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
319 |
++set_target_properties( |
320 |
++ bigtable_protos |
321 |
++ PROPERTIES |
322 |
++ VERSION |
323 |
++ ${BIGTABLE_CLIENT_VERSION_MAJOR}.${BIGTABLE_CLIENT_VERSION_MINOR}.${BIGTABLE_CLIENT_VERSION_PATCH} |
324 |
++ SOVERSION |
325 |
++ ${BIGTABLE_CLIENT_VERSION_MAJOR}) |
326 |
+ add_library(bigtable::protos ALIAS bigtable_protos) |
327 |
+ |
328 |
+ # Enable unit tests |
329 |
+@@ -206,6 +213,13 @@ target_include_directories(bigtable_client |
330 |
+ $<INSTALL_INTERFACE:include>) |
331 |
+ target_compile_options(bigtable_client |
332 |
+ PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
333 |
++set_target_properties( |
334 |
++ bigtable_client |
335 |
++ PROPERTIES |
336 |
++ VERSION |
337 |
++ ${BIGTABLE_CLIENT_VERSION_MAJOR}.${BIGTABLE_CLIENT_VERSION_MINOR}.${BIGTABLE_CLIENT_VERSION_PATCH} |
338 |
++ SOVERSION |
339 |
++ ${BIGTABLE_CLIENT_VERSION_MAJOR}) |
340 |
+ add_library(bigtable::client ALIAS bigtable_client) |
341 |
+ |
342 |
+ include(CreateBazelConfig) |
343 |
+diff --git a/google/cloud/firestore/CMakeLists.txt b/google/cloud/firestore/CMakeLists.txt |
344 |
+index 88c5ad6d..c69e48fd 100644 |
345 |
+--- a/google/cloud/firestore/CMakeLists.txt |
346 |
++++ b/google/cloud/firestore/CMakeLists.txt |
347 |
+@@ -62,6 +62,13 @@ target_include_directories(firestore_client |
348 |
+ $<INSTALL_INTERFACE:include>) |
349 |
+ target_compile_options(firestore_client |
350 |
+ PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
351 |
++set_target_properties( |
352 |
++ firestore_client |
353 |
++ PROPERTIES |
354 |
++ VERSION |
355 |
++ ${FIRESTORE_CLIENT_VERSION_MAJOR}.${FIRESTORE_CLIENT_VERSION_MINOR}.${FIRESTORE_CLIENT_VERSION_PATCH} |
356 |
++ SOVERSION |
357 |
++ ${FIRESTORE_CLIENT_VERSION_MAJOR}) |
358 |
+ add_library(firestore::client ALIAS firestore_client) |
359 |
+ |
360 |
+ include(CreateBazelConfig) |
361 |
+@@ -104,7 +111,8 @@ install(TARGETS |
362 |
+ |
363 |
+ # The exports can only be installed if all the dependencies are installed. CMake |
364 |
+ # needs to know where the submodules will be installed from, |
365 |
+-install(EXPORT firestore-targets DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake) |
366 |
++install(EXPORT firestore-targets |
367 |
++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/firestore_client") |
368 |
+ |
369 |
+ install(TARGETS firestore_client |
370 |
+ EXPORT firestore-targets |
371 |
+@@ -142,4 +150,4 @@ install( |
372 |
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config.cmake" |
373 |
+ "${CMAKE_CURRENT_BINARY_DIR}/firestore_client-config-version.cmake" |
374 |
+ DESTINATION |
375 |
+- ${CMAKE_INSTALL_DATAROOTDIR}/cmake) |
376 |
++ "${CMAKE_INSTALL_LIBDIR}/cmake/firestore_client") |
377 |
+diff --git a/google/cloud/storage/CMakeLists.txt b/google/cloud/storage/CMakeLists.txt |
378 |
+index cef3954b..912391cc 100644 |
379 |
+--- a/google/cloud/storage/CMakeLists.txt |
380 |
++++ b/google/cloud/storage/CMakeLists.txt |
381 |
+@@ -205,6 +205,13 @@ target_include_directories(storage_client |
382 |
+ $<INSTALL_INTERFACE:include>) |
383 |
+ target_compile_options(storage_client |
384 |
+ PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG}) |
385 |
++set_target_properties( |
386 |
++ storage_client |
387 |
++ PROPERTIES |
388 |
++ VERSION |
389 |
++ ${STORAGE_CLIENT_VERSION_MAJOR}.${STORAGE_CLIENT_VERSION_MINOR}.${STORAGE_CLIENT_VERSION_PATCH} |
390 |
++ SOVERSION |
391 |
++ ${STORAGE_CLIENT_VERSION_MAJOR}) |
392 |
+ |
393 |
+ add_library(storage_client_testing |
394 |
+ testing/canonical_errors.h |
395 |
+@@ -315,7 +322,7 @@ install(TARGETS storage_client |
396 |
+ RUNTIME DESTINATION bin |
397 |
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
398 |
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
399 |
+-install(DIRECTORY . DESTINATION include/storage/client |
400 |
++install(DIRECTORY . DESTINATION include/google/cloud/storage/client |
401 |
+ FILES_MATCHING |
402 |
+ PATTERN "*.h" |
403 |
+ PATTERN "testing/*" |
404 |
+-- |
405 |
+2.16.4 |
406 |
+ |
407 |
|
408 |
diff --git a/net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0.ebuild b/net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0-r1.ebuild |
409 |
similarity index 93% |
410 |
rename from net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0.ebuild |
411 |
rename to net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0-r1.ebuild |
412 |
index 0cc60cd4db4..c1e409f155e 100644 |
413 |
--- a/net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0.ebuild |
414 |
+++ b/net-libs/google-cloud-cpp/google-cloud-cpp-0.2.0-r1.ebuild |
415 |
@@ -27,8 +27,9 @@ DEPEND="${RDEPEND} |
416 |
|
417 |
DOCS=( README.md ) |
418 |
PATCHES=( |
419 |
+ "${FILESDIR}/0001-Make-the-install-target-work.patch" |
420 |
"${FILESDIR}/0001-cmake-Fix-GOOGLE_CLOUD_CPP_GRPC_PROVIDER-pkg-config.patch" |
421 |
- "${FILESDIR}/0002-cmake-fix-library-issues.patch" |
422 |
+ "${FILESDIR}/0002-cmake-set-library-soversions.patch" |
423 |
) |
424 |
|
425 |
src_prepare() { |