BSD Ports

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

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

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

Library 1

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
FileSizeSHA256
re2-2024-07-02.tar.gz390672eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b
Master sites 1
  • https://github.com/google/re2/releases/download/${PORTVERSION:C|(....)(..)(..)|\1-\2-\3|}/