aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-13 18:37:59 +0800
committeredwin <edwin@FreeBSD.org>2003-04-13 18:37:59 +0800
commite5017932d67cb83fd69c8dcea2ce52f1e882c87a (patch)
treeca972d3dccae521d55690827c88107d0a0324724
parentf783abd6b76f89353c8dc913d5e906b0f7cfbf31 (diff)
downloadfreebsd-ports-gnome-e5017932d67cb83fd69c8dcea2ce52f1e882c87a.tar.gz
freebsd-ports-gnome-e5017932d67cb83fd69c8dcea2ce52f1e882c87a.tar.zst
freebsd-ports-gnome-e5017932d67cb83fd69c8dcea2ce52f1e882c87a.zip
fix build for perl 5.005_03 of finance/p5-Business-OnlinePayment-2CheckOut
PR: ports/50846 Submitted by: Erwin Lansing <erwin@lansing.dk>
-rw-r--r--finance/p5-Business-OnlinePayment-2CheckOut/Makefile5
-rw-r--r--finance/p5-Business-OnlinePayment-2CheckOut/pkg-plist1
2 files changed, 6 insertions, 0 deletions
diff --git a/finance/p5-Business-OnlinePayment-2CheckOut/Makefile b/finance/p5-Business-OnlinePayment-2CheckOut/Makefile
index fcfe665c414f..8dbf3f83ea86 100644
--- a/finance/p5-Business-OnlinePayment-2CheckOut/Makefile
+++ b/finance/p5-Business-OnlinePayment-2CheckOut/Makefile
@@ -24,4 +24,9 @@ PERL_CONFIGURE= yes
MAN3= Business::OnlinePayment::2CheckOut.3
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1);$$1/;' \
+ -e '$$_="" if /use 5/;' \
+ ${WRKSRC}/2CheckOut.pm
+
.include <bsd.port.mk>
diff --git a/finance/p5-Business-OnlinePayment-2CheckOut/pkg-plist b/finance/p5-Business-OnlinePayment-2CheckOut/pkg-plist
index 5ed62a31be16..493ffa581b9a 100644
--- a/finance/p5-Business-OnlinePayment-2CheckOut/pkg-plist
+++ b/finance/p5-Business-OnlinePayment-2CheckOut/pkg-plist
@@ -3,3 +3,4 @@ lib/perl5/site_perl/%%PERL_VER%%/auto/Business/OnlinePayment/2CheckOut/autosplit
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Business/OnlinePayment/2CheckOut/.packlist
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Business/OnlinePayment/2CheckOut
@dirrm lib/perl5/site_perl/%%PERL_VER%%/auto/Business/OnlinePayment/2CheckOut
+@unexec rmdir %D/%%SITE_PERL%%/Business/OnlinePayment 2>/dev/null || true