1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/russian/p5-XML-Parser-encodings/Makefile
Tobias C. Berner f27f23bd9f russian: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

  *  Alex Kapranoff <kapr@crosswinds.net>
  *  Alexander Logvinov <avl@FreeBSD.org>
  *  Andrey Fesenko <andrey@bsdnir.info>
  *  Anes Mukhametov <anes@anes.su>
  *  Boris Samorodov <bsam@FreeBSD.org>
  *  Dmitry Liakh <dliakh@ukr.net>
  *  Dmitry Morozovsky <marck@rinet.ru>
  *  Gvozdikov Veniamin <g.veniamin@googlemail.com>
  *  Igor Pokrovsky <tiamat@comset.net>
  *  Igor Vinokurov <igor@zynaps.ru>
  *  Michael Vasilenko <acid@stu.cn.ua>
  *  Mihail Timofeev <9267096@gmail.com>
  *  Roman Bogorodskiy <bogorodskiy@inbox.ru>
  *  Sergey Kandaurov <pluknet@gmail.com>
  *  Sergey Skvortsov <skv@protey.ru>
  *  Thierry Thomas <thierry@pompo.net>
  *  Vyacheslav Anikin <anikinsl@gmail.com>
  *  ache
  *  mi@aldan.algebra.com

With hat:	portmgr
2022-07-20 16:22:50 +02:00

52 lines
1.4 KiB
Makefile

PORTNAME= XML-Parser-encodings
PORTVERSION= 1.03
PORTREVISION= 1
CATEGORIES= russian textproc perl5
DISTFILES=
MAINTAINER= perl@FreeBSD.org
COMMENT= Additional Russian encodings for XML::Parser
BUILD_DEPENDS= ${RUN_DEPENDS} \
p5-XML-Encoding>=0:textproc/p5-XML-Encoding \
${NONEXISTENT}:converters/iconv:extract \
${NONEXISTENT}:converters/iconv-extra:extract
RUN_DEPENDS= p5-XML-Parser>=2.40:textproc/p5-XML-Parser
USES= perl5
NO_WRKSUBDIR= YES
RUSSIANENC= cp1251 cp866 mac-cyrillic
.include <bsd.port.pre.mk>
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}p5-
post-extract:
.for ICONVPORT in iconv iconv-extra
@${LN} -sfh \
`cd ${PORTSDIR}/converters/${ICONVPORT} && ${MAKE} -V WRKSRC`/ccs \
${WRKSRC}/${ICONVPORT}
.endfor
do-configure:
@${CP} ${WRKSRC}/iconv/cp866.txt ${WRKSRC}
@${CP} ${WRKSRC}/iconv-extra/windows-1251.txt ${WRKSRC}/cp1251.txt
@${CP} ${WRKSRC}/iconv-extra/mac-cyrillic.txt ${WRKSRC}
@${PERL} -pi -e 's/\r/\n/gm;' ${WRKSRC}/mac-cyrillic.txt
do-build:
.for ENC in ${RUSSIANENC}
@${LOCALBASE}/bin/make_encmap ${ENC} ${WRKSRC}/${ENC}.txt | \
${PERL} -pi -e "s/(?<=^<encmap name='${ENC}')()(?=>)/ expat='yes'/;" \
>${WRKSRC}/${ENC}.xml
@${LOCALBASE}/bin/compile_encoding \
-o ${WRKSRC}/${ENC}.enc ${WRKSRC}/${ENC}.xml
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/XML/Parser/Encodings
${INSTALL_DATA} ${WRKSRC}/*.enc \
${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/XML/Parser/Encodings
.include <bsd.port.post.mk>