From b2e7b540b146ca4ab0775abbb3f3abbd30dc07c5 Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Sat, 2 Aug 2014 08:39:51 -0700 Subject: [PATCH] Update lang/p5-Switch to version 2.17 --- lang/p5-Switch/Makefile | 4 ++-- lang/p5-Switch/distinfo | 4 ++-- lang/p5-Switch/files/patch-Switch.pm | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 lang/p5-Switch/files/patch-Switch.pm diff --git a/lang/p5-Switch/Makefile b/lang/p5-Switch/Makefile index 55dbfdd9720..1a99efaf75f 100644 --- a/lang/p5-Switch/Makefile +++ b/lang/p5-Switch/Makefile @@ -2,10 +2,10 @@ # $FreeBSD$ PORTNAME= Switch -PORTVERSION= 2.16 +PORTVERSION= 2.17 CATEGORIES= lang perl5 MASTER_SITES= CPAN -MASTER_SITE_SUBDIR= CPAN:RGARCIA +MASTER_SITE_SUBDIR= CPAN:CHORNY PKGNAMEPREFIX= p5- MAINTAINER= tobez@FreeBSD.org diff --git a/lang/p5-Switch/distinfo b/lang/p5-Switch/distinfo index 143410266fb..e2806c2e3da 100644 --- a/lang/p5-Switch/distinfo +++ b/lang/p5-Switch/distinfo @@ -1,2 +1,2 @@ -SHA256 (Switch-2.16.tar.gz) = 308c8f27f295906778186f14c6291923905730b46ba879c3a68fff81c37df9d8 -SIZE (Switch-2.16.tar.gz) = 13185 +SHA256 (Switch-2.17.tar.gz) = 31354975140fe6235ac130a109496491ad33dd42f9c62189e23f49f75f936d75 +SIZE (Switch-2.17.tar.gz) = 14490 diff --git a/lang/p5-Switch/files/patch-Switch.pm b/lang/p5-Switch/files/patch-Switch.pm new file mode 100644 index 00000000000..532e6ec9ef2 --- /dev/null +++ b/lang/p5-Switch/files/patch-Switch.pm @@ -0,0 +1,15 @@ +--- Switch.pm 2014-08-01 14:47:54.000000000 +0200 ++++ Switch.pm 2014-08-01 14:47:57.000000000 +0200 +@@ -25,9 +25,11 @@ my ($Perl5, $Perl6) = (0,0); + + sub import + { ++ my ($class) = @_; ++ my $self = bless {}, $class; + $fallthrough = grep /\bfallthrough\b/, @_; + $offset = (caller)[2]+1; +- filter_add({}) unless @_>1 && $_[1] eq 'noimport'; ++ filter_add($self) unless @_>1 && $_[1] eq 'noimport'; + my $pkg = caller; + no strict 'refs'; + for ( qw( on_defined on_exists ) ) -- 2.41.0