On Thu, Dec 05, 2013 at 01:26:47AM -0500, Stuart Cassoff wrote:
> I'd like tcllib and tklib to make use of 'tcl modules'.
> Every package that can be installed as a tcl module saves one file and one dir
> and there are enough eligible packages that I think it's worth doing.
> This makes use of a newer tcl packaging system that's a bit better and/or 
> faster.
> 
> These should always be installend in the dir for lowest tcl version possible, 
> which is 8.5.
> I'm concerned that ${MODTK_VERSION} in the PLIST isn't right.
> 
> Here's the result for one package:

So, make sure to look at the result of update-plist, it's not always
right.

Another trick would be to add a longer variable *in front* of MODTK_VERSION
in SUBST_VARS.

E.g., 

MODTK_MINVERSION ?= 8.5
MODTK_MODPATH=modules/${MODTK_MINVERSION}

SUBST_VARS = ... MODTK_MODPATH MODTK_VERSION ...

should solve your substitute issue


> --- /usr/ports/devel/tklib/pkg/PLIST    Sat Nov 16 16:26:47 2013
> +++ PLIST       Thu Dec  5 00:09:14 2013
> @@ -3,9 +3,6 @@
>  @conflict wcb-*
>  @pkgpath devel/mentry
>  @pkgpath devel/wcb
> -lib/tcl/autoscroll/
> -lib/tcl/autoscroll/autoscroll.tcl
> -lib/tcl/autoscroll/pkgIndex.tcl
>  lib/tcl/canvas/
>  lib/tcl/canvas/canvas_drag.tcl
>  lib/tcl/canvas/canvas_epoints.tcl
> @@ -101,6 +98,7 @@
>  lib/tcl/menubar/node.tcl
>  lib/tcl/menubar/pkgIndex.tcl
>  lib/tcl/menubar/tree.tcl
> +lib/tcl/modules/${MODTK_VERSION}/autoscroll-1.1.tm
>  lib/tcl/ntext/
>  lib/tcl/ntext/ntext.tcl
>  lib/tcl/ntext/pkgIndex.tcl

Reply via email to