Import cl-ppcre-unicode-2.0.3 as wip/cl-ppcre-unicode.
CL-PPCRE is a portable regular expression library for Common Lisp which has the following features: - It is compatible with Perl. - It is pretty fast. - It is portable between ANSI-compliant Common Lisp implementations. - It is thread-safe. - In addition to specifying regular expressions as strings like in Perl you can also use S-expressions. - It comes with a BSD-style license so you can basically do with it whatever you want. CL-PPCRE-UNICODE is CL-PPCRE with unicode extensions.
This commit is contained in:
parent
ec8efba7c8
commit
fa2b4e3cef
|
@ -0,0 +1,13 @@
|
|||
CL-PPCRE is a portable regular expression library for Common Lisp which has the
|
||||
following features:
|
||||
|
||||
- It is compatible with Perl.
|
||||
- It is pretty fast.
|
||||
- It is portable between ANSI-compliant Common Lisp implementations.
|
||||
- It is thread-safe.
|
||||
- In addition to specifying regular expressions as strings like in Perl you can
|
||||
also use S-expressions.
|
||||
- It comes with a BSD-style license so you can basically do with it whatever
|
||||
you want.
|
||||
|
||||
CL-PPCRE-UNICODE is CL-PPCRE with unicode extensions.
|
|
@ -0,0 +1,59 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2011/02/22 16:33:55 ddeus Exp $
|
||||
#
|
||||
|
||||
VERSION= 2.0.3
|
||||
SHORTNAME= ppcre
|
||||
DISTNAME= cl-${SHORTNAME}
|
||||
PKGNAME= ${LISP_PREFIX}-${SHORTNAME}-unicode-${VERSION}
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://weitz.de/files/
|
||||
|
||||
MAINTAINER= ddeus.pkgsrc@mailnull.com
|
||||
HOMEPAGE= http://weitz.de/cl-fad/
|
||||
COMMENT= CL-PPCRE-UNICODE is the CL-PPCRE package with Unicode support
|
||||
LICENSE= modified-bsd
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}-${VERSION}
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mecl)
|
||||
|
||||
LISP_PREFIX= ecl
|
||||
USE_LANGUAGES+= c
|
||||
USE_TOOLS+= install find mkdir
|
||||
|
||||
ECL_VERSION!= cd ../../lang/ecl && ${MAKE} show-var VARNAME=PKGVERSION_NOREV
|
||||
DEPENDS+= ecl-${ECL_VERSION}{,nb*}:../../lang/ecl
|
||||
DEPENDS+= ecl-ppcre-${VERSION}:../../wip/cl-ppcre
|
||||
DEPENDS+= ecl-unicode:../../wip/cl-unicode
|
||||
|
||||
ECL_PATH= lib/ecl-${ECL_VERSION}/
|
||||
PLIST_SUBST+= ECL_PATH="${ECL_PATH}"
|
||||
PLIST_SUBST+= LISP="${LISP_PREFIX}"
|
||||
INSTALLATION_DIRS+= ${ECL_PATH}
|
||||
|
||||
|
||||
do-build:
|
||||
( cd ${WRKSRC} && ${PREFIX}/bin/ecl -q -norc \
|
||||
-eval "(let ((*load-verbose* nil)) (require 'asdf))" \
|
||||
-eval "(setf asdf::*user-cache* \"${WRKSRC}/build/\")" \
|
||||
-eval "(push #P\"${WRKSRC}/\" asdf::*central-registry*)" \
|
||||
-eval "(asdf:oos 'asdf:load-fasl-op :${DISTNAME}-unicode)" \
|
||||
-eval "(quit)" </dev/null )
|
||||
${FIND} ${WRKSRC} -name '*.fasb' -exec ${CP} {} ${WRKSRC}/build/ \;
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/build/${DISTNAME}-unicode.fasb \
|
||||
${DESTDIR}${PREFIX}/${ECL_PATH}${DISTNAME}-unicode.fas
|
||||
${INSTALL_DATA} ${FILESDIR}/ecl-${SHORTNAME}-unicode.asd \
|
||||
${DESTDIR}${PREFIX}/${ECL_PATH}${DISTNAME}-unicode.asd
|
||||
|
||||
.include "../../lang/ecl/buildlink3.mk"
|
||||
|
||||
.endif
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,3 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/22 16:33:55 ddeus Exp $
|
||||
${PLIST.ecl}${ECL_PATH}cl-ppcre-unicode.asd
|
||||
${PLIST.ecl}${ECL_PATH}cl-ppcre-unicode.fas
|
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2011/02/22 16:33:55 ddeus Exp $
|
||||
|
||||
SHA1 (cl-ppcre.tar.gz) = 81e720aac06f1e6183177f762cc0e508d4c0262b
|
||||
RMD160 (cl-ppcre.tar.gz) = feb7977d6a51f20f834e9aec2eeddf0c65f006bd
|
||||
Size (cl-ppcre.tar.gz) = 157665 bytes
|
|
@ -0,0 +1,5 @@
|
|||
(DEFSYSTEM "cl-ppcre-unicode"
|
||||
:DEPENDS-ON (:cl-ppcre :cl-unicode)
|
||||
:CLASS ASDF::PREBUILT-SYSTEM
|
||||
:LIB "SYS:cl-ppcre-unicode"
|
||||
:COMPONENTS ((:COMPILED-FILE "cl-ppcre-unicode")))
|
|
@ -0,0 +1,16 @@
|
|||
# $NetBSD: options.mk,v 1.1.1.1 2011/02/22 16:33:55 ddeus Exp $
|
||||
#
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.${SHORTNAME}
|
||||
PKG_OPTIONS_REQUIRED_GROUPS= lisp
|
||||
PKG_OPTIONS_GROUP.lisp= ecl
|
||||
PKG_SUGGESTED_OPTIONS+= ecl
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
PLIST_VARS+= ${PKG_OPTIONS_GROUP.lisp}
|
||||
.for opt in ${PKG_OPTIONS_GROUP.lisp}
|
||||
. if !empty(PKG_OPTIONS:M${opt})
|
||||
PLIST.${opt}= yes
|
||||
. endif
|
||||
.endfor
|
Loading…
Reference in New Issue