aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/termcolor
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/termcolor')
-rw-r--r--vcpkg/ports/termcolor/portfile.cmake16
-rw-r--r--vcpkg/ports/termcolor/vcpkg.json17
2 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/termcolor/portfile.cmake b/vcpkg/ports/termcolor/portfile.cmake
new file mode 100644
index 0000000..bde6d13
--- /dev/null
+++ b/vcpkg/ports/termcolor/portfile.cmake
@@ -0,0 +1,16 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ikalnytskyi/termcolor
+ REF b3cb0f365f8435588df7a6b12a82b2ac5fc1fe95 #v2.1.0
+ SHA512 8a95c654b68728a2258eba1c40daf0e5cc69ba24e15e839f75341a694a20a930c042820d68c661ca1971b68dcc93f895513dc73774818b94e205a3a73199b550
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${port}/")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/termcolor/vcpkg.json b/vcpkg/ports/termcolor/vcpkg.json
new file mode 100644
index 0000000..8ec81e1
--- /dev/null
+++ b/vcpkg/ports/termcolor/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "termcolor",
+ "version": "2.1.0",
+ "description": "Termcolor is a header-only C++ library for printing colored messages to the terminal.",
+ "homepage": "https://github.com/ikalnytskyi/termcolor",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}