1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Adding port textproc/p5-Parse-Flex, a fast, XS-based flex parser.

- minor 'make test' failure reported to vendor

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-05-30 22:13:43 +00:00
parent 103ae625ac
commit 9dee8b7d6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164011
5 changed files with 61 additions and 0 deletions

View File

@ -376,6 +376,7 @@
SUBDIR += p5-PPI
SUBDIR += p5-PPI-HTML
SUBDIR += p5-Parse-FixedLength
SUBDIR += p5-Parse-Flex
SUBDIR += p5-Parse-PhoneNumber
SUBDIR += p5-Parse-Syslog
SUBDIR += p5-Perl-Critic

View File

@ -0,0 +1,32 @@
# New ports collection makefile for: p5-Parse-Flex
# Date created: 30 May 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Parse-Flex
PORTVERSION= 0.11
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Parse
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= The Fastest Lexer in the West
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Parse::Flex.3 Parse::Flex::Generate.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (Parse-Flex-0.11.tar.gz) = df7abef53e9afa49e3510bf267a020c1
SIZE (Parse-Flex-0.11.tar.gz) = 10240

View File

@ -0,0 +1,18 @@
Parse::Flex works similar to Parse::Lex, but it uses XS for faster
performance.
This module allows you to construct a lexer analyzer with your custom
rules. Parse::Flex is not intended to be used directly; instead, use the
script makelexer.pl to submit your grammar file. The output of the script
is a custom shared library and a custom .pm module which, among other
things, will transparently load the library and provide interface to your
(custom) lexer. In other words, you supply a grammar.l file to
makelexer.pl and you receive Flex01.pm and Flex02.so . Then, use only the
Flex01.pm - since Flex01.pm will automatically load Flex01.so.
The grammar.l file requires the same syntax as flex(1); that is, the
actions are written in C . See the flex(1) documentation to learn the
syntax, or fetch the sample t/grammar.l file inside this package.
WWW: http://search.cpan.org/dist/Parse-Flex
Author: Ioannis Tambouras <ioannis@earthlink.net>

View File

@ -0,0 +1,8 @@
bin/makelexer.pl
%%SITE_PERL%%/Parse/Flex.pm
%%SITE_PERL%%/Parse/Flex/Generate.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/Flex/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/Flex
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse
@dirrm %%SITE_PERL%%/Parse/Flex
@dirrmtry %%SITE_PERL%%/Parse