ports/50849: fix build on perl 5.005_03 for finance/p5-Business-OnlinePayment-SurePay
Erwin Lansing
erwin at lansing.dk
Sat Apr 12 08:40:12 UTC 2003
>Number: 50849
>Category: ports
>Synopsis: fix build on perl 5.005_03 for finance/p5-Business-OnlinePayment-SurePay
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 12 01:40:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Erwin Lansing
>Release: FreeBSD 4.8-STABLE i386
>Organization:
pil.dk
>Environment:
System: FreeBSD panda.droso.net 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Apr 5 16:37:20 CEST 2003 root at panda.droso.net:/usr/obj/usr/src/sys/PANDA i386
>Description:
- fix build for perl 5.005_03
- add missing dirrm
Noticed by: bento (kris)
>How-To-Repeat:
>Fix:
apply follwing patch and add http://panda.droso.net/~erwin/patch-SurePay.pm to files/
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/finance/p5-Business-OnlinePayment-SurePay/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 4 Apr 2003 01:11:27 -0000 1.5
+++ Makefile 12 Apr 2003 08:34:30 -0000
@@ -2,7 +2,7 @@
# Date created: 24 October 2002
# Whom: Maxim Sobolev <sobomax at FreeBSD.org>
#
-# $FreeBSD$
+# $FreeBSD: ports/finance/p5-Business-OnlinePayment-SurePay/Makefile,v 1.5 2003/04/04 01:11:27 edwin Exp $
#
PORTNAME= Business-OnlinePayment-SurePay
@@ -22,5 +22,11 @@
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>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/finance/p5-Business-OnlinePayment-SurePay/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist 25 Oct 2002 08:54:21 -0000 1.1
+++ pkg-plist 12 Apr 2003 08:34:30 -0000
@@ -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
+ at unexec rmdir %D/%%SITE_PERL%%/Business/OnlinePayment 2>/dev/null || true
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list