summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorabs <abs>2008-07-15 09:15:42 +0000
committerabs <abs>2008-07-15 09:15:42 +0000
commit906f8fb3f14dd0d0f93d4b7eea2e74fbd864356a (patch)
treec9bab4119659435643a6ab4a7a4e82e2bf9aa3f2 /www
parentefbb322db0d472914129b0f75ce14e70b1f14e9f (diff)
downloadpkgsrc-906f8fb3f14dd0d0f93d4b7eea2e74fbd864356a.tar.gz
Added www/p5-Catalyst-Component-ACCEPT_CONTEXT version 0.05
Models and Views don't usually have access to the request object, since they probably don't really need it. Sometimes, however, having the request context available outside of Controllers makes your application cleaner. If that's the case, just use this module as a base class: package MyApp::Model::Foobar; use base qw|Catalyst::Component::ACCEPT_CONTEXT Catalyst::Model|; Then, you'll be able to get the current request object from within your model: sub do_something { my $self = shift; print "The current URL is ". $self->context->req->uri->as_string; }
Diffstat (limited to 'www')
-rw-r--r--www/p5-Catalyst-Component-ACCEPT_CONTEXT/DESCR16
-rw-r--r--www/p5-Catalyst-Component-ACCEPT_CONTEXT/Makefile21
-rw-r--r--www/p5-Catalyst-Component-ACCEPT_CONTEXT/distinfo5
3 files changed, 42 insertions, 0 deletions
diff --git a/www/p5-Catalyst-Component-ACCEPT_CONTEXT/DESCR b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/DESCR
new file mode 100644
index 00000000000..deda561260c
--- /dev/null
+++ b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/DESCR
@@ -0,0 +1,16 @@
+Models and Views don't usually have access to the request object,
+since they probably don't really need it. Sometimes, however, having
+the request context available outside of Controllers makes your
+application cleaner. If that's the case, just use this module as
+a base class:
+
+ package MyApp::Model::Foobar;
+ use base qw|Catalyst::Component::ACCEPT_CONTEXT Catalyst::Model|;
+
+Then, you'll be able to get the current request object from within
+your model:
+
+ sub do_something {
+ my $self = shift;
+ print "The current URL is ". $self->context->req->uri->as_string;
+ }
diff --git a/www/p5-Catalyst-Component-ACCEPT_CONTEXT/Makefile b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/Makefile
new file mode 100644
index 00000000000..5438785ea40
--- /dev/null
+++ b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/07/15 09:15:42 abs Exp $
+
+DISTNAME= Catalyst-Component-ACCEPT_CONTEXT-0.05
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= www perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Catalyst/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/~jrockway/Catalyst-Component-ACCEPT_CONTEXT/
+COMMENT= Make current Catalyst request context available in Models and Views
+
+DEPENDS+= p5-Catalyst-Runtime>=0:../../www/p5-Catalyst-Runtime
+DEPENDS+= p5-Devel-Cycle>0:../../devel/p5-Devel-Cycle
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Catalyst/Component/ACCEPT_CONTEXT/.packlist
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/p5-Catalyst-Component-ACCEPT_CONTEXT/distinfo b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/distinfo
new file mode 100644
index 00000000000..74d282bb589
--- /dev/null
+++ b/www/p5-Catalyst-Component-ACCEPT_CONTEXT/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/07/15 09:15:42 abs Exp $
+
+SHA1 (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = ed1befbec7efe435aea2b9d13d482e805aa8d5e4
+RMD160 (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = 48420ffb114dafdf9b721443bd12524c151c2828
+Size (Catalyst-Component-ACCEPT_CONTEXT-0.05.tar.gz) = 22033 bytes