diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-03-01 11:44:24 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-03-01 11:44:24 +0000 |
commit | 2d370ba4c7a2f8c0039511dbdecb8ed7b288a2a4 (patch) | |
tree | 477cd284d70787f41788ed67c10f420455d0624c /www/tclwebtest | |
parent | da03c91fae1701bd34dd30cef22c348fd363f287 (diff) | |
download | ports-2d370ba4c7a2f8c0039511dbdecb8ed7b288a2a4.tar.gz ports-2d370ba4c7a2f8c0039511dbdecb8ed7b288a2a4.zip |
- Added support for non-threaded tcl (if installed)
- Added support for tcl85 via USE_TCL_VER=85
- Added tcl84 to CATEGORIES list
- Fixed some Makefile and pkg-plist issues
- Pass maintainership to submitter
PR: 109691
Submitted by: Martin Matuska <martin@matuska.org>
Approved by: Aldert nooitgedagt - net <aldert@nooitgedagt.net> (old maintainer)
Notes
Notes:
svn path=/head/; revision=186281
Diffstat (limited to 'www/tclwebtest')
-rw-r--r-- | www/tclwebtest/Makefile | 39 | ||||
-rw-r--r-- | www/tclwebtest/pkg-plist | 3 |
2 files changed, 32 insertions, 10 deletions
diff --git a/www/tclwebtest/Makefile b/www/tclwebtest/Makefile index bf03d0a7fba7..054cd8b3749d 100644 --- a/www/tclwebtest/Makefile +++ b/www/tclwebtest/Makefile @@ -7,26 +7,49 @@ PORTNAME= tclwebtest PORTVERSION= 1.0 -CATEGORIES= www +PORTREVISION= 1 +CATEGORIES= www tcl84 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= aldert@nooitgedagt.net +MAINTAINER= martin@matuska.org COMMENT= Tool for issuing HTTP requests and dealing with the result -LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84-thread +USE_TCL_VER?= 84 + +.if ${USE_TCL_VER} != 84 && ${USE_TCL_VER} != 85 +IGNORE= supported values for USE_TCL_VER are only 84 and 85 +.endif + +# by default we want tcl with threads as dependency (www/openacs) +USE_TCL= ${USE_TCL_VER}-thread NO_BUILD= YES -TCLVERSION= 8.4 TWTBASE= ${PREFIX}/tclwebtest-${PORTVERSION} TWTBASEL= ${PREFIX}/tclwebtest -PLIST_SUB+= TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=lib/tcl${TCLVERSION} +.include <bsd.port.pre.mk> + +.if exists(${TCLSH}) +_TCL_IS_THREADED!= ${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} || return 0 +. if empty(_TCL_IS_THREADED) +# Check if a threaded build is forced +. if defined(TCL_WITH_THREADS) || defined(WITH_THREADS) +IGNORE= tcl with threads is required. Please install tcl with WITH_THREADS defined or from lang/tcl${USE_TCL} port and try again +. else +# Installed tcl is not threaded, so set correct dependencies +USE_TCL=${USE_TCL_VER} +.include "${PORTSDIR}/Mk/bsd.tcl.mk" +. endif +. endif +.endif + +PLIST_SUB+= TWTDIR=tclwebtest-${PORTVERSION} TCLLIB=${TCL_LIBDIR:S/${LOCALBASE}\///g} post-extract: @${FIND} ${WRKSRC} -name CVS | ${XARGS} ${RM} -rf - @${SED} -i "" -e "s| tclsh | tclsh${TCLVERSION} |g" ${WRKSRC}/tclwebtest + @${SED} -i "" -e "s| tclsh | ${TCLSH} |g" ${WRKSRC}/tclwebtest do-install: @${TEST} -d ${TWTBASE} || ( ${MKDIR} ${TWTBASE} && \ @@ -45,7 +68,7 @@ do-install: 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 ${TCL_LIBDIR}/tclwebtest || ${LN} -s ${TWTBASEL}/lib ${TCL_LIBDIR}/tclwebtest @${TEST} -L ${PREFIX}/bin/tclwebtest || ${LN} -s ${TWTBASEL}/tclwebtest ${PREFIX}/bin @${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" @@ -53,4 +76,4 @@ post-install: @${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. " @${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/tclwebtest/pkg-plist b/www/tclwebtest/pkg-plist index ca051f18f544..b0ec2eaabf12 100644 --- a/www/tclwebtest/pkg-plist +++ b/www/tclwebtest/pkg-plist @@ -1,4 +1,5 @@ bin/tclwebtest +%%TCLLIB%%/tclwebtest %%DOCSDIR%%/ChangeLog %%DOCSDIR%%/README %%DOCSDIR%%/TODO @@ -96,5 +97,3 @@ tclwebtest @dirrm %%EXAMPLESDIR%% @dirrm %%DOCSDIR%%/doc @dirrm %%DOCSDIR%% -@cwd %%LOCALBASE%% -%%TCLLIB%%/tclwebtest |