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/re2 | |
Diffstat (limited to 'vcpkg/ports/re2')
| -rw-r--r-- | vcpkg/ports/re2/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/re2/vcpkg.json | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/re2/portfile.cmake b/vcpkg/ports/re2/portfile.cmake new file mode 100644 index 0000000..d874a3a --- /dev/null +++ b/vcpkg/ports/re2/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO google/re2 + REF 927f5d53caf8111721e734cf24724686bb745f55 + SHA512 35103a46a6350084f2d09ccfcf4322dac7364c61fbdad8bfcbd41b39990f83a260d2a8cd5ca019a3f24b71faf1588c7dabf07c3dddae5268bcc5b9502b87658a + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DRE2_TEST=OFF + -DRE2_BENCHMARK=OFF + -DRE2_BUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/re2/vcpkg.json b/vcpkg/ports/re2/vcpkg.json new file mode 100644 index 0000000..a75e5c8 --- /dev/null +++ b/vcpkg/ports/re2/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "re2", + "version-date": "2025-11-05", + "description": "RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.", + "homepage": "https://github.com/google/re2", + "license": "BSD-3-Clause", + "dependencies": [ + "abseil", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |