Portfile/Tcl: stripping `${prefix}/` from a variable

René J.V. Bertin rjvbertin at gmail.com
Thu Jul 16 14:58:03 PDT 2015


Hi,

path: style dependencies require relative paths, so the problem how to remove the leading `${prefix}/` from path variables must have been solved numerous times already. Is there a function in base that does this?
Alternatively, is there a variant path: style dependency that takes absolute paths?

Thanks,
René


More information about the macports-dev mailing list