On Tue, Sep 26, 2006 at 02:06:24AM +0000, Deanna Phillips wrote:
>Is there a reason why no tclsh symlink is made by the tcl ports?
Because we have tcl8.3 too!?

>
>I'm trying to make a port that uses tcl scripts, and I'm not
>sure how to give it a path to the interpreter.  I guess I could
>require tcl8.4 and use that full path, but it seems messy, and
>would require them, later down the road, to keep multiple tcl
>versions around when it's not necessary.
>
>Maybe like this?
>
>
>Index: Makefile
>===================================================================
>RCS file: /cvs/ports/lang/tcl/8.4/Makefile,v
>retrieving revision 1.14
>diff -u -p -r1.14 Makefile
>--- Makefile   8 Jan 2006 13:08:01 -0000       1.14
>+++ Makefile   26 Sep 2006 01:51:44 -0000
>@@ -6,7 +6,7 @@ COMMENT=       "Tool Command Language"
> VERSION=      8.4.7
> 
> DISTNAME=     tcl${VERSION}-src
>-PKGNAME=      tcl-${VERSION}p1
>+PKGNAME=      tcl-${VERSION}p2
> SHARED_LIBS=  tcl84 1.0
> CATEGORIES=   lang lang/tcl
> MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
>@@ -50,5 +50,6 @@ post-install:
>       ${INSTALL_SCRIPT_DIR} ${PREFIX}/share/aclocal
>       cp ${WRKSRC}/tcl.m4 ${PREFIX}/share/aclocal
>       ranlib ${PREFIX}/lib/libtcl84.a
>+      ln -sf tclsh8.4 ${PREFIX}/bin/tclsh
> 
> .include <bsd.port.mk>
>Index: pkg/PLIST
>===================================================================
>RCS file: /cvs/ports/lang/tcl/8.4/pkg/PLIST,v
>retrieving revision 1.6
>diff -u -p -r1.6 PLIST
>--- pkg/PLIST  18 Sep 2004 12:52:55 -0000      1.6
>+++ pkg/PLIST  26 Sep 2006 01:51:45 -0000
>@@ -1,6 +1,7 @@
> @comment $OpenBSD: PLIST,v 1.6 2004/09/18 12:52:55 espie Exp $
> @option no-default-conflict
> @conflict tcl->=8.4,<8.5
>+bin/tclsh
> bin/tclsh8.4
> include/tcl8.4/
> include/tcl8.4/generic/
>

Reply via email to