blob: bf03d0a7fba7e41165a7239ab579f700d1dfac20 (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: tclwebtest
# Date created: July 2005
# Whom: Aldert Nooitgedagt
#
# $FreeBSD$
#
PORTNAME= tclwebtest
PORTVERSION= 1.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= aldert@nooitgedagt.net
COMMENT= Tool for issuing HTTP requests and dealing with the result
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84-thread
NO_BUILD= YES
TCLVERSION= 8.4
TWTBASE= ${PREFIX}/tclwebtest-${PORTVERSION}
TWTBASEL= ${PREFIX}/tclwebtest
PLIST_SUB+= TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=lib/tcl${TCLVERSION}
post-extract:
@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
@${SED} -i "" -e "s| tclsh | tclsh${TCLVERSION} |g" ${WRKSRC}/tclwebtest
do-install:
@${TEST} -d ${TWTBASE} || ( ${MKDIR} ${TWTBASE} && \
${CP} -R ${WRKSRC}/lib ${TWTBASE} && \
${CP} -R ${WRKSRC}/selftest ${TWTBASE} && \
${CP} ${WRKSRC}/tclwebtest ${TWTBASE} )
@${MKDIR} ${EXAMPLESDIR}
@${CP} -R ${WRKSRC}/openacs4tests ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${ECHO} "Installing docs"
@${MKDIR} ${DOCSDIR}/doc
@${TAR} -C ${WRKSRC} -c -f - ChangeLog README TODO index.html generate_docs.test | ${TAR} -C ${DOCSDIR} -x -f -
@${TAR} -C ${WRKSRC}/doc -c -f - . | ${TAR} -C ${DOCSDIR}/doc -x -f -
.endif
post-install:
@${TEST} -L ${TWTBASEL} || ${LN} -s ${TWTBASE} ${TWTBASEL}
@${TEST} -L ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest || ${LN} -s ${TWTBASEL}/lib ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest
@${TEST} -L ${PREFIX}/bin/tclwebtest || ${LN} -s ${TWTBASEL}/tclwebtest ${PREFIX}/bin
@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@${ECHO_CMD} " You may need to set TCLLIBPATH in your environment. "
@${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. "
@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.include <bsd.port.mk>
|