From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 28 13:30:07 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D6A516A405 for ; Wed, 28 Feb 2007 13:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4661513C4B4 for ; Wed, 28 Feb 2007 13:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1SDU7Xh015718 for ; Wed, 28 Feb 2007 13:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1SDU7WZ015717; Wed, 28 Feb 2007 13:30:07 GMT (envelope-from gnats) Resent-Date: Wed, 28 Feb 2007 13:30:07 GMT Resent-Message-Id: <200702281330.l1SDU7WZ015717@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Matuska Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F50516A402 for ; Wed, 28 Feb 2007 13:22:28 +0000 (UTC) (envelope-from rebum@mail.vx.sk) Received: from mail.vx.sk (neo.vx.sk [88.198.35.14]) by mx1.freebsd.org (Postfix) with ESMTP id 01BB413C428 for ; Wed, 28 Feb 2007 13:22:27 +0000 (UTC) (envelope-from rebum@mail.vx.sk) Received: from localhost (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id B3FC13F42D for ; Wed, 28 Feb 2007 14:22:26 +0100 (CET) Received: from mail.vx.sk ([127.0.0.1]) by localhost (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TTJSE1HKR+s6 for ; Wed, 28 Feb 2007 14:22:18 +0100 (CET) Received: by mail.vx.sk (Postfix, from userid 1001) id 10C293F4F4; Wed, 28 Feb 2007 14:22:18 +0100 (CET) Message-Id: <20070228132218.10C293F4F4@mail.vx.sk> Date: Wed, 28 Feb 2007 14:22:18 +0100 (CET) From: Martin Matuska To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/109675: [MAINTAINER UPDATE] lang/xotcl 1.5.3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Matuska List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 13:30:07 -0000 >Number: 109675 >Category: ports >Synopsis: [MAINTAINER UPDATE] lang/xotcl 1.5.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Feb 28 13:30:06 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: Changes to the port: - removed WITH_THREADS and WITH_AOLSERVER from OPTIONS - added support for threaded build (WITH_THREADS), prepared for xotcl-thread slave port - added support for tcl85, removed tcl83 from CATEGORIES - prepared for www/aolserver-xotcl slave module (AOLSERVER_XOTCL knob) Tested with tinderbox: http://tinderbox.vx.sk/logs/6.2-FreeBSD-amd64/xotcl-1.5.3_2.log >How-To-Repeat: >Fix: diff -Nbur lang/xotcl.orig/Makefile lang/xotcl/Makefile --- lang/xotcl.orig/Makefile Wed Feb 28 11:39:21 2007 +++ lang/xotcl/Makefile Wed Feb 28 14:05:32 2007 @@ -7,35 +7,49 @@ PORTNAME= xotcl PORTVERSION= 1.5.3 -PORTREVISION= 1 -CATEGORIES= lang tcl83 tcl84 +PORTREVISION= 2 +CATEGORIES= lang tcl84 MASTER_SITES= http://media.wu-wien.ac.at/download/ +PKGNAMESUFFIX?= ${THREADS_SUFFIX} MAINTAINER= martin@matuska.org COMMENT= Object-oriented scripting language based on Tcl -GNU_CONFIGURE= yes -USE_TCL= yes -USE_TCL_BUILD= yes -ALL_TARGET= all test-nohttp +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 + +USE_TCL= ${USE_TCL_VER} +USE_TCL_BUILD= ${USE_TCL_VER} INSTALL_TARGET= install -USE_LDCONFIG= yes +ALL_TARGET= all test-nohttp USE_GMAKE= yes PLIST_SUB+= PORTVERSION=${PORTVERSION} +.if !defined(AOLSERVER_XOTCL) +USE_LDCONFIG= ${PREFIX}/xotcl${PORTVERSION} +GNU_CONFIGURE= yes + OPTIONS= ACTIWEB "Include actiweb" on \ - AOLSERVER "AOL server module" off \ - THREADS "Force threaded build" off \ TUTORIAL "Install XOTcl tutorial" off - -CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \ - --libdir=${PREFIX}/lib \ - --with-tcl=${TCL_LIBDIR} \ - --with-tclinclude=${TCL_INCLUDEDIR}/generic/ \ - --with-xotclsh +.else +AOLSERVERBASE?= ${LOCALBASE}/aolserver +.endif .include +.if defined(AOLSERVER_XOTCL) +RUN_DEPENDS+= ${LOCALBASE}/aolserver/bin/init.tcl:${PORTSDIR}/www/aolserver \ + ${LOCALBASE}/lib/xotcl${PORTVERSION}/xotclConfig.sh:${PORTSDIR}/lang/xotcl-thread +PLIST= ${WRKDIR}/pkg-plist.aolserver +PLIST_FILES= ${AOLSERVERBASE:S/${LOCALBASE}\///}/modules/tcl/xotcl.tcl +LATEST_LINK= aolserver-xotcl +NO_BUILD= yes +WITH_THREADS= yes +.endif + .if defined(WITH_ACTIWEB) CONFIGURE_ARGS+= --with-actiweb --with-gdbm=${LOCALBASE}/include,${LOCALBASE}/lib LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm @@ -44,34 +58,61 @@ PLIST_SUB+= ACTIWEB="@comment " .endif -.if defined(WITH_AOLSERVER) -BUILD_DEPENDS+= ${LOCALBASE}/aolserver/bin/init.tcl:${PORTSDIR}/www/aolserver -RUN_DEPENDS+= ${BUILD_DEPENDS} -PLIST_SUB+= AOLSERVER="" -INSTALL_TARGET+= install-aol -.else -PLIST_SUB+= AOLSERVER="@comment " -.endif - .if defined(WITH_TUTORIAL) PLIST_SUB+= TUTORIAL="" .else PLIST_SUB+= TUTORIAL="@comment " .endif -.if defined(WITH_THREADS) -TCL_THREADED!= ${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} -.if empty(TCL_THREADED) -IGNORE= WITH_THREADS option is selected. You need Tcl with threads to use this port. Please install Tcl with WITH_THREADS defined or from lang/tcl84-thread port and try again. +INSTALL_TARGET+= install-shells + +.if !defined(AOLSERVER_XOTCL) && !defined(NO_INSTALL_MANPAGES) +MAN1= xotclsh.1 .endif + +. if exists(${TCLSH}) +_TCL_IS_THREADED!= ${ECHO_CMD} 'puts [array names tcl_platform -exact threaded]' | ${TCLSH} || return 0 +. if !defined(TCL_WITH_THREADS) && !defined(WITH_THREADS) && !empty(_TCL_IS_THREADED) +TCL_WITH_THREADS= yes +. endif +. endif + +.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS) +. if defined(_TCL_IS_THREADED) && empty(_TCL_IS_THREADED) +IGNORE= threaded build is required. You need Tcl with threads to use this port. Please install Tcl with WITH_THREADS defined or from lang/tcl84-thread port and try again +. endif CONFIGURE_ARGS+= --enable-threads +. if !defined(AOLSERVER_XOTCL) +THREADS_SUFFIX= -threads +. endif +USE_TCL= ${USE_TCL_VER}-thread +USE_TCL_BUILD= ${USE_TCL_VER}-thread +.include "${PORTSDIR}/Mk/bsd.tcl.mk" +. else +CONFIGURE_ARGS+= --disable-threads .endif -INSTALL_TARGET+= install-shells -.if !defined(NO_INSTALL_MANPAGES) -MAN1= xotclsh.1 +LATEST_LINK?= xotcl${THREADS_SUFFIX} + +CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \ + --libdir=${PREFIX}/lib \ + --with-tcl=${TCL_LIBDIR} \ + --with-tclinclude=${TCL_INCLUDEDIR}/generic/ \ + --with-xotclsh + +.if !defined(AOLSERVER_XOTCL) # Install for aolserver module +pre-configure: +. if defined(TCL_WITH_THREADS) || defined(WITH_THREADS) + @${ECHO_CMD} "*************************************************" + @${ECHO_CMD} "NOTICE: XOTcl will be built with threads support." + @${ECHO_CMD} "*************************************************" +. endif +.else # installation for aolserver module +do-install: + @${INSTALL_DATA} ${WRKSRC}/generic/aol-xotcl.tcl ${AOLSERVERBASE}/modules/tcl/xotcl.tcl .endif +.if !defined(AOLSERVER_XOTCL) # Aolserver module has no post-install post-install: .if defined(WITH_TUTORIAL) ${MKDIR} ${EXAMPLESDIR}/tutorial/html ${EXAMPLESDIR}/tutorial/pdf @@ -91,5 +132,6 @@ .endif .if !defined(NO_INSTALL_MANPAGES) ${INSTALL_MAN} ${WRKSRC}/man/xotclsh.1 ${PREFIX}/man/man1/ +.endif .endif .include diff -Nbur lang/xotcl.orig/pkg-plist lang/xotcl/pkg-plist --- lang/xotcl.orig/pkg-plist Wed Feb 28 11:39:21 2007 +++ lang/xotcl/pkg-plist Wed Feb 28 14:14:48 2007 @@ -72,7 +72,6 @@ %%ACTIWEB%%lib/xotclsdbm1.2/pkgIndex.tcl %%ACTIWEB%%lib/xotclgdbm1.2/libxotclgdbm1.2.so %%ACTIWEB%%lib/xotclgdbm1.2/pkgIndex.tcl -%%AOLSERVER%%aolserver/modules/tcl/xotcl.tcl bin/xotclsh include/xotcl%%PORTVERSION%%/xotcl.h include/xotcl%%PORTVERSION%%/xotclDecls.h >Release-Note: >Audit-Trail: >Unformatted: