aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-04-12 02:05:50 -0700
committerGitHub <noreply@github.com>2019-04-12 02:05:50 -0700
commit39ba5b2b30c9f7b49e777a62093cdd49d05b53a9 (patch)
tree8a98b253393535089070f98d5660af9115e52c2c
parent6a9371b571645a7c0c0fb34f6acaca03d8e573e5 (diff)
parent3c3dc340b7bcc6792d0cb20d2f264f9eb953d011 (diff)
downloadvcpkg-39ba5b2b30c9f7b49e777a62093cdd49d05b53a9.tar.gz
vcpkg-39ba5b2b30c9f7b49e777a62093cdd49d05b53a9.zip
Merge pull request #6063 from cenit/dev/cenit/jsoncons
[jsoncons] add port
-rw-r--r--ports/jsoncons/CONTROL3
-rw-r--r--ports/jsoncons/portfile.cmake24
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/jsoncons/CONTROL b/ports/jsoncons/CONTROL
new file mode 100644
index 000000000..91896b6e2
--- /dev/null
+++ b/ports/jsoncons/CONTROL
@@ -0,0 +1,3 @@
+Source: jsoncons
+Version: v0.122.0
+Description: A C++, header-only library for constructing JSON and JSON-like text and binary data formats, with JSON Pointer, JSON Patch, JSONPath, CSV, MessagePack, CBOR, BSON, UBJSON
diff --git a/ports/jsoncons/portfile.cmake b/ports/jsoncons/portfile.cmake
new file mode 100644
index 000000000..c2218ba63
--- /dev/null
+++ b/ports/jsoncons/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO danielaparker/jsoncons
+ REF v0.122.0
+ SHA512 3fd52e45cc876e3cb3d773a2c7f022224dc1f288db89755d14a93a4e62977f767c6ccfb4aa22b2bc91664223bd15cd5c1bf408e8e298ad81f7b3ef811d8b3121
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/jsoncons)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/jsoncons/LICENSE ${CURRENT_PACKAGES_DIR}/share/jsoncons/copyright)