From 7a25265e5dee1c754d6e19ffbf5dcfa28a2cd750 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Tue, 7 Jan 2020 02:50:36 +0800 Subject: [tabulate] Add new port (#9543) * [tabulate] Add new port * [tabulate] Update to 2019-01-06 to fix known issues --- ports/tabulate/CONTROL | 4 ++++ ports/tabulate/portfile.cmake | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 ports/tabulate/CONTROL create mode 100644 ports/tabulate/portfile.cmake diff --git a/ports/tabulate/CONTROL b/ports/tabulate/CONTROL new file mode 100644 index 000000000..85dc7adef --- /dev/null +++ b/ports/tabulate/CONTROL @@ -0,0 +1,4 @@ +Source: tabulate +Version: 2019-01-06 +Description: Table maker for modern C++ +Homepage: https://github.com/p-ranav/tabulate diff --git a/ports/tabulate/portfile.cmake b/ports/tabulate/portfile.cmake new file mode 100644 index 000000000..284dc218a --- /dev/null +++ b/ports/tabulate/portfile.cmake @@ -0,0 +1,26 @@ +# header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO p-ranav/tabulate + REF 8f7a31b58806384b755858fe5e69593f9f216ed0 + SHA512 33a51617d363f9e8eed2153f60c5a087ed84edaeb21a0bc779d0af6228d4d7deb211e03c1eb7c8d56ac538de6a1cc0b641d219b4ff95d277f3daa7762f64a8f6 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -Dtabulate_BUILD_TESTS=OFF + -DSAMPLES=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE.termcolor DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) -- cgit v1.2.3