diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpp-peglib/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/cpp-peglib/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/cpp-peglib/portfile.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-peglib/portfile.cmake b/vcpkg/ports/cpp-peglib/portfile.cmake new file mode 100644 index 0000000..8034231 --- /dev/null +++ b/vcpkg/ports/cpp-peglib/portfile.cmake @@ -0,0 +1,16 @@ +#header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO yhirose/cpp-peglib + REF "v${VERSION}" + SHA512 09bd45132933b39c7b9c6026ca7149b79c6833b86037c18b2d101842cf48fe839188e215f6c4eba286f17a831887b9b34e59f43b9148729f5f8e7c56e0c829ba + HEAD_REF master +) + +file(COPY "${SOURCE_PATH}/peglib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cpp-peglib" RENAME copyright) + |