diff options
| author | myd7349 <myd7349@gmail.com> | 2020-01-07 02:50:36 +0800 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2020-01-06 10:50:36 -0800 |
| commit | 7a25265e5dee1c754d6e19ffbf5dcfa28a2cd750 (patch) | |
| tree | cf14ca46f954d791ef6adbe0c157a819dc87c4ea | |
| parent | 6ffb134f22a61f1142f9cb519b12539a20fda1d5 (diff) | |
| download | vcpkg-7a25265e5dee1c754d6e19ffbf5dcfa28a2cd750.tar.gz vcpkg-7a25265e5dee1c754d6e19ffbf5dcfa28a2cd750.zip | |
[tabulate] Add new port (#9543)
* [tabulate] Add new port
* [tabulate] Update to 2019-01-06 to fix known issues
| -rw-r--r-- | ports/tabulate/CONTROL | 4 | ||||
| -rw-r--r-- | ports/tabulate/portfile.cmake | 26 |
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})
|
