87.7. re2-2025.11.05
Google's linear-time regular expression library, with full Unicode properties from ICU
2025.11.05-1 · BSD-3-Clause · 1.7 SBU · 789.0 KiB, 13 files · 41_system, 272 of 1047 · ports/core/devlibs/re2
Homepage: https://github.com/google/re2
Depends on: cmake, ninja, pkgconf, abseil-cpp, icu.
Required by (2): mtxclient, nheko.
Sources: re2-2025.11.05.tar.gz (388.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install re2'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
-D RE2_USE_ICU=ON \
-D RE2_BUILD_TESTING=OFF \
-D RE2_TEST=OFF \
-D RE2_BENCHMARK=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
Libraries: libre2.so.
Directories: /usr/include/re2, /usr/lib/cmake/re2, /usr/share/licenses/re2.