aboutsummaryrefslogtreecommitdiff
path: root/ports/rapidjson
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:50:08 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:54:03 -0700
commitccca198c1b1730b0241911cb56dc8e3504958b2a (patch)
treea2dd9b8b087a09afdcecc5cbb3377bed15127eb2 /ports/rapidjson
downloadvcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz
vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip
Initial commit
Diffstat (limited to 'ports/rapidjson')
-rw-r--r--ports/rapidjson/CONTROL3
-rw-r--r--ports/rapidjson/portfile.cmake15
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/rapidjson/CONTROL b/ports/rapidjson/CONTROL
new file mode 100644
index 000000000..2ef641783
--- /dev/null
+++ b/ports/rapidjson/CONTROL
@@ -0,0 +1,3 @@
+Source: rapidjson
+Version: 1.0.2-1
+Description: A fast JSON parser/generator for C++ with both SAX/DOM style API <http://rapidjson.org/>
diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake
new file mode 100644
index 000000000..6d5cdadc6
--- /dev/null
+++ b/ports/rapidjson/portfile.cmake
@@ -0,0 +1,15 @@
+include(winports_common_functions)
+vcpkg_download_distfile(ARCHIVE
+ URL "https://github.com/miloyip/rapidjson/archive/879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
+ FILENAME "rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0.zip"
+ MD5 5394c3bc23177b000e1992fb989edc53
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Put the licence file where vcpkg expects it
+file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright)
+
+# Copy the rapidjson header files
+file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidjson-879def80f2e466cdf4c86dc7e53ea2dd4cafaea0/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")
+vcpkg_copy_pdbs()