aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gli/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gli/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gli/portfile.cmake')
-rw-r--r--vcpkg/ports/gli/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/gli/portfile.cmake b/vcpkg/ports/gli/portfile.cmake
new file mode 100644
index 0000000..e4a4edb
--- /dev/null
+++ b/vcpkg/ports/gli/portfile.cmake
@@ -0,0 +1,27 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO g-truc/gli
+ REF 779b99ac6656e4d30c3b24e96e0136a59649a869
+ SHA512 6e7ab46b7943cb185c8c1f6e45b765f5463e03628973043a0e8b866458ccceb5249f69a2a77b5e69c73f3ace85af96c7b9b2137685ceb6d0fcb67e491a49be69
+ HEAD_REF master
+ PATCHES
+ disable-test.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gli)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+file(REMOVE "${CURRENT_PACKAGES_DIR}/include/gli/CMakeLists.txt")
+
+# Put the license file where vcpkg expects it
+# manual.md contains the "licenses" section for the project
+file(INSTALL "${SOURCE_PATH}/manual.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file