BSD Ports

textproc/libtre 0.8.0_4 FreeBSD

Lightweight fully POSIX compliant regexp matching library

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
textproc
Package size
72.7 KiB, 253.4 KiB installed

Description

Libtre is an attempt to create a lightweight, robust, and efficient fully POSIX compliant regexp matching library. There is still some work left, but the results so far are promising.

At the core of Libtre is a new algorithm for regular expression matching with submatch addressing. The algorithm uses linear worst-case time in the length of the text being searched, and quadratic worst-case time in the length of the used regular expression. In other words, the time complexity of the algorithm is O(M2N), where M is the length of the regular expression and N is the length of the text. The used space is also quadratic on the length of the regex, but does not depend on the searched string. This quadratic behaviour occurs only on pathological cases which are probably very rare in practice.

In the other systems

SystemPortVersion
FreeBSDtextproc/libtre0.8.0_4
DragonFlytextproc/libtre0.8.0_4
MidnightBSDtextproc/libtre0.8.0_3

Install

Binary package:

pkg install libtre

From the ports tree:

cd /usr/ports/textproc/libtre/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libtre>0:textproc/libtre
LIB_DEPENDS=	libtre.so:textproc/libtre

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:latest0.8.0_40.8.0_40.8.0_30.8.0_40.8.0_4
FreeBSD:14:quarterly0.8.0_40.8.0_4n/a0.8.0_40.8.0_4
FreeBSD:15:latest0.8.0_40.8.0_4n/a0.8.0_40.8.0_4
FreeBSD:15:quarterly0.8.0_40.8.0_4n/an/an/a
FreeBSD:16:latest0.8.0_40.8.0_4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

Build dependencies 12
Run dependencies 2

Configuration

Options name: textproc_libtre

OptionDefaultDescription
DOCSoffBuild and/or install documentation
NLSoffNative Language Support
OPTIMIZED_CFLAGSoffUse extra compiler optimizations
PGOoffUse Profile-Guided Optimization
USES
libtool localbase:ldflags pathfix pkgconfig tar:bzip2
Service scripts
none

Message after installing

===>   NOTICE:

The libtre port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

Manual pages 1
  • tre_agrep(1)
pkg-plist 14
  • bin/tre_agrep
  • include/tre/regex.h
  • include/tre/tre.h
  • include/tre/tre-config.h
  • lib/libtre.a
  • lib/libtre.so
  • lib/libtre.so.5
  • lib/libtre.so.5.0.0
  • libdata/pkgconfig/tre.pc
  • share/man/man1/tre_agrep.1.gz
  • share/locale/fi/LC_MESSAGES/tre.mo
  • share/locale/sv/LC_MESSAGES/tre.mo
  • share/doc/libtre/tre-api.html
  • share/doc/libtre/tre-syntax.html
distinfo 1
FileSizeSHA256
tre-0.8.0.tar.bz23807148dc642c2cde02b2dac6802cdbe2cda201daf79c4ebcbb3ea133915edf1636658
Master sites 2
  • http://laurikari.net/tre/
  • LOCAL/bf

Commit history 0

No commits in the history this site was built from.