aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/stc/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/stc/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/stc/portfile.cmake')
-rw-r--r--vcpkg/ports/stc/portfile.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/stc/portfile.cmake b/vcpkg/ports/stc/portfile.cmake
new file mode 100644
index 0000000..0f77a18
--- /dev/null
+++ b/vcpkg/ports/stc/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO stclib/STC
+ REF "v${VERSION}"
+ SHA512 99ac97d4849e548c54d564e822cec36be6436b976546af1e8f12757764831c14229f958e7064ab8802e74131831a0016cc28649df24088c415ab4cdc65dad076
+ HEAD_REF master
+ PATCHES
+ # TODO: remove this patch when new version is released
+ add-pkg-conf.patch
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${BUILD_OPTIONS}
+ -Dcheckscoped=disabled
+ -Dtests=disabled
+ -Dexamples=disabled
+)
+vcpkg_install_meson()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")