aboutsummaryrefslogtreecommitdiffstats
path: root/finance
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-13 18:36:46 +0800
committeredwin <edwin@FreeBSD.org>2003-04-13 18:36:46 +0800
commit7e40007d8d4494018ffa922effb4fb89e3fdacb4 (patch)
tree541996daccdea5e404acd72c961cfaa3f65c22bc /finance
parent75daaa0dfb724f812a8cd119a8c5af5866d95e53 (diff)
downloadfreebsd-ports-gnome-7e40007d8d4494018ffa922effb4fb89e3fdacb4.tar.gz
freebsd-ports-gnome-7e40007d8d4494018ffa922effb4fb89e3fdacb4.tar.zst
freebsd-ports-gnome-7e40007d8d4494018ffa922effb4fb89e3fdacb4.zip
fix build on perl 5.005_03 for finance/p5-Business-OnlinePayment-SurePay
PR: ports/50849 Submitted by: Erwin Lansing <erwin@lansing.dk>
Diffstat (limited to 'finance')
-rw-r--r--finance/p5-Business-OnlinePayment-SurePay/Makefile6
-rw-r--r--finance/p5-Business-OnlinePayment-SurePay/pkg-plist1
2 files changed, 7 insertions, 0 deletions
diff --git a/finance/p5-Business-OnlinePayment-SurePay/Makefile b/finance/p5-Business-OnlinePayment-SurePay/Makefile
index 8486e6ec0d73..47861c4f39ef 100644
--- a/finance/p5-Business-OnlinePayment-SurePay/Makefile
+++ b/finance/p5-Business-OnlinePayment-SurePay/Makefile
@@ -23,4 +23,10 @@ PERL_CONFIGURE= yes
MAN3= Business::OnlinePayment::SurePay.3
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /use 5/;' \
+ -e '$$_="" if /use warnings/;' \
+ ${WRKSRC}/SurePay.pm
+
.include <bsd.port.mk>
diff --git a/finance/p5-Business-OnlinePayment-SurePay/pkg-plist b/finance/p5-Business-OnlinePayment-SurePay/pkg-plist
index e2ec45ae5931..112e1772d159 100644
--- a/finance/p5-Business-OnlinePayment-SurePay/pkg-plist
+++ b/finance/p5-Business-OnlinePayment-SurePay/pkg-plist
@@ -1,3 +1,4 @@
lib/perl5/site_perl/%%PERL_VER%%/Business/OnlinePayment/SurePay.pm
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Business/OnlinePayment/SurePay/.packlist
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Business/OnlinePayment/SurePay
+@unexec rmdir %D/%%SITE_PERL%%/Business/OnlinePayment 2>/dev/null || true