mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
ce81cf9fb9
PR: ports/195766 Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= another-htmllint
|
|
PORTVERSION= 20111128
|
|
CATEGORIES= japanese www
|
|
MASTER_SITES= http://openlab.ring.gr.jp/k16/htmllint/archives/
|
|
DISTNAME= htmllint
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Another HTML-lint (all messages are written in Japanese)
|
|
|
|
RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
|
|
ja-p5-Jcode>=0:${PORTSDIR}/japanese/p5-Jcode
|
|
|
|
USES= dos2unix perl5 shebangfix zip
|
|
WRKSRC= ${WRKDIR}
|
|
DOS2UNIX_FILES= readme.txt
|
|
SHEBANG_FILES= htmllint.cgi tagslist.cgi
|
|
SUB_FILES= htmllint pkg-message
|
|
SUB_LIST+= PERL=${PERL}
|
|
|
|
OPTIONS_DEFINE= W3M
|
|
W3M_DESC= Use w3m to show rendering result
|
|
W3M_RUN_DEPENDS= w3m>0:${PORTSDIR}/www/w3m
|
|
|
|
PM= htmllint.pm RFC2396.pm htmllint.env
|
|
RULE= *.rul
|
|
HTML= *.cgi *.html *.gif *.css
|
|
SEDSUB= ${SED} -i.bak -e 's@%%PREFIX%%@${PREFIX}@ ; s@%%DATADIR%%@${DATADIR}@'
|
|
|
|
# Please set this!
|
|
HTMLLINT_ADMIN?= kuriyama@FreeBSD.org
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-build:
|
|
@${SEDSUB} ${WRKSRC}/htmllintenv
|
|
@${MV} ${WRKSRC}/htmllintenv ${WRKSRC}/htmllint.env
|
|
@${SEDSUB} ${WRKSRC}/htmllint.cgi
|
|
@${SED} -i.bak -e 's|^</address>|</address><br>Maintained by <address>${HTMLLINT_ADMIN}</address>|' ${WRKSRC}/*.html
|
|
.if ${PORT_OPTIONS:MW3M}
|
|
@${SED} -i.bak -e 's|^#$$W3M|$$W3M|' ${WRKSRC}/htmllint.env
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/rule ${STAGEDIR}${DATADIR}/html
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} htmllint ${STAGEDIR}${PREFIX}/bin
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${HTML} ${STAGEDIR}${DATADIR}/html
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PM} ${STAGEDIR}${DATADIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${RULE} ${STAGEDIR}${DATADIR}/rule
|
|
|
|
.include <bsd.port.mk>
|