summaryrefslogtreecommitdiffstats
path: root/textproc/libtre
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-10-14 09:02:32 +0000
committerijliao <ijliao@FreeBSD.org>2002-10-14 09:02:32 +0000
commit0e39cbd181a4f80ff5080facd76fcb4e94f69d38 (patch)
tree433f139efaa32dba267c5facf7e94cf2590f828e /textproc/libtre
parentdf736db7160ea04769b6ce58310ade322709bb15 (diff)
downloadFreeBSD-ports-0e39cbd181a4f80ff5080facd76fcb4e94f69d38.zip
FreeBSD-ports-0e39cbd181a4f80ff5080facd76fcb4e94f69d38.tar.gz
add libtre 0.3.2
A lightweight fully POSIX compliant regexp matching library
Diffstat (limited to 'textproc/libtre')
-rw-r--r--textproc/libtre/Makefile26
-rw-r--r--textproc/libtre/distinfo1
-rw-r--r--textproc/libtre/pkg-comment1
-rw-r--r--textproc/libtre/pkg-descr14
-rw-r--r--textproc/libtre/pkg-plist5
5 files changed, 47 insertions, 0 deletions
diff --git a/textproc/libtre/Makefile b/textproc/libtre/Makefile
new file mode 100644
index 0000000..c41e6eb
--- /dev/null
+++ b/textproc/libtre/Makefile
@@ -0,0 +1,26 @@
+# ex:ts=8
+# Ports collection makefile for: libtre
+# Date created: Oct 14, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= libtre
+PORTVERSION= 0.3.2
+CATEGORIES= textproc
+MASTER_SITES= http://kouli.iki.fi/~vlaurika/libtre/
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_BZIP2= yes
+USE_LIBTOOL= yes
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500028
+IGNORE= "need wchar support"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/libtre/distinfo b/textproc/libtre/distinfo
new file mode 100644
index 0000000..4a3938f
--- /dev/null
+++ b/textproc/libtre/distinfo
@@ -0,0 +1 @@
+MD5 (libtre-0.3.2.tar.bz2) = baf104b2bcda81bc7fbf3950a5b6f2e4
diff --git a/textproc/libtre/pkg-comment b/textproc/libtre/pkg-comment
new file mode 100644
index 0000000..0c9f87b
--- /dev/null
+++ b/textproc/libtre/pkg-comment
@@ -0,0 +1 @@
+A lightweight fully POSIX compliant regexp matching library
diff --git a/textproc/libtre/pkg-descr b/textproc/libtre/pkg-descr
new file mode 100644
index 0000000..fbd31c2
--- /dev/null
+++ b/textproc/libtre/pkg-descr
@@ -0,0 +1,14 @@
+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.
+
+WWW: http://kouli.iki.fi/~vlaurika/libtre/
diff --git a/textproc/libtre/pkg-plist b/textproc/libtre/pkg-plist
new file mode 100644
index 0000000..3ae73f0
--- /dev/null
+++ b/textproc/libtre/pkg-plist
@@ -0,0 +1,5 @@
+include/regex.h
+lib/libtre.a
+lib/libtre.la
+lib/libtre.so
+lib/libtre.so.0
OpenPOWER on IntegriCloud