From ec7c7afbe7576598a75a33d6c1d6162dcbc3fe27 Mon Sep 17 00:00:00 2001 From: Daniel Marshall Date: Fri, 5 Jun 2020 20:01:52 +0100 Subject: [PATCH] [p-ranav-csv2] Add new port (#11725) --- ports/p-ranav-csv/CONTROL | 2 +- ports/p-ranav-csv2/CONTROL | 4 ++++ ports/p-ranav-csv2/portfile.cmake | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ports/p-ranav-csv2/CONTROL create mode 100644 ports/p-ranav-csv2/portfile.cmake diff --git a/ports/p-ranav-csv/CONTROL b/ports/p-ranav-csv/CONTROL index 958341f9ed..6ab672e3d1 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 0000000000..349d7df53e --- /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 0000000000..32942c90e2 --- /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})