ports/103174: [PATCH] archivers/p5-Compress-LZW: unbreak under old perl
Yen-Ming Lee
leeym at FreeBSD.org
Tue Sep 12 02:10:23 UTC 2006
>Number: 103174
>Category: ports
>Synopsis: [PATCH] archivers/p5-Compress-LZW: unbreak under old perl
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 12 02:10:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Yen-Ming Lee
>Release: FreeBSD 6.1-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Aug 27 09:55:36 CST 2006
>Description:
- unbreak under old perl, which block archivers/p5-POE-Filter-LZW too
Port maintainer (gslin at gslin.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- p5-Compress-LZW-0.01_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/archivers/p5-Compress-LZW/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile 7 Aug 2006 06:53:51 -0000 1.2
+++ Makefile 12 Sep 2006 02:01:36 -0000
@@ -7,6 +7,7 @@
PORTNAME= Compress-LZW
PORTVERSION= 0.01
+PORTREVISION= 1
CATEGORIES= archivers perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Compress
@@ -19,7 +20,16 @@
MAN3= Compress::LZW.3
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
post-patch:
${PERL} -pi -e 's/\@hattmoward/\\\@hattmoward/' ${WRKSRC}/Makefile.PL
+.if ${PERL_LEVEL} < 500600
+ ${REINPLACE_CMD} -e '/warnings/d' ${WRKSRC}/*
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- p5-Compress-LZW-0.01_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list