aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Marshall <xandan@gmail.com>2020-06-05 20:01:52 +0100
committerGitHub <noreply@github.com>2020-06-05 12:01:52 -0700
commitec7c7afbe7576598a75a33d6c1d6162dcbc3fe27 (patch)
treed74dcc6d2e241e7e81a9f9cc3c12b406d32a5c5a
parent5240c3feb5a8ae22a5f639d8f0ba5ea07ec5892e (diff)
downloadvcpkg-ec7c7afbe7576598a75a33d6c1d6162dcbc3fe27.tar.gz
vcpkg-ec7c7afbe7576598a75a33d6c1d6162dcbc3fe27.zip
[p-ranav-csv2] Add new port (#11725)
-rw-r--r--ports/p-ranav-csv/CONTROL2
-rw-r--r--ports/p-ranav-csv2/CONTROL4
-rw-r--r--ports/p-ranav-csv2/portfile.cmake25
3 files changed, 30 insertions, 1 deletions
diff --git a/ports/p-ranav-csv/CONTROL b/ports/p-ranav-csv/CONTROL
index 958341f9e..6ab672e3d 100644
--- a/ports/p-ranav-csv/CONTROL
+++ b/ports/p-ranav-csv/CONTROL
@@ -1,4 +1,4 @@
Source: p-ranav-csv
Version: 2019-07-11
-Description: CSV for modern C++
+Description: [deprecated] CSV for modern C++
Homepage: https://github.com/p-ranav/csv
diff --git a/ports/p-ranav-csv2/CONTROL b/ports/p-ranav-csv2/CONTROL
new file mode 100644
index 000000000..349d7df53
--- /dev/null
+++ b/ports/p-ranav-csv2/CONTROL
@@ -0,0 +1,4 @@
+Source: p-ranav-csv2
+Version: 2020-06-02
+Homepage: https://github.com/p-ranav/csv2
+Description: CSV for modern C++
diff --git a/ports/p-ranav-csv2/portfile.cmake b/ports/p-ranav-csv2/portfile.cmake
new file mode 100644
index 000000000..32942c90e
--- /dev/null
+++ b/ports/p-ranav-csv2/portfile.cmake
@@ -0,0 +1,25 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO p-ranav/csv2
+ REF d659f90b637bb0de6c32246583fc4bb7caade215
+ SHA512 d00b1356907a7e22529e3ac4a7b979c6868311e8a98e4fd8b0a8b1f0d94b2425854242649a80a933084202834f5cee1fe17b51476fcc17e87b00e1e3cb8ed0e9
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DCSV2_BUILD_TESTS=OFF
+ -DCSV2_SAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
+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})