On Sat, Dec 07, 2013 at 03:39:28PM -0500, Stuart Cassoff wrote: > On 12/05/13 05:36, Marc Espie wrote: > > 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. > > > > How's this? Snippet from the port Makefile diff. > > +# We want the lowest Tcl version possible. > +MODTK_VERSION = 8.5 > + > +# Manual target to adjust PLIST after update-plist. > +adj-plist: > + perl -pi -e 's/\$${MODTK_VERSION}/8.5/' ${PKGDIR}/PLIST > + YUCK. A big *NO*.
Did you try the approach I outlined ? Namely provide longer module variables that would be FIRST in the substituted list.