aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-05-28 15:31:46 -0700
committerPhil Christensen <philc@microsoft.com>2019-05-28 15:31:46 -0700
commit28d313fb8303248a6626cfc7ce7ced984aceeafb (patch)
tree68d39639899980ede3ea0c2a3141ca39ee055d8f
parent40687837099f92999a1eee8b4a9d2a7be8d00d5e (diff)
downloadvcpkg-28d313fb8303248a6626cfc7ce7ced984aceeafb.tar.gz
vcpkg-28d313fb8303248a6626cfc7ce7ced984aceeafb.zip
[cppcodec] Add new port (#6651)
-rw-r--r--ports/cppcodec/CONTROL3
-rw-r--r--ports/cppcodec/portfile.cmake24
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/cppcodec/CONTROL b/ports/cppcodec/CONTROL
new file mode 100644
index 000000000..32f72bf2f
--- /dev/null
+++ b/ports/cppcodec/CONTROL
@@ -0,0 +1,3 @@
+Source: cppcodec
+Version: 0.2
+Description: Header-only C++11 library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32. \ No newline at end of file
diff --git a/ports/cppcodec/portfile.cmake b/ports/cppcodec/portfile.cmake
new file mode 100644
index 000000000..b445f4d47
--- /dev/null
+++ b/ports/cppcodec/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tplgy/cppcodec
+ REF v0.2
+ SHA512 50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTING=OFF
+
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+