aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-Parse-Flex
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-05-30 22:13:43 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-05-30 22:13:43 +0000
commit9dee8b7d6e7c4526f653622a8d5853e48092d295 (patch)
tree07225576514c720e95e905aee76eed235481ab30 /textproc/p5-Parse-Flex
parent103ae625ac26fca2ee938ce4ca624bad60e79d77 (diff)
downloadports-9dee8b7d6e7c4526f653622a8d5853e48092d295.tar.gz
ports-9dee8b7d6e7c4526f653622a8d5853e48092d295.zip
Notes
Diffstat (limited to 'textproc/p5-Parse-Flex')
-rw-r--r--textproc/p5-Parse-Flex/Makefile32
-rw-r--r--textproc/p5-Parse-Flex/distinfo2
-rw-r--r--textproc/p5-Parse-Flex/pkg-descr18
-rw-r--r--textproc/p5-Parse-Flex/pkg-plist8
4 files changed, 60 insertions, 0 deletions
diff --git a/textproc/p5-Parse-Flex/Makefile b/textproc/p5-Parse-Flex/Makefile
new file mode 100644
index 000000000000..5a3f99973673
--- /dev/null
+++ b/textproc/p5-Parse-Flex/Makefile
@@ -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>
diff --git a/textproc/p5-Parse-Flex/distinfo b/textproc/p5-Parse-Flex/distinfo
new file mode 100644
index 000000000000..5b0ac650c473
--- /dev/null
+++ b/textproc/p5-Parse-Flex/distinfo
@@ -0,0 +1,2 @@
+MD5 (Parse-Flex-0.11.tar.gz) = df7abef53e9afa49e3510bf267a020c1
+SIZE (Parse-Flex-0.11.tar.gz) = 10240
diff --git a/textproc/p5-Parse-Flex/pkg-descr b/textproc/p5-Parse-Flex/pkg-descr
new file mode 100644
index 000000000000..894ce62d3f33
--- /dev/null
+++ b/textproc/p5-Parse-Flex/pkg-descr
@@ -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>
diff --git a/textproc/p5-Parse-Flex/pkg-plist b/textproc/p5-Parse-Flex/pkg-plist
new file mode 100644
index 000000000000..e1b251f1c438
--- /dev/null
+++ b/textproc/p5-Parse-Flex/pkg-plist
@@ -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