aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libversion/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/libversion/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libversion/portfile.cmake')
-rw-r--r--vcpkg/ports/libversion/portfile.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/libversion/portfile.cmake b/vcpkg/ports/libversion/portfile.cmake
new file mode 100644
index 0000000..e512f8c
--- /dev/null
+++ b/vcpkg/ports/libversion/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO repology/libversion
+ REF ${VERSION}
+ SHA512 5be723103f33d764ad9c426fb915144d7ab0ca0de9c2650099060a543d01184c68d0849325d964b4815372ae9d71c9dbcb114049828ccd87d6dd6ad186d91fee
+ HEAD_REF master
+ PATCHES
+ disable-test.patch
+ separate-build-type.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libversion)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")