Looking for a cure for weird scope/memory of variables
Clemens Lang
cal at macports.org
Tue Jul 9 10:56:28 PDT 2013
On Tue, Jul 09, 2013 at 07:32:03PM +0200, Gustaf Neumann wrote:
> foreach {foo.version foo.string} ${foo.versions} {
> subport foo-${foo.version} [subst {
> pre-fetch {
> system "echo ${foo.version}"
> }
> fetch {}
> extract {}
> use_configure no
> build {}
> destroot {}
> }]
> }
I assume there is no sane way to guess what the user wants and somehow
integrate this into the subport (and pre-fetch, etc.) procs, is there?
We could have a -subst switch, though:
subport -subst {
code
}
--
Clemens Lang
More information about the macports-dev
mailing list