1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Remove encodings "koi8-r" and "windows-1251" because

they are shipped with XML-Parser since 2.40
This commit is contained in:
Sergey Skvortsov 2010-12-05 14:28:58 +00:00
parent e967d07112
commit a3f3286c06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265719
2 changed files with 8 additions and 16 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= XML-Parser-encodings
PORTVERSION= 1.02
PORTVERSION= 1.03
CATEGORIES= russian textproc perl5
PKGNAMEPREFIX= p5-
DISTFILES=
@ -14,17 +14,15 @@ DISTFILES=
MAINTAINER= skv@FreeBSD.org
COMMENT= Additional russian encodings for XML::Parser
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
RUN_DEPENDS= p5-XML-Parser>=2.40:${PORTSDIR}/textproc/p5-XML-Parser
BUILD_DEPENDS= ${RUN_DEPENDS} \
${SITE_PERL}/XML/Encoding.pm:${PORTSDIR}/textproc/p5-XML-Encoding \
${NONEXISTENT}:${PORTSDIR}/converters/iconv:extract \
${NONEXISTENT}:${PORTSDIR}/converters/iconv-extra:extract
BROKEN= bad plist
NO_WRKSUBDIR= YES
USE_PERL5= YES
RUSSIANENC= windows-1251 koi8-r cp1251 cp866 mac-cyrillic
RUSSIANENC= cp1251 cp866 mac-cyrillic
post-extract:
.for ICONVPORT in iconv iconv-extra
@ -34,21 +32,17 @@ post-extract:
.endfor
do-configure:
.for ENC in koi8-r cp866
@${CP} ${WRKSRC}/iconv/${ENC}.txt ${WRKDIR}
.endfor
.for ENC in mac-cyrillic windows-1251
@${CP} ${WRKSRC}/iconv-extra/${ENC}.txt ${WRKDIR}
.endfor
@${CP} ${WRKDIR}/windows-1251.txt ${WRKDIR}/cp1251.txt
@${CP} ${WRKSRC}/iconv/cp866.txt ${WRKDIR}
@${CP} ${WRKSRC}/iconv-extra/windows-1251.txt ${WRKDIR}/cp1251.txt
@${CP} ${WRKSRC}/iconv-extra/mac-cyrillic.txt ${WRKDIR}
@${PERL} -pi -e 's/\r/\n/gm;' ${WRKDIR}/mac-cyrillic.txt
do-build:
.for ENC in ${RUSSIANENC}
@${PREFIX}/bin/make_encmap ${ENC} ${WRKDIR}/${ENC}.txt | \
@${LOCALBASE}/bin/make_encmap ${ENC} ${WRKDIR}/${ENC}.txt | \
${PERL} -pi -e "s/(?<=^<encmap name='${ENC}')()(?=>)/ expat='yes'/;" \
>${WRKDIR}/${ENC}.xml
@${PREFIX}/bin/compile_encoding \
@${LOCALBASE}/bin/compile_encoding \
-o ${WRKDIR}/${ENC}.enc ${WRKDIR}/${ENC}.xml
.endfor

View File

@ -1,8 +1,6 @@
%%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings/cp1251.enc
%%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings/cp866.enc
%%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings/mac-cyrillic.enc
%%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings/koi8-r.enc
%%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings/windows-1251.enc
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser/Encodings
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/XML/Parser
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/XML