devel/re2 20240702 MidnightBSD
Fast C++ regex library
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd3
- Categories
- devel
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.
RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input. RE2 implements memory limits, so that searches can be constrained to a fixed amount of memory. RE2 is engineered to use a small fixed C++ stack footprint no matter what inputs or regular expressions it must process; thus RE2 is useful in multithreaded environments where thread stacks cannot grow arbitrarily large.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/re2 | 20240702 |
| FreeBSD | devel/re2 | 20251105 |
| OpenBSD | textproc/re2 | 20251105p1 |
| NetBSD | devel/re2 | 20251105nb3 |
| DragonFly | devel/re2 | 20240702_1 |
| HardenedBSD | devel/re2 | 20251105 |
| GhostBSD | devel/re2 | 20251105 |
| OPNsense | devel/re2 | 20251105 |
Install
Binary package:
mport install re2
From mports:
cd /usr/mports/devel/re2 && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= re2>0:devel/re2
LIB_DEPENDS= libre2.so:devel/re2
Dependencies
As this port's Makefile names them.
Build 1
abseil>=20240116.2: devel/abseil
Library 1
libabsl_base.so: devel/abseil
Build dependencies 1
Run dependencies 1
Configuration
No options to configure.
- USES
- compiler:c++17-lang gmake localbase:ldflags pathfix pkgconfig
- Service scripts
- none
Files
pkg-plist 9
- include/re2/filtered_re2.h
- include/re2/re2.h
- include/re2/set.h
- include/re2/stringpiece.h
- lib/libre2.a
- lib/libre2.so
- lib/libre2.so.11
- lib/libre2.so.11.0.0
- libdata/pkgconfig/re2.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| re2-2024-07-02.tar.gz | 390672 | eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b |
Master sites 1
- https://github.com/google/re2/releases/download/${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}/