aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-Business-PayPal-EWP
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2005-05-20 04:25:02 +0800
committeralfred <alfred@FreeBSD.org>2005-05-20 04:25:02 +0800
commit9bc438413ca905cffb5fbc8cdb85e6e09f49eb04 (patch)
treeb49e07e1685d8ca94bfb33650d171307e0601204 /security/p5-Business-PayPal-EWP
parent1ac9adf40b376678d912dfc68923ee4f68baad93 (diff)
downloadfreebsd-ports-gnome-9bc438413ca905cffb5fbc8cdb85e6e09f49eb04.tar.gz
freebsd-ports-gnome-9bc438413ca905cffb5fbc8cdb85e6e09f49eb04.tar.zst
freebsd-ports-gnome-9bc438413ca905cffb5fbc8cdb85e6e09f49eb04.zip
fixup commits, patch source not to use "our" when on older perl.
this may fix it.
Diffstat (limited to 'security/p5-Business-PayPal-EWP')
-rw-r--r--security/p5-Business-PayPal-EWP/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/security/p5-Business-PayPal-EWP/Makefile b/security/p5-Business-PayPal-EWP/Makefile
index 825865ccc30c..c1ed4c3f7ff3 100644
--- a/security/p5-Business-PayPal-EWP/Makefile
+++ b/security/p5-Business-PayPal-EWP/Makefile
@@ -20,10 +20,25 @@ USE_REINPLACE= yes
PERL_CONFIGURE= yes
USE_OPENSSL= yes
CONFIGURE_ARGS= ${OPENSSLBASE}
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
+ ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS= ${BUILD_DEPENDS}
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= Business::PayPal::EWP.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+foo:
+ echo ${PERL_LEVEL}
+.endif
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ #${PERL} -pi -e 's!^our \((.*?)(?=\);)!join("","use vars qw(",split(/,/,$$1))!e' ${WRKSRC}/lib/Business/PayPal/EWP.pm
+ ${PERL} -pi -e 's/^our /my /' ${WRKSRC}/lib/Business/PayPal/EWP.pm
+.endif
+
+.include <bsd.port.post.mk>