aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cctz
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cctz')
-rw-r--r--vcpkg/ports/cctz/portfile.cmake24
-rw-r--r--vcpkg/ports/cctz/vcpkg.json16
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/cctz/portfile.cmake b/vcpkg/ports/cctz/portfile.cmake
new file mode 100644
index 0000000..48e48f8
--- /dev/null
+++ b/vcpkg/ports/cctz/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO google/cctz
+ REF "v${VERSION}"
+ SHA512 e3eba96482b7745b145ecfd9b3b96b09d9120bde952dfdb66d625e642a463b87c74205b1813e3c4bd9b408410bb26fb095d034ca56a4953005bf0c988ccc741e
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TOOLS=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/cctz/vcpkg.json b/vcpkg/ports/cctz/vcpkg.json
new file mode 100644
index 0000000..0ef1a25
--- /dev/null
+++ b/vcpkg/ports/cctz/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "cctz",
+ "version": "2.5",
+ "description": "two libraries that cooperate with <chrono> to give C++ programmers all the necessary tools for computing with dates, times, and time zones in a simple and correct manner.",
+ "homepage": "https://github.com/google/cctz",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}