diff options
author | skv <skv@FreeBSD.org> | 2004-10-24 17:29:18 +0000 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2004-10-24 17:29:18 +0000 |
commit | 64d232c557334ca12092a0c47697352b20b4a188 (patch) | |
tree | d650b7ff3a283a081c8add50130b10aa342d629c /databases | |
parent | 47ecd1564a08c7dd2e89f561e8828dbe199ab1f6 (diff) | |
download | FreeBSD-ports-64d232c557334ca12092a0c47697352b20b4a188.zip FreeBSD-ports-64d232c557334ca12092a0c47697352b20b4a188.tar.gz |
Remove 'use warnings' if perl < 5.6.0
PR: 73086
Submitted by: lth
Diffstat (limited to 'databases')
-rw-r--r-- | databases/p5-Class-DBI/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/databases/p5-Class-DBI/Makefile b/databases/p5-Class-DBI/Makefile index c453d0c..6baf7eb 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 |