On 09/16/14 21:48, Stuart Cassoff wrote: > On 07/11/14 06:22, Stuart Henderson wrote: >> On 2014/07/10 23:44, Stuart Cassoff wrote: >>> eh? meh? >> >> You need a subst variable with the actual path not just the version >> number, otherwise you're still going to be hand modifying PLISTs all >> over the place. >> >> So something like: >> >> MODTCL_MINVERSION?= 8.5 >> MODTCL_MODPATH= lib/tcl/${MODTCL_MINVERSION} >> SUBST_VARS+= MODTCL_MODPATH MODTCL_VERSION MODTCL_BIN >> >> It would help clarify things to show a diff with a port that has >> been modified to use this method, too. >> > > Here are diffs for everything concerned. > Added missing modtcl vars and did a bit of rearranging in port-modules.5. > Described MODTCL_MINVERSION and MODTCL_MODPATH. > Removed the rest package from tcllib; it needs tDOM which we don't currently > have. > Saves installing 51 directories and 51 pkgIndex.tcl files. >
Another way to do this would be to change the Tcl module dirs to be like modules/85 instead of modules/8.5, then the MODTCL_MODPATH stuff wouldn't be needed.