aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2004-10-25 01:29:18 +0800
committerskv <skv@FreeBSD.org>2004-10-25 01:29:18 +0800
commit64d232c557334ca12092a0c47697352b20b4a188 (patch)
treed650b7ff3a283a081c8add50130b10aa342d629c
parent47ecd1564a08c7dd2e89f561e8828dbe199ab1f6 (diff)
downloadfreebsd-ports-gnome-64d232c557334ca12092a0c47697352b20b4a188.tar.gz
freebsd-ports-gnome-64d232c557334ca12092a0c47697352b20b4a188.tar.zst
freebsd-ports-gnome-64d232c557334ca12092a0c47697352b20b4a188.zip
Remove 'use warnings' if perl < 5.6.0
PR: 73086 Submitted by: lth
-rw-r--r--databases/p5-Class-DBI/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/databases/p5-Class-DBI/Makefile b/databases/p5-Class-DBI/Makefile
index c453d0c1b8f8..6baf7eb8ef11 100644
--- a/databases/p5-Class-DBI/Makefile
+++ b/databases/p5-Class-DBI/Makefile
@@ -7,7 +7,7 @@
PORTNAME= Class-DBI
PORTVERSION= 0.96
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
@@ -40,6 +40,11 @@ post-configure:
BUILD_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES= ${PATCHDIR}/5.005-lib::Class::DBI.pm ${PATCHDIR}/5.005-Makefile.PL
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.pm" | ${XARGS} \
+ ${PERL} -pi -e 's/\buse warnings[^;]*;//g'
+ @${FIND} ${WRKSRC} -name "*.orig" | ${XARGS} ${RM}
.endif
.endif