Index: head/textproc/p5-XML-Parser/Makefile =================================================================== --- head/textproc/p5-XML-Parser/Makefile (revision 52439) +++ head/textproc/p5-XML-Parser/Makefile (revision 52440) @@ -1,31 +1,55 @@ # New ports collection makefile for: XML::Parser # Date created: 15 Nov 1998 # Whom: Jun Kuriyama # # $FreeBSD$ # PORTNAME= XML-Parser PORTVERSION= 2.30 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ http://wwwx.netheaven.com/~coopercc/xmlparser/ MASTER_SITE_SUBDIR= XML PKGNAMEPREFIX= p5- DISTFILES= ${PORTNAME}.${PORTVERSION}.tar.gz MAINTAINER= kuriyama@FreeBSD.org LIB_DEPENDS= expat.2:${PORTSDIR}/textproc/expat2 PERL_CONFIGURE= yes CONFIGURE_ARGS= EXPATLIBPATH=${LOCALBASE}/lib EXPATINCPATH=${LOCALBASE}/include MAN3= XML::Parser.3 XML::Parser::Expat.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +PLIST_SUB= EUCJP=${EUCJP} SJIS=${SJIS} + +# XMLPARSER_EUCJP= x-euc-jp-(jisx0221|unicode) +# XMLPARSER_SJIS= x-sjis-(cp932|jdk117|jisx0221|unicode) +CONV_ENC= perl -e '$$e=shift @ARGV; undef $$/; $$_=<>; substr($$_,4,40)=pack("a40","$$e"); print' +.if !defined(XMLPARSER_EUCJP) +EUCJP= "@comment " +.endif +.if !defined(XMLPARSER_SJIS) +SJIS= "@comment " +.endif + +post-patch: +.if defined(XMLPARSER_EUCJP) + @cd ${WRKSRC}/Parser/Encodings; \ + ${CONV_ENC} euc-jp ${XMLPARSER_EUCJP}.enc > euc-jp.enc + @${ECHO} Parser/Encodings/euc-jp.enc >> ${WRKSRC}/MANIFEST +.endif +.if defined(XMLPARSER_SJIS) + @cd ${WRKSRC}/Parser/Encodings; \ + ${CONV_ENC} shift_jis ${XMLPARSER_SJIS}.enc > shift_jis.enc + @${ECHO} Parser/Encodings/Shift_JIS.enc >> ${WRKSRC}/MANIFEST +.endif post-configure: @${PERL} -i -pe 's/^(CC = ).*/$$1 ${CC}/;' \ -e 's/^(CCFLAGS = ).*/$$1 ${CFLAGS}/' ${WRKSRC}/Expat/Makefile .include Property changes on: head/textproc/p5-XML-Parser/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.15 \ No newline at end of property +1.16 \ No newline at end of property Index: head/textproc/p5-XML-Parser/pkg-plist =================================================================== --- head/textproc/p5-XML-Parser/pkg-plist (revision 52439) +++ head/textproc/p5-XML-Parser/pkg-plist (revision 52440) @@ -1,31 +1,33 @@ lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Parser/Expat/Expat.bs lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Parser/Expat/Expat.so lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Parser/.packlist lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/Japanese_Encodings.msg lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/README +%%SJIS%%lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/Shift_JIS.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/big5.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/euc-kr.enc +%%EUCJP%%lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/euc-jp.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-2.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-3.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-4.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-5.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-7.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-8.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/iso-8859-9.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/windows-1250.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-euc-jp-jisx0221.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-euc-jp-unicode.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-sjis-cp932.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-sjis-jdk117.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-sjis-jisx0221.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/x-sjis-unicode.enc lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser.pm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Expat.pm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/LWPExternEnt.pl @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Parser/Expat @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML/Parser @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XML @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML @unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML 2>/dev/null || true Property changes on: head/textproc/p5-XML-Parser/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.7 \ No newline at end of property +1.8 \ No newline at end of property