diff options
author | aaron <aaron@FreeBSD.org> | 2006-05-27 02:16:31 +0800 |
---|---|---|
committer | aaron <aaron@FreeBSD.org> | 2006-05-27 02:16:31 +0800 |
commit | 9b27b3ea05a623e6a07a85d5634832374f8d531f (patch) | |
tree | a3736c9287706ace004982284fe9831c6571e547 /textproc | |
parent | 2b281c0a48b37833b6418a93d9018b6d23bb036c (diff) | |
download | freebsd-ports-gnome-9b27b3ea05a623e6a07a85d5634832374f8d531f.tar.gz freebsd-ports-gnome-9b27b3ea05a623e6a07a85d5634832374f8d531f.tar.zst freebsd-ports-gnome-9b27b3ea05a623e6a07a85d5634832374f8d531f.zip |
Adding port textproc/p5-Petal-CodePerl, Make Petal go faster by compiling the expression.
Approved by: tobez (implicit)
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-Petal-CodePerl/Makefile | 34 | ||||
-rw-r--r-- | textproc/p5-Petal-CodePerl/distinfo | 3 | ||||
-rw-r--r-- | textproc/p5-Petal-CodePerl/pkg-descr | 20 | ||||
-rw-r--r-- | textproc/p5-Petal-CodePerl/pkg-plist | 17 |
5 files changed, 75 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index a896ca95ff2d..db44a7bb29f4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -383,6 +383,7 @@ SUBDIR += p5-PerlPoint-Converters SUBDIR += p5-PerlPoint-Package SUBDIR += p5-Petal + SUBDIR += p5-Petal-CodePerl SUBDIR += p5-Plucene SUBDIR += p5-Plucene-Plugin-Analyzer-SnowballAnalyzer SUBDIR += p5-Pod-Constants 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 |