ports/113446: New port: textproc/py-libtre

bf bf2006a at yahoo.com
Thu Jun 7 10:50:01 UTC 2007


>Number:         113446
>Category:       ports
>Synopsis:       New port: textproc/py-libtre
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 07 10:50:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        6.2-Stable i386
>Organization:
-
>Environment:
>Description:
Make the python interface to textproc/libtre available in the ports system.  It was bundled with the rest of libtre, but had previously been neglected.  This version is dependent upon some form of the update proposed in PR ports/113441 being committed.



# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/textproc/py-libtre
#	/usr/ports/textproc/py-libtre/Makefile
#	/usr/ports/textproc/py-libtre/pkg-descr
#	/usr/ports/textproc/py-libtre/distinfo
#
echo c - /usr/ports/textproc/py-libtre
mkdir -p /usr/ports/textproc/py-libtre > /dev/null 2>&1
echo x - /usr/ports/textproc/py-libtre/Makefile
sed 's/^X//' >/usr/ports/textproc/py-libtre/Makefile << 'END-of-/usr/ports/textproc/py-libtre/Makefile'
X
X# Ports collection makefile for:	py-libtre
X# Date created:				6 June 2007
X# Whom:					bf
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libtre
XPORTVERSION=	0.7.5
XCATEGORIES=	textproc python
XMASTER_SITES=	http://laurikari.net/tre/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	tre-${PORTVERSION}
X
XMAINTAINER=	bf2006a at yahoo.com
XCOMMENT=	Python interface for the tre regular expressions library
X
XLIB_DEPENDS=	tre.6:${PORTSDIR}/textproc/libtre
X
XUSE_BZIP2=	yes
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
XBUILD_WRKSRC=	${WRKSRC}/python
XINSTALL_WRKSRC=	${WRKSRC}/python
XCFLAGS+=	-I${LOCALBASE}/include/ -L${LOCALBASE}/lib/
XPLIST_FILES=	%%PYTHON_SITELIBDIR%%/tre.so
X
X.if defined(WITH_OPTIMIZED_CFLAGS)
XCFLAGS+=	-Wuninitialized -ffast-math -finline-functions \
X		-fomit-frame-pointer -fexpensive-optimizations \
X		-fforce-mem -fforce-addr -O3
X.endif
X.include <bsd.port.mk>
END-of-/usr/ports/textproc/py-libtre/Makefile
echo x - /usr/ports/textproc/py-libtre/pkg-descr
sed 's/^X//' >/usr/ports/textproc/py-libtre/pkg-descr << 'END-of-/usr/ports/textproc/py-libtre/pkg-descr'
XLibtre is an attempt to create a lightweight, robust, and efficient fully
XPOSIX compliant regexp matching library. There is still some work left, but
Xthe results so far are promising.
X
XAt the core of Libtre is a new algorithm for regular expression matching with
Xsubmatch addressing. The algorithm uses linear worst-case time in the length
Xof the text being searched, and quadratic worst-case time in the length of the
Xused regular expression. In other words, the time complexity of the algorithm
Xis O(M2N), where M is the length of the regular expression and N is the length
Xof the text. The used space is also quadratic on the length of the regex, but
Xdoes not depend on the searched string. This quadratic behaviour occurs only
Xon pathological cases which are probably very rare in practice.
X
XWWW: http://laurikari.net/tre/
END-of-/usr/ports/textproc/py-libtre/pkg-descr
echo x - /usr/ports/textproc/py-libtre/distinfo
sed 's/^X//' >/usr/ports/textproc/py-libtre/distinfo << 'END-of-/usr/ports/textproc/py-libtre/distinfo'
XMD5 (tre-0.7.5.tar.bz2) = e72e5c94008865cf720992a0b25d6e89
XSHA256 (tre-0.7.5.tar.bz2) = 030f25e6e4c1714df013105494bc5e24b3e0acc65887158a52a03efd8e0759aa
XSIZE (tre-0.7.5.tar.bz2) = 396346
END-of-/usr/ports/textproc/py-libtre/distinfo
exit


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list