diff options
author | edwin <edwin@FreeBSD.org> | 2003-09-28 09:49:33 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-09-28 09:49:33 +0000 |
commit | 3313b1f214e2089fbb46eab477f496a0d63c18df (patch) | |
tree | 61691b8be3a215966ffacd914c189942b8421955 /textproc | |
parent | e843c434b6c1c739db0c78a55055449e5d524aa9 (diff) | |
download | FreeBSD-ports-3313b1f214e2089fbb46eab477f496a0d63c18df.zip FreeBSD-ports-3313b1f214e2089fbb46eab477f496a0d63c18df.tar.gz |
New Port: Portable Perl-Compatible Regexps for Common Lisp
cl-ppcre is a pure ANSI Common Lisp implementation of
Perl-compatible regular expressions.
This port depends on the previously submitted ASDF port.
It installs the sources and the .asd file. There are other
ports for binaries for the supported Lisp implementations.
PR: ports/52369
Submitted by: Henrik Motakef <henrik.motakef@web.de>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/cl-ppcre/Makefile | 55 | ||||
-rw-r--r-- | textproc/cl-ppcre/distinfo | 1 | ||||
-rw-r--r-- | textproc/cl-ppcre/files/patch-util.lisp | 17 | ||||
-rw-r--r-- | textproc/cl-ppcre/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/cl-ppcre/pkg-plist | 31 |
6 files changed, 111 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index a576c9d..689ae06 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -24,6 +24,7 @@ SUBDIR += cdiff SUBDIR += chpp SUBDIR += cl-meta + SUBDIR += cl-ppcre SUBDIR += coco SUBDIR += cocoon SUBDIR += code2html diff --git a/textproc/cl-ppcre/Makefile b/textproc/cl-ppcre/Makefile new file mode 100644 index 0000000..f2282a7 --- /dev/null +++ b/textproc/cl-ppcre/Makefile @@ -0,0 +1,55 @@ +# New ports collection Makefile for: cl-ppcre +# Date created: 16 May 2003 +# Whom: Henrik Motakef <henrik.motakef@web.de> +# +# $FreeBSD$ + +PORTNAME= cl-ppcre +PORTVERSION= 0.5.4 +CATEGORIES= textproc +MASTER_SITES= http://weitz.de/files/ +EXTRACT_SUFX= .tgz + +MAINTAINER= henrik.motakef@web.de +COMMENT= Portable Perl-Compatible Regular Expression for Common Lisp + +BUILD_DEPENDS= ${LOCALBASE}/lib/common-lisp/asdf/asdf.lisp:${PORTSDIR}/devel/cl-asdf +RUN_DEPENDS= ${LOCALBASE}/lib/common-lisp/asdf/asdf.lisp:${PORTSDIR}/devel/cl-asdf + +NO_BUILD= yes # installs the sources only +CL_LIBDIR= ${PREFIX}/lib/common-lisp + +do-install: + ${MKDIR} ${CL_LIBDIR}/cl-ppcre + ${INSTALL_DATA} ${WRKSRC}/api.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/closures.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/convert.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/lexer.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/load.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/optimize.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/packages.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/parser.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/regex-class.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/repetition-closures.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/scanner.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/specials.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/util.lisp ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/cl-ppcre.asd ${CL_LIBDIR}/cl-ppcre/ + ${INSTALL_DATA} ${WRKSRC}/cl-ppcre.system ${CL_LIBDIR}/cl-ppcre/ + ${LN} -s ${CL_LIBDIR}/cl-ppcre/cl-ppcre.asd ${CL_LIBDIR}/system-registry/cl-ppcre.asd + ${LN} -s ${CL_LIBDIR}/cl-ppcre/cl-ppcre.system ${CL_LIBDIR}/system-registry/cl-ppcre.system +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${MKDIR} ${DOCSDIR}/doc + ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/doc/ + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/cl-ppcre-test.* ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/perltest.pl ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/ppcre-tests.lisp ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/testdata ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/testinput ${EXAMPLESDIR} +.endif + +.include <bsd.port.mk> diff --git a/textproc/cl-ppcre/distinfo b/textproc/cl-ppcre/distinfo new file mode 100644 index 0000000..766336e --- /dev/null +++ b/textproc/cl-ppcre/distinfo @@ -0,0 +1 @@ +MD5 (cl-ppcre-0.5.4.tgz) = 4d1f50859604ab77ff2b52aec6199ce0 diff --git a/textproc/cl-ppcre/files/patch-util.lisp b/textproc/cl-ppcre/files/patch-util.lisp new file mode 100644 index 0000000..abc7bb8 --- /dev/null +++ b/textproc/cl-ppcre/files/patch-util.lisp @@ -0,0 +1,17 @@ +--- util.lisp.orig Fri May 16 23:16:22 2003 ++++ util.lisp Fri May 16 23:16:42 2003 +@@ -155,10 +155,10 @@ + (loop with min1 and min2 and min3 + and max1 and max2 and max3 + ;; loop through all characters in HASH, sorted by CHAR< +- for chr in (sort (loop for chr being the hash-keys of hash +- collect (if downcasep +- (char-downcase chr) +- chr)) ++ for chr in (sort (the list (loop for chr being the hash-keys of hash ++ collect (if downcasep ++ (char-downcase chr) ++ chr))) + #'char<) + for code = (char-code chr) + ;; MIN1, MAX1, etc. are _exclusive_ diff --git a/textproc/cl-ppcre/pkg-descr b/textproc/cl-ppcre/pkg-descr new file mode 100644 index 0000000..883b0a1 --- /dev/null +++ b/textproc/cl-ppcre/pkg-descr @@ -0,0 +1,6 @@ +CL-PPCRE is a fast, perl compatible implementation of regular expressions +written in portable, ANSI-compliant Common Lisp. + +WWW: http://www.weitz.de/cl-ppcre/ + +-- Henrik Motakef diff --git a/textproc/cl-ppcre/pkg-plist b/textproc/cl-ppcre/pkg-plist new file mode 100644 index 0000000..d0fdb8e --- /dev/null +++ b/textproc/cl-ppcre/pkg-plist @@ -0,0 +1,31 @@ +lib/common-lisp/cl-ppcre/api.lisp +lib/common-lisp/cl-ppcre/closures.lisp +lib/common-lisp/cl-ppcre/convert.lisp +lib/common-lisp/cl-ppcre/lexer.lisp +lib/common-lisp/cl-ppcre/load.lisp +lib/common-lisp/cl-ppcre/optimize.lisp +lib/common-lisp/cl-ppcre/packages.lisp +lib/common-lisp/cl-ppcre/parser.lisp +lib/common-lisp/cl-ppcre/regex-class.lisp +lib/common-lisp/cl-ppcre/repetition-closures.lisp +lib/common-lisp/cl-ppcre/scanner.lisp +lib/common-lisp/cl-ppcre/specials.lisp +lib/common-lisp/cl-ppcre/util.lisp +lib/common-lisp/cl-ppcre/cl-ppcre.asd +lib/common-lisp/cl-ppcre/cl-ppcre.system +lib/common-lisp/system-registry/cl-ppcre.asd +lib/common-lisp/system-registry/cl-ppcre.system +@dirrm lib/common-lisp/cl-ppcre +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/doc/index.html +%%PORTDOCS%%%%DOCSDIR%%/doc/benchmarks.2002-12-22.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%%/doc +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%%%EXAMPLESDIR%%/cl-ppcre-test.system +%%PORTDOCS%%%%EXAMPLESDIR%%/cl-ppcre-test.asd +%%PORTDOCS%%%%EXAMPLESDIR%%/ppcre-tests.lisp +%%PORTDOCS%%%%EXAMPLESDIR%%/perltest.pl +%%PORTDOCS%%%%EXAMPLESDIR%%/testdata +%%PORTDOCS%%%%EXAMPLESDIR%%/testinput +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |