aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-Petal-CodePerl
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-05-26 18:16:31 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-05-26 18:16:31 +0000
commit79170ca03535dee4beaaf11a106a0a8099b2902e (patch)
treeb5131f6cc986743aa77439c8f01efa93d233eb6a /textproc/p5-Petal-CodePerl
parentc46f2e1665640010a3ccb79962b0a9bb5f1a4aba (diff)
downloadports-79170ca03535dee4beaaf11a106a0a8099b2902e.tar.gz
ports-79170ca03535dee4beaaf11a106a0a8099b2902e.zip
Notes
Diffstat (limited to 'textproc/p5-Petal-CodePerl')
-rw-r--r--textproc/p5-Petal-CodePerl/Makefile34
-rw-r--r--textproc/p5-Petal-CodePerl/distinfo3
-rw-r--r--textproc/p5-Petal-CodePerl/pkg-descr20
-rw-r--r--textproc/p5-Petal-CodePerl/pkg-plist17
4 files changed, 74 insertions, 0 deletions
diff --git a/textproc/p5-Petal-CodePerl/Makefile b/textproc/p5-Petal-CodePerl/Makefile
new file mode 100644
index 000000000000..121567cf43ef
--- /dev/null
+++ b/textproc/p5-Petal-CodePerl/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: p5-Petal-CodePerl
+# Date created: 26 May 2006
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Petal-CodePerl
+PORTVERSION= 0.06
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../../authors/id/F/FD/FDALY
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= Make Petal go faster by compiling the expressions
+
+BUILD_DEPENDS= ${SITE_PERL}/Petal.pm:${PORTSDIR}/textproc/p5-Petal \
+ ${SITE_PERL}/Parse/RecDescent.pm:${PORTSDIR}/devel/p5-Parse-RecDescent \
+ ${SITE_PERL}/Code/Perl.pm:${PORTSDIR}/devel/p5-Code-Perl
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+MAN3= Petal::CodePerl.3 Petal::CodePerl::Expr.3 \
+ Petal::CodePerl::Modifiers.3
+
+PERL_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Petal-CodePerl/distinfo b/textproc/p5-Petal-CodePerl/distinfo
new file mode 100644
index 000000000000..2c2c554e7509
--- /dev/null
+++ b/textproc/p5-Petal-CodePerl/distinfo
@@ -0,0 +1,3 @@
+MD5 (Petal-CodePerl-0.06.tar.gz) = 94c5733b2a0f7f606b070024995d268b
+SHA256 (Petal-CodePerl-0.06.tar.gz) = e2de78c5671de44ab95cc9f75fab0ecac8347494f900b02af6757a4d4b03e576
+SIZE (Petal-CodePerl-0.06.tar.gz) = 42974
diff --git a/textproc/p5-Petal-CodePerl/pkg-descr b/textproc/p5-Petal-CodePerl/pkg-descr
new file mode 100644
index 000000000000..19276b573a7d
--- /dev/null
+++ b/textproc/p5-Petal-CodePerl/pkg-descr
@@ -0,0 +1,20 @@
+This module provides a CodeGenerator for Petal that inherits almost
+everything from Petal::CodeGenerator but modifies how expressions are
+dealt with. Petal normally includes code like this
+
+ $hash->get( "not:user" )
+
+in the compiled template. This means the path has to be parsed and
+interpreted at runtime. Using Petal::CodePerl, Petal will now produce this
+
+ ! ($hash->{"user"})
+
+which will be much faster.
+
+It uses Parse::RecDescent to parse the PETALES expressions which makes it
+a bit slow to load the module but this won't matter much unless you have
+turned off caching. It won't matter at all for something like Apache's
+mod_perl.
+
+WWW: http://search.cpan.org/dist/Petal-CodePerl
+Author: Fergal Daly <fergal@esatclear.ie>
diff --git a/textproc/p5-Petal-CodePerl/pkg-plist b/textproc/p5-Petal-CodePerl/pkg-plist
new file mode 100644
index 000000000000..984f2234ee67
--- /dev/null
+++ b/textproc/p5-Petal-CodePerl/pkg-plist
@@ -0,0 +1,17 @@
+%%SITE_PERL%%/Petal/CodePerl.pm
+%%SITE_PERL%%/Petal/CodePerl/CodeGenerator.pm
+%%SITE_PERL%%/Petal/CodePerl/Compiler.pm
+%%SITE_PERL%%/Petal/CodePerl/Expr.pm
+%%SITE_PERL%%/Petal/CodePerl/Expr/Alternate.pm
+%%SITE_PERL%%/Petal/CodePerl/Expr/DerefTAL.pm
+%%SITE_PERL%%/Petal/CodePerl/Expr/PathExists.pm
+%%SITE_PERL%%/Petal/CodePerl/Expr/PerlSprintf.pm
+%%SITE_PERL%%/Petal/CodePerl/GrammarLoader.pm
+%%SITE_PERL%%/Petal/CodePerl/Modifiers.pm
+%%SITE_PERL%%/Petal/CodePerl/Parser.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Petal/CodePerl/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Petal/CodePerl
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Petal
+@dirrm %%SITE_PERL%%/Petal/CodePerl/Expr
+@dirrm %%SITE_PERL%%/Petal/CodePerl
+@dirrmtry %%SITE_PERL%%/Petal