1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/www/webcheck/Makefile
Baptiste Daroussin b98e265370 Generate .pyc/.pyo at buildtime
Remove useless @exec by always packaging symlinks
Use options helpers
2015-09-26 16:56:11 +00:00

43 lines
1.3 KiB
Makefile

# Created by: Mike Meyer <mwm@mired.org>
# $FreeBSD$
PORTNAME= webcheck
PORTVERSION= 1.10.3
PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://arthurdejong.org/webcheck/
EXTRACT_SUFX= .tar.gz
MAINTAINER= reed@reedmedia.net
COMMENT= View structure of a web site, get a list of problems like broken links
USES= python
NO_BUILD= yes
# what about fancytooltips?
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.css ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/favicon.ico ${STAGEDIR}${DATADIR}
.for d in parsers parsers/html plugins schemes
@${MKDIR} ${STAGEDIR}${DATADIR}/${d}
${INSTALL_DATA} ${WRKSRC}/${d}/*.py ${STAGEDIR}${DATADIR}/${d}
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/fancytooltips
${INSTALL_DATA} ${WRKSRC}/fancytooltips/* ${STAGEDIR}${DATADIR}/fancytooltips
${INSTALL_SCRIPT} ${WRKSRC}/webcheck.py ${STAGEDIR}${DATADIR}
${LN} -sf ${DATADIR}/webcheck.py ${STAGEDIR}${PREFIX}/bin
cd ${STAGEDIR}${DATADIR}; ${PYTHON_CMD} -m compileall .
cd ${STAGEDIR}${DATADIR}; ${PYTHON_CMD} -O -m compileall .
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/webcheck.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>