From 1a290667572a81eebcff8b2a140462bce7a0c39e Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 25 May 2004 08:47:41 +0000 Subject: Add p5-MasonX-Interp-WithCallbacks 1.11, mason callback support via Params::CallbackRequest. PR: ports/67023 Submitted by: Rod Taylor --- www/Makefile | 1 + www/p5-MasonX-Interp-WithCallbacks/Makefile | 26 ++++++++++++++++++++++++++ www/p5-MasonX-Interp-WithCallbacks/distinfo | 2 ++ www/p5-MasonX-Interp-WithCallbacks/pkg-descr | 16 ++++++++++++++++ www/p5-MasonX-Interp-WithCallbacks/pkg-plist | 7 +++++++ 5 files changed, 52 insertions(+) create mode 100644 www/p5-MasonX-Interp-WithCallbacks/Makefile create mode 100644 www/p5-MasonX-Interp-WithCallbacks/distinfo create mode 100644 www/p5-MasonX-Interp-WithCallbacks/pkg-descr create mode 100644 www/p5-MasonX-Interp-WithCallbacks/pkg-plist diff --git a/www/Makefile b/www/Makefile index 5f802de172cc..e13e0266fdc3 100644 --- a/www/Makefile +++ b/www/Makefile @@ -448,6 +448,7 @@ SUBDIR += p5-HTTPD-Log-Filter SUBDIR += p5-HTTPD-Tools SUBDIR += p5-IMDB-Movie + SUBDIR += p5-MasonX-Interp-WithCallbacks SUBDIR += p5-MasonX-Request-WithApacheSession SUBDIR += p5-Maypole SUBDIR += p5-PHP-Session diff --git a/www/p5-MasonX-Interp-WithCallbacks/Makefile b/www/p5-MasonX-Interp-WithCallbacks/Makefile new file mode 100644 index 000000000000..72165558c74e --- /dev/null +++ b/www/p5-MasonX-Interp-WithCallbacks/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: p5-MasonX-Interp-WithCallbacks +# Date created: May 21, 2004 +# Whom: Rod Taylor +# +# $FreeBSD$ +# + +PORTNAME= MasonX-Interp-WithCallbacks +PORTVERSION= 1.11 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= MasonX/DWHEELER +PKGNAMEPREFIX= p5- + +MAINTAINER= ports@rbt.ca +COMMENT= Mason callback support via Params::CallbackRequest + +BUILD_DEPENDS= ${SITE_PERL}/HTML/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \ + ${SITE_PERL}/Params/CallbackRequest.pm:${PORTSDIR}/devel/p5-Params-CallbackRequest +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= MasonX::Interp::WithCallbacks.3 + +.include diff --git a/www/p5-MasonX-Interp-WithCallbacks/distinfo b/www/p5-MasonX-Interp-WithCallbacks/distinfo new file mode 100644 index 000000000000..efe79a1752e1 --- /dev/null +++ b/www/p5-MasonX-Interp-WithCallbacks/distinfo @@ -0,0 +1,2 @@ +MD5 (MasonX-Interp-WithCallbacks-1.11.tar.gz) = 0f0fa00e6a5d2c5318ad48ef9cea3705 +SIZE (MasonX-Interp-WithCallbacks-1.11.tar.gz) = 23667 diff --git a/www/p5-MasonX-Interp-WithCallbacks/pkg-descr b/www/p5-MasonX-Interp-WithCallbacks/pkg-descr new file mode 100644 index 000000000000..1afabb9256bd --- /dev/null +++ b/www/p5-MasonX-Interp-WithCallbacks/pkg-descr @@ -0,0 +1,16 @@ +MasonX::Interp::WithCallbacks subclasses HTML::Mason::Interp in order to +provide a Mason callback system built on Params::CallbackRequest. Callbacks +may be either code references provided to the C constructor, or methods +defined in subclasses of Params::Callback. Callbacks are triggered either for +every request or by specially named keys in the Mason request arguments, and +all callbacks are executed at the beginning of a request, just before Mason +creates and executes the request component stack. + +This module brings support for a sort of plugin architecture based on +Params::CallbackRequest to Mason. Mason then executes code before executing +any components. This approach allows you to carry out logical processing of +data submitted from a form, to affect the contents of the Mason request +arguments (and thus the %ARGS hash in components), and even to redirect or +abort the request before Mason handles it. + +WWW: http://search.cpan.org/dist/MasonX-Interp-WithCallbacks/ diff --git a/www/p5-MasonX-Interp-WithCallbacks/pkg-plist b/www/p5-MasonX-Interp-WithCallbacks/pkg-plist new file mode 100644 index 000000000000..70be164a98fc --- /dev/null +++ b/www/p5-MasonX-Interp-WithCallbacks/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/MasonX/Interp/WithCallbacks.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/MasonX/Interp/WithCallbacks/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MasonX/Interp/WithCallbacks +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MasonX/Interp +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MasonX +@dirrm %%SITE_PERL%%/MasonX/Interp +@unexec rmdir %D/%%SITE_PERL%%/MasonX 2>/dev/null || true -- cgit v1.2.3