aboutsummaryrefslogtreecommitdiff
path: root/www/tclwebtest/Makefile
blob: 7694605f36dc9597e755d355742d88cadec0ecc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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} -rf
	@${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>