View | Details | Raw Unified | Return to bug 109691
Collapse All | Expand All

(-)www/tclwebtest/Makefile (-7 / +30 lines)
Lines 7-32 Link Here
7
7
8
PORTNAME=	tclwebtest
8
PORTNAME=	tclwebtest
9
PORTVERSION=	1.0
9
PORTVERSION=	1.0
10
CATEGORIES=	www
10
PORTREVISION=	1
11
CATEGORIES=	www tcl84
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
14
14
MAINTAINER=	aldert@nooitgedagt.net
15
MAINTAINER=	aldert@nooitgedagt.net
15
COMMENT=	Tool for issuing HTTP requests and dealing with the result
16
COMMENT=	Tool for issuing HTTP requests and dealing with the result
16
17
17
LIB_DEPENDS+=	tcl84.1:${PORTSDIR}/lang/tcl84-thread
18
USE_TCL_VER?=	84
19
20
.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85
21
IGNORE=		supported values for USE_TCL_VER are only 84 and 85
22
.endif
23
24
# by default we want tcl with threads as dependency (www/openacs)
25
USE_TCL=	${USE_TCL_VER}-thread
18
26
19
NO_BUILD=	YES
27
NO_BUILD=	YES
20
28
21
TCLVERSION=	8.4
22
TWTBASE=	${PREFIX}/tclwebtest-${PORTVERSION}
29
TWTBASE=	${PREFIX}/tclwebtest-${PORTVERSION}
23
TWTBASEL=	${PREFIX}/tclwebtest
30
TWTBASEL=	${PREFIX}/tclwebtest
24
31
25
PLIST_SUB+=	TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=lib/tcl${TCLVERSION}
32
.include <bsd.port.pre.mk>
33
34
.if exists(${TCLSH})
35
_TCL_IS_THREADED!=	${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} || return 0
36
. if empty(_TCL_IS_THREADED)
37
# Check if a threaded build is forced
38
.  if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
39
IGNORE=	tcl with threads is required. Please install tcl with WITH_THREADS defined or from lang/tcl${USE_TCL} port and try again
40
.  else
41
# Installed tcl is not threaded, so set correct dependencies
42
USE_TCL=${USE_TCL_VER}
43
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
44
.  endif
45
. endif
46
.endif
47
48
PLIST_SUB+=	TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=${TCL_LIBDIR:S/${LOCALBASE}\///g}
26
49
27
post-extract:
50
post-extract:
28
	@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
51
	@${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf
29
	@${SED}	-i "" -e "s| tclsh | tclsh${TCLVERSION} |g" ${WRKSRC}/tclwebtest
52
	@${SED}	-i "" -e "s| tclsh | ${TCLSH} |g" ${WRKSRC}/tclwebtest
30
53
31
do-install:
54
do-install:
32
	@${TEST} -d ${TWTBASE} || ( ${MKDIR} ${TWTBASE} && \
55
	@${TEST} -d ${TWTBASE} || ( ${MKDIR} ${TWTBASE} && \
Lines 45-51 Link Here
45
68
46
post-install:
69
post-install:
47
	@${TEST} -L ${TWTBASEL} || ${LN} -s ${TWTBASE} ${TWTBASEL}
70
	@${TEST} -L ${TWTBASEL} || ${LN} -s ${TWTBASE} ${TWTBASEL}
48
	@${TEST} -L ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest || ${LN} -s ${TWTBASEL}/lib ${LOCALBASE}/lib/tcl${TCLVERSION}/tclwebtest
71
	@${TEST} -L ${TCL_LIBDIR}/tclwebtest || ${LN} -s ${TWTBASEL}/lib ${TCL_LIBDIR}/tclwebtest
49
	@${TEST} -L ${PREFIX}/bin/tclwebtest || ${LN} -s ${TWTBASEL}/tclwebtest ${PREFIX}/bin
72
	@${TEST} -L ${PREFIX}/bin/tclwebtest || ${LN} -s ${TWTBASEL}/tclwebtest ${PREFIX}/bin
50
73
51
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
74
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
Lines 53-56 Link Here
53
	@${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. "
76
	@${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. "
54
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
77
	@${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
55
78
56
.include <bsd.port.mk>
79
.include <bsd.port.post.mk>
(-)www/tclwebtest/pkg-plist (-2 / +1 lines)
Lines 1-4 Link Here
1
bin/tclwebtest
1
bin/tclwebtest
2
%%TCLLIB%%/tclwebtest
2
%%DOCSDIR%%/ChangeLog
3
%%DOCSDIR%%/ChangeLog
3
%%DOCSDIR%%/README
4
%%DOCSDIR%%/README
4
%%DOCSDIR%%/TODO
5
%%DOCSDIR%%/TODO
Lines 96-100 Link Here
96
@dirrm %%EXAMPLESDIR%%
97
@dirrm %%EXAMPLESDIR%%
97
@dirrm %%DOCSDIR%%/doc
98
@dirrm %%DOCSDIR%%/doc
98
@dirrm %%DOCSDIR%%
99
@dirrm %%DOCSDIR%%
99
@cwd %%LOCALBASE%%
100
%%TCLLIB%%/tclwebtest

Return to bug 109691