diff options
author | tobez <tobez@FreeBSD.org> | 2001-10-30 20:48:45 +0000 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2001-10-30 20:48:45 +0000 |
commit | ca9ec9aebb413ef9744063baa243dd41e2c951a6 (patch) | |
tree | 6ab1a51508c079e1c3d34a409766a3eb2b64b839 /russian | |
parent | f937c402c90db06f8aa135dbb35605f67098fd6a (diff) | |
download | FreeBSD-ports-ca9ec9aebb413ef9744063baa243dd41e2c951a6.zip FreeBSD-ports-ca9ec9aebb413ef9744063baa243dd41e2c951a6.tar.gz |
Add p5-XML-Parser-encodings 1.00, additional russian encodings for
XML::Parser.
PR: 31292
Submitted by: Sergey Skvortsov <skv@protey.ru>
Diffstat (limited to 'russian')
-rw-r--r-- | russian/Makefile | 1 | ||||
-rw-r--r-- | russian/p5-XML-Parser-encodings/Makefile | 56 | ||||
-rw-r--r-- | russian/p5-XML-Parser-encodings/pkg-comment | 1 | ||||
-rw-r--r-- | russian/p5-XML-Parser-encodings/pkg-descr | 1 | ||||
-rw-r--r-- | russian/p5-XML-Parser-encodings/pkg-plist | 8 |
5 files changed, 67 insertions, 0 deletions
diff --git a/russian/Makefile b/russian/Makefile index 2a9dc31..cc54f9d 100644 --- a/russian/Makefile +++ b/russian/Makefile @@ -13,6 +13,7 @@ SUBDIR += messarge SUBDIR += netscape4.language SUBDIR += p5-Lingua-RU-Charset + SUBDIR += p5-XML-Parser-encodings SUBDIR += pgp.language SUBDIR += pine.language SUBDIR += pscyr diff --git a/russian/p5-XML-Parser-encodings/Makefile b/russian/p5-XML-Parser-encodings/Makefile new file mode 100644 index 0000000..bc0e6be --- /dev/null +++ b/russian/p5-XML-Parser-encodings/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: XML::Encoding +# Date created: 15 Oct 2001 +# Whom: Sergey Skvortsov <skv@protey.ru> +# +# $FreeBSD$ +# + +PORTNAME= XML-Parser-encodings +PORTVERSION= 1.00 +CATEGORIES= russian textproc perl5 +PKGNAMEPREFIX= p5- +DISTFILES= + +MAINTAINER= skv@protey.ru + +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Encoding.pm:${PORTSDIR}/textproc/p5-XML-Encoding \ + ${NONEXISTENT}:${PORTSDIR}/converters/iconv:extract \ + ${NONEXISTENT}:${PORTSDIR}/converters/iconv-extra:extract +RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser + +NO_WRKSUBDIR= YES + +ICONVCCSDIR= ${PORTSDIR}/converters/iconv/work/iconv-2.0/ccs +ICONVEXTRACCSDIR= \ + ${PORTSDIR}/converters/iconv-extra/work/iconv-extra-2.0/ccs +RUSSIANENC= windows-1251 koi8-r cp1251 cp866 mac-cyrillic + +do-configure: +.for ENC in koi8-r cp866 + @${CP} ${ICONVCCSDIR}/${ENC}.txt ${WRKDIR} +.endfor +.for ENC in mac-cyrillic windows-1251 + @${CP} ${ICONVEXTRACCSDIR}/${ENC}.txt ${WRKDIR} +.endfor + @${CP} ${WRKDIR}/windows-1251.txt ${WRKDIR}/cp1251.txt + @${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 | \ + ${PERL} -pi -e "s/(?<=^<encmap name='${ENC}')()(?=>)/ expat='yes'/;" \ + >${WRKDIR}/${ENC}.xml + @${PREFIX}/bin/compile_encoding \ + -o ${WRKDIR}/${ENC}.enc ${WRKDIR}/${ENC}.xml +.endfor + +}.encENC}l: + +do-install: +.for ENC in ${RUSSIANENC} + ${INSTALL_DATA} ${WRKDIR}/${ENC}.enc \ + ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser/Encodings/ +.endfor + +.include <bsd.port.mk> diff --git a/russian/p5-XML-Parser-encodings/pkg-comment b/russian/p5-XML-Parser-encodings/pkg-comment new file mode 100644 index 0000000..f2bdfef --- /dev/null +++ b/russian/p5-XML-Parser-encodings/pkg-comment @@ -0,0 +1 @@ +Additional russian encodings for XML::Parser diff --git a/russian/p5-XML-Parser-encodings/pkg-descr b/russian/p5-XML-Parser-encodings/pkg-descr new file mode 100644 index 0000000..c063a8d --- /dev/null +++ b/russian/p5-XML-Parser-encodings/pkg-descr @@ -0,0 +1 @@ +Additional russian encodings for XML::Parser. diff --git a/russian/p5-XML-Parser-encodings/pkg-plist b/russian/p5-XML-Parser-encodings/pkg-plist new file mode 100644 index 0000000..e69027e --- /dev/null +++ b/russian/p5-XML-Parser-encodings/pkg-plist @@ -0,0 +1,8 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/cp1251.enc +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/cp866.enc +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/mac-cyrillic.enc +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/koi8-r.enc +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings/windows-1251.enc +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser/Encodings 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML/Parser 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/XML 2>/dev/null || true |