Date: Wed, 28 Feb 2007 18:23:17 +0100 (CET) From: Martin Matuska <martin@matuska.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/109691: [UPDATE] www/tclwebtest Message-ID: <20070228172317.B4C6D3F4F1@mail.vx.sk> Resent-Message-ID: <200702281730.l1SHU473032362@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109691 >Category: ports >Synopsis: [UPDATE] www/tclwebtest >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Feb 28 17:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 6.2-RELEASE i386 >Organization: >Environment: System: FreeBSD 6.2-RELEASE i386 amd64 >Description: Update of tclwebtest-1.0: - 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 Tested with tinderbox: http://tinderbox.vx.sk/logs/6.2-FreeBSD-amd64/tclwebtest-1.0_1.log I would like to takeover maintainership for this port. >How-To-Repeat: >Fix: diff -Nbur www/tclwebtest.orig/Makefile www/tclwebtest/Makefile --- www/tclwebtest.orig/Makefile Wed Jul 27 13:32:50 2005 +++ www/tclwebtest/Makefile Wed Feb 28 18:14:38 2007 @@ -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 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 @@ 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 @@ @${ECHO_CMD} " Set it to ${TWTBASEL} if tclwebtest barks at you. " @${ECHO_CMD} "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -Nbur www/tclwebtest.orig/pkg-plist www/tclwebtest/pkg-plist --- www/tclwebtest.orig/pkg-plist Wed Jul 27 13:32:50 2005 +++ www/tclwebtest/pkg-plist Wed Feb 28 18:13:58 2007 @@ -1,4 +1,5 @@ bin/tclwebtest +%%TCLLIB%%/tclwebtest %%DOCSDIR%%/ChangeLog %%DOCSDIR%%/README %%DOCSDIR%%/TODO @@ -96,5 +97,3 @@ @dirrm %%EXAMPLESDIR%% @dirrm %%DOCSDIR%%/doc @dirrm %%DOCSDIR%% -@cwd %%LOCALBASE%% -%%TCLLIB%%/tclwebtest >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070228172317.B4C6D3F4F1>