PR: 56531
Submitted by: Hansjoerg Pehofer <hansjoerg.pehofer@uibk.ac.at> Reviewed by: Approved by: Obtained from: MFC after: changed dependency from p5-XML-SAX-Base to p5-XML-SAX. let port remove "use warnings;" to allow perl < 5.6.0. Minor change with using SITE_PERL.
This commit is contained in:
@@ -7,31 +7,30 @@
|
||||
|
||||
PORTNAME= XML-Filter-GenericChunk
|
||||
PORTVERSION= 0.06
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
#MASTER_SITE_SUBDIR= XML
|
||||
MASTER_SITE_SUBDIR= ../by-authors/id/P/PH/PHISH
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= hansjoerg.pehofer@uibk.ac.at
|
||||
COMMENT= "Base Class for SAX Filters parsing WellBallanced Chunks."
|
||||
|
||||
BUILD_DEPENDS= ${PERL_ABASE}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
|
||||
${SITE_PERL}/XML/SAX/Base.pm:${PORTSDIR}/textproc/p5-XML-SAX-Base
|
||||
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
|
||||
${SITE_PERL}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
PERL_ABASE= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}
|
||||
|
||||
MAN3= XML::Filter::CharacterChunk.3 \
|
||||
XML::Filter::GenericChunk.3
|
||||
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
post-patch:
|
||||
${PERL} -pi -e '$$_="" if /use warnings/;' \
|
||||
${WRKSRC}/t/02filter.t \
|
||||
${WRKSRC}/CharacterChunk.pm \
|
||||
${WRKSRC}/GenericChunk.pm
|
||||
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
IGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
||||
Reference in New Issue
Block a user