aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-04-28 21:26:31 -0500
committerGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-04-28 19:26:31 -0700
commit81cc0f387e0af8a8445528f33ed1a4f4e8d93555 (patch)
treed3975e6e9763aadfe01e2ab6e6d5431a473d3e72
parentb500a0dc22786353f60432a50e719b6df307666c (diff)
downloadvcpkg-81cc0f387e0af8a8445528f33ed1a4f4e8d93555.tar.gz
vcpkg-81cc0f387e0af8a8445528f33ed1a4f4e8d93555.zip
[jsmn] Add new port (#6248)
-rw-r--r--ports/jsmn/CONTROL3
-rw-r--r--ports/jsmn/portfile.cmake16
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/jsmn/CONTROL b/ports/jsmn/CONTROL
new file mode 100644
index 000000000..b19e26585
--- /dev/null
+++ b/ports/jsmn/CONTROL
@@ -0,0 +1,3 @@
+Source: jsmn
+Version: 2019-04-27
+Description: A minimalistic JSON parser in C.
diff --git a/ports/jsmn/portfile.cmake b/ports/jsmn/portfile.cmake
new file mode 100644
index 000000000..0b7599ccb
--- /dev/null
+++ b/ports/jsmn/portfile.cmake
@@ -0,0 +1,16 @@
+# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO zserge/jsmn
+ REF fdcef3ebf886fa210d14956d3c068a653e76a24e
+ SHA512 ec3a6b106b868238aa626e5b4477ace4414f385a35c695a583598975202b73a2a446143eb5f0ea73b0a84113c610ea36e64341fccecd1d1ddd9080e06f599575
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/jsmn.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)