Looking for a cure for weird scope/memory of variables
Lawrence Velázquez
larryv at macports.org
Wed Jul 10 10:53:44 PDT 2013
On Jul 10, 2013, at 10:30 AM, Mojca Miklavec <mojca at macports.org> wrote:
> the more I read this thread, the more I find it all confusing.
That's because it is confusing :)
> Can someone suggest the best solution in case of this concrete example?
> https://trac.macports.org/browser/users/mojca/ports/science/geant/Portfile
>
> The variable ${geant.data_versions} works ok (but probably some nicer
> code), but ${geant.datadir}, particularly inside destroot of
> geant4-${geant.version}-data is problematic.
Since you only want to substitute one variable, you should probably go with template substitution. I've attached a patch.
vq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile-geant.diff
Type: application/octet-stream
Size: 2273 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130710/f998dfe1/attachment-0001.obj>
More information about the macports-dev
mailing list