aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/p-ranav-csv2
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/p-ranav-csv2
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/p-ranav-csv2')
-rw-r--r--vcpkg/ports/p-ranav-csv2/portfile.cmake26
-rw-r--r--vcpkg/ports/p-ranav-csv2/vcpkg.json17
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/p-ranav-csv2/portfile.cmake b/vcpkg/ports/p-ranav-csv2/portfile.cmake
new file mode 100644
index 0000000..4c83afb
--- /dev/null
+++ b/vcpkg/ports/p-ranav-csv2/portfile.cmake
@@ -0,0 +1,26 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO p-ranav/csv2
+ REF a20992f7a1b75215609037c4cc66f690e8691aab
+ SHA512 4459f34d3d3d2c256743d93dd9c66ac584366120e3c8829173e6f047bf7dce2b08284c82af360a274dea0d43f5d6e1c84bcae51bf4de97751cf41a2fd48cb62b
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCSV2_BUILD_TESTS=OFF
+ -DCSV2_SAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/licenses")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/LICENSE.mio" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+vcpkg_fixup_pkgconfig()
diff --git a/vcpkg/ports/p-ranav-csv2/vcpkg.json b/vcpkg/ports/p-ranav-csv2/vcpkg.json
new file mode 100644
index 0000000..c2dd345
--- /dev/null
+++ b/vcpkg/ports/p-ranav-csv2/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "p-ranav-csv2",
+ "version-date": "2020-12-14",
+ "port-version": 4,
+ "description": "CSV for modern C++",
+ "homepage": "https://github.com/p-ranav/csv2",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}