aboutsummaryrefslogtreecommitdiff
path: root/textproc/libtre
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-14 09:02:32 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-14 09:02:32 +0000
commit2dc9facce7f1d38e7922c5f9e31216c851e76fec (patch)
tree119e8b358f57757ce0822faca54b5c727acc8992 /textproc/libtre
parente9a43d01202b75ba3be3936abaeecdba47dff61a (diff)
downloadports-2dc9facce7f1d38e7922c5f9e31216c851e76fec.tar.gz
ports-2dc9facce7f1d38e7922c5f9e31216c851e76fec.zip
add libtre 0.3.2
A lightweight fully POSIX compliant regexp matching library
Notes
Notes: svn path=/head/; revision=68024
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 000000000000..c41e6eba153e
--- /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 000000000000..4a3938f02646
--- /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 000000000000..0c9f87bcd0e9
--- /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 000000000000..fbd31c2cd868
--- /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 000000000000..3ae73f02bdac
--- /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