textproc/libtre 0.8.0_3 MidnightBSD
Lightweight fully POSIX compliant regexp matching library
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2
- Categories
- textproc
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
| System | Port | Version |
|---|---|---|
| MidnightBSD | textproc/libtre | 0.8.0_3 |
| FreeBSD | textproc/libtre | 0.8.0_4 |
| DragonFly | textproc/libtre | 0.8.0_4 |
Install
Binary package:
mport install libtre
From mports:
cd /usr/mports/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
Dependencies
No port depends on this one.
Configuration
Options name: textproc_libtre
| Option | Default | Description |
|---|---|---|
| DOCS | off | |
| NLS | off | |
| OPTIMIZED_CFLAGS | off | |
| PGO | off |
- USES
- libtool pathfix pkgconfig tar:bzip2
- Service scripts
- none
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
| File | Size | SHA256 |
|---|---|---|
| tre-0.8.0.tar.bz2 | 380714 | 8dc642c2cde02b2dac6802cdbe2cda201daf79c4ebcbb3ea133915edf1636658 |
Master sites 2
- http://laurikari.net/tre/
- LOCAL/bf