aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/p5-Catalyst-Plugin-Session/Makefile7
-rw-r--r--www/p5-Catalyst-Plugin-Session/distinfo6
-rw-r--r--www/p5-Catalyst-Plugin-Session/scripts/pre-configure23
3 files changed, 30 insertions, 6 deletions
diff --git a/www/p5-Catalyst-Plugin-Session/Makefile b/www/p5-Catalyst-Plugin-Session/Makefile
index 8c833af5bd56..d2117a544b85 100644
--- a/www/p5-Catalyst-Plugin-Session/Makefile
+++ b/www/p5-Catalyst-Plugin-Session/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Catalyst-Plugin-Session
-PORTVERSION= 0.14
+PORTVERSION= 0.15
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Catalyst
@@ -16,7 +16,8 @@ MAINTAINER= lbr@FreeBSD.org
COMMENT= Generic Catalyst Session plugin
RUN_DEPENDS= p5-Catalyst-Runtime>=5.7000:${PORTSDIR}/www/p5-Catalyst-Runtime \
- p5-Object-Signature>=0:${PORTSDIR}/devel/p5-Object-Signature
+ p5-Object-Signature>=0:${PORTSDIR}/devel/p5-Object-Signature \
+ p5-Tie-RefHash>=1.34:${PORTSDIR}/devel/p5-Tie-RefHash
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
@@ -29,7 +30,7 @@ MAN3= Catalyst::Plugin::Session.3 \
Catalyst::Plugin::Session::Tutorial.3
post-extract:
- @${PERL} -i.bak -ne 'print unless m,Test::,' ${WRKSRC}/Makefile.PL
+ @${PERL} -i.bak -ne 'print unless /^my/ .. /^}/ or m,Test::,' ${WRKSRC}/Makefile.PL
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500801
diff --git a/www/p5-Catalyst-Plugin-Session/distinfo b/www/p5-Catalyst-Plugin-Session/distinfo
index 6a16f2208ca6..40401c37211a 100644
--- a/www/p5-Catalyst-Plugin-Session/distinfo
+++ b/www/p5-Catalyst-Plugin-Session/distinfo
@@ -1,3 +1,3 @@
-MD5 (Catalyst-Plugin-Session-0.14.tar.gz) = 589a69a366e1d3d4dc9d25fb1251b40b
-SHA256 (Catalyst-Plugin-Session-0.14.tar.gz) = f6c00412ffe8948f2b28e8e7166e4790a8a03230e81cc71d113e70007ca32ab9
-SIZE (Catalyst-Plugin-Session-0.14.tar.gz) = 20195
+MD5 (Catalyst-Plugin-Session-0.15.tar.gz) = 3a93333af438023ebe058c77bc81075d
+SHA256 (Catalyst-Plugin-Session-0.15.tar.gz) = 43b16e16a2da76830945afd768cb4f5f9c0fffc269ca06c6ba1df78b1a8b64ae
+SIZE (Catalyst-Plugin-Session-0.15.tar.gz) = 45727
diff --git a/www/p5-Catalyst-Plugin-Session/scripts/pre-configure b/www/p5-Catalyst-Plugin-Session/scripts/pre-configure
new file mode 100644
index 000000000000..4db99914ac4a
--- /dev/null
+++ b/www/p5-Catalyst-Plugin-Session/scripts/pre-configure
@@ -0,0 +1,23 @@
+#!/usr/local/bin/perl
+#
+# $FreeBSD$
+#
+# Mimic requirement in Catalyst::Plugin::Session's original Makefile.PL
+
+eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
+ if $running_under_some_shell;
+
+my %v = ( "Catalyst::Plugin::Session::State::Cookie" => '^0\\.0[0-2]', # 0.03+
+ "Catalyst::Plugin::Session::State::URI" => '^0\\.0[0-1]', # 0.02+
+);
+foreach my $m (keys %v) {
+ eval "use $m";
+ if (!$@ && ${"${m}::VERSION"} =~ /$v{$m}/) {
+ my $p = "p5-$m";
+ $p =~ s/::/-/g;
+ my $version = ${"${m}::VERSION"};
+ warn "Found p5-$p-$version, but you need to upgrade.\n";
+ exit 1;
+ }
+}
+exit 0;