summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2019-06-03 02:55:36 +0800
committerJason Zaman <perfinion@gentoo.org>2019-06-05 00:32:42 +0800
commit40be63abc737a76dd5b43d73f36785db3da1c37a (patch)
treececf7b145577459cef832d95940a755a7c4a47fa /net-libs/google-cloud-cpp/files
parentdev-util/android-studio: bump 3.4.1 (diff)
downloadgentoo-40be63abc737a76dd5b43d73f36785db3da1c37a.tar.gz
gentoo-40be63abc737a76dd5b43d73f36785db3da1c37a.tar.bz2
gentoo-40be63abc737a76dd5b43d73f36785db3da1c37a.zip
net-libs/google-cloud-cpp: bump 0.9.0
Signed-off-by: Jason Zaman <perfinion@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'net-libs/google-cloud-cpp/files')
-rw-r--r--net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch b/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch
new file mode 100644
index 000000000000..b528647311eb
--- /dev/null
+++ b/net-libs/google-cloud-cpp/files/google-cloud-cpp-0.9.0-offline_nlohmannjson.patch
@@ -0,0 +1,15 @@
+diff --git a/cmake/DownloadNlohmannJson.cmake b/cmake/DownloadNlohmannJson.cmake
+index 1db953bed..4bbbe35fa 100644
+--- a/cmake/DownloadNlohmannJson.cmake
++++ b/cmake/DownloadNlohmannJson.cmake
+@@ -37,6 +37,10 @@ function (_download_json_hpp)
+ execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep
+ "${sleep_seconds}")
+ endif ()
++ if (EXISTS "${DEST}/json.hpp")
++ set(download_error_code 0)
++ break()
++ endif ()
+ file(DOWNLOAD "${JSON_URL}" "${DEST}/json.hpp" STATUS download_status)
+ list(GET download_status 0 download_error_code)
+ if (download_error_code EQUAL 0)