Looking for a cure for weird scope/memory of variables

Mojca Miklavec mojca at macports.org
Wed Jul 10 11:58:23 PDT 2013

On Wed, Jul 10, 2013 at 7:53 PM, Lawrence Velázquez wrote:
> On Jul 10, 2013, at 10:30 AM, Mojca Miklavec 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.

Thank you. I applied it, but I need some more testing.


More information about the macports-dev mailing list