aboutsummaryrefslogtreecommitdiff
path: root/ports/rapidcsv
diff options
context:
space:
mode:
Diffstat (limited to 'ports/rapidcsv')
-rw-r--r--ports/rapidcsv/portfile.cmake16
-rw-r--r--ports/rapidcsv/vcpkg.json12
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/rapidcsv/portfile.cmake b/ports/rapidcsv/portfile.cmake
new file mode 100644
index 000000000..9e2654e79
--- /dev/null
+++ b/ports/rapidcsv/portfile.cmake
@@ -0,0 +1,16 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO d99kris/rapidcsv
+ REF v8.50
+ SHA512 97eb3eb8e2bbd45d128a73129825b0ce28bf36db14ae21f759b46fefce98980743397e1d34df58cb48707cde0fea9b092438d7720bf67a40e8cd5f289395ba40
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/rapidcsv/vcpkg.json b/ports/rapidcsv/vcpkg.json
new file mode 100644
index 000000000..3b5257e01
--- /dev/null
+++ b/ports/rapidcsv/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "rapidcsv",
+ "version": "8.50",
+ "description": "Rapidcsv is a C++ header-only library for CSV parsing.",
+ "homepage": "https://github.com/d99kris/rapidcsv/",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}