BSD Ports

devel/re2 20251105 FreeBSD

Fast C++ regex library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
devel
Package size
256.7 KiB, 1330.0 KiB installed

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

SystemPortVersion
FreeBSDdevel/re220251105
OpenBSDtextproc/re220251105p1
NetBSDdevel/re220251105nb3
DragonFlydevel/re220240702_1
MidnightBSDdevel/re220240702

Install

Binary package:

pkg install re2

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2025110520251105202206012025072220251105
FreeBSD:14:quarterly2025110520251105n/a20250626b20251105
FreeBSD:15:latest2025110520251105n/a2025072220250722
FreeBSD:15:quarterly2025110520251105n/an/an/a
FreeBSD:16:latest2025110520251105n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Library 1

The full lists below include those, and their dependencies in turn.

Build dependencies 5
Run dependencies 1
Required by 390

The first 100 are listed.

Configuration

No options to configure.

USES
compiler:c++17-lang gmake localbase:ldflags 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
FileSizeSHA256
re2-2025-11-05.tar.gz39750487f6029d2f6de8aa023654240a03ada90e876ce9a4676e258dd01ea4c26ffd67
Master sites 1
  • https://github.com/google/re2/releases/download/${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}/

Commit history 0

No commits in the history this site was built from.