aboutsummaryrefslogtreecommitdiff
path: root/ports/tabulate
diff options
context:
space:
mode:
authorJackBoosY <yuzaiyang@beyondsoft.com>2020-01-13 23:55:59 -0800
committerJackBoosY <yuzaiyang@beyondsoft.com>2020-01-13 23:55:59 -0800
commit2514481b42ebdeec28649582fc666955cf206c84 (patch)
tree60c9809a5c3c8adbad240a40b1088a6f8e42c019 /ports/tabulate
parentb751326c91c9a307aaf5e340b61ab9f2d1ad45a4 (diff)
parent28eee51adb36f2165be846e77ef7b3ee5b3f8789 (diff)
downloadvcpkg-2514481b42ebdeec28649582fc666955cf206c84.tar.gz
vcpkg-2514481b42ebdeec28649582fc666955cf206c84.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into dev/jack/upgrade_libi
Diffstat (limited to 'ports/tabulate')
-rw-r--r--ports/tabulate/CONTROL4
-rw-r--r--ports/tabulate/portfile.cmake26
2 files changed, 30 insertions, 0 deletions
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})