freebsd-ports/www/tclwebtest/Makefile
Mathieu Arnold eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00

44 lines
1.3 KiB
Makefile

# Created by: Aldert Nooitgedagt
# $FreeBSD$
PORTNAME= tclwebtest
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= www tcl
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for issuing HTTP requests and dealing with the result
LICENSE= GPLv2
RUN_DEPENDS= tclsh:lang/tcl-wrapper
NO_BUILD= YES
LIBDIR= lib/tclwebtest${PORTVERSION}
PLIST_SUB+= LIBDIR="${LIBDIR}"
OPTIONS_DEFINE= DOCS
post-extract:
@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -r
@${SED} -i "" -e "s| tclsh | ${LOCALBASE}/bin/tclsh |g" ${WRKSRC}/tclwebtest
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${LIBDIR}
.for FILE in entities.tcl from_openacs.tcl pkgIndex.tcl tclwebtest.tcl
${INSTALL_DATA} ${WRKSRC}/lib/${FILE} ${STAGEDIR}${PREFIX}/${LIBDIR}/${FILE}
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/selftest ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKSRC}/openacs4tests ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/tclwebtest ${STAGEDIR}${PREFIX}/bin/tclwebtest
post-install-DOCS-on:
@${ECHO} "Installing docs"
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc
${TAR} -C ${WRKSRC} -c -f - ChangeLog README TODO index.html generate_docs.test | ${TAR} -C ${STAGEDIR}${DOCSDIR} -x -f -
${TAR} -C ${WRKSRC}/doc -c -f - . | ${TAR} -C ${STAGEDIR}${DOCSDIR}/doc -x -f -
.include <bsd.port.mk>