pkgsrc/www/htmllint/Makefile
taca 61cae94891 Correct version of htmllint from 20050924 to 20051019 since previous
updated version was really 20051019, and backout DIST_SUBDIR change.
2005-12-14 13:44:52 +00:00

53 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2005/12/14 13:44:52 taca Exp $
#
DISTNAME= htmllint
PKGNAME= htmllint-20051019
CATEGORIES= www japanese
MASTER_SITES= http://openlab.ring.gr.jp/k16/htmllint/archives/
EXTRACT_SUFX= .zip
MAINTAINER= kei@NetBSD.org
HOMEPAGE= http://openlab.ring.gr.jp/k16/htmllint/
COMMENT= Another HTML-Lint program
DEPENDS+= p5-Jcode>=0.68:../../converters/p5-Jcode
DEPENDS+= p5-libwww>=5.8:../../www/p5-libwww
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
REPLACE_PERL= htmllint.cgi htmllint parsedtd.pl tagslist.cgi
USE_TOOLS+= perl:run
NO_BUILD= yes
CGIDIR= ${PREFIX}/libexec/cgi-bin
HTMLDIR= ${PREFIX}/share/httpd/htdocs/htmllint
IMGDIR= ${HTMLDIR}/images
INSTALLATION_DIRS= bin
post-patch:
.for f in faq.html htmllintenv htmllint htmllint.caller
@${MV} ${WRKSRC}/${f} ${WRKSRC}/${f}.orig; \
${SED} -e 's!@PREFIX@!${PREFIX}!g' < ${WRKSRC}/${f}.orig \
> ${WRKSRC}/${f}
.endfor
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/htmllint.caller ${PREFIX}/bin/htmllint; \
${INSTALL_SCRIPT_DIR} ${CGIDIR}; \
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${CGIDIR}; \
${INSTALL_DATA} ${WRKSRC}/htmllintrc ${CGIDIR}; \
${INSTALL_DATA} ${WRKSRC}/htmllintenv ${CGIDIR}/htmllint.env.default; \
${TEST} -f ${CGIDIR}/htmllint.env || \
${CP} ${CGIDIR}/htmllint.env.default ${CGIDIR}/htmllint.env; \
${INSTALL_SCRIPT_DIR} ${HTMLDIR}; \
${INSTALL_SCRIPT} ${WRKSRC}/htmllint ${HTMLDIR}; \
${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${WRKSRC}/*.pm ${HTMLDIR}; \
${INSTALL_DATA} ${WRKSRC}/*.css ${WRKSRC}/*.dtd ${WRKSRC}/*.ent \
${WRKSRC}/*.html ${WRKSRC}/*.rul ${WRKSRC}/*.txt ${HTMLDIR}; \
${INSTALL_DATA_DIR} ${IMGDIR}; \
${INSTALL_DATA} ${WRKSRC}/*.gif ${IMGDIR}
.include "../../mk/bsd.pkg.mk"