Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Lawrence Velázquez
On Jul 9, 2013, at 5:19 PM, Joshua Root wrote: > On 2013-7-10 03:56 , Clemens Lang wrote: >> 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 { >>>syst

Re: Macports Tcl

2013-07-09 Thread Clemens Lang
On Tue, Jul 09, 2013 at 07:21:41PM +0200, Gustaf Neumann wrote: > It certainly needs an update in the macports base, but i would not > expect this to be painful. Let me know, if i can help. At the moment there's not much we can do, before we have a working bootstrap mechanism for Tcl 8.6 (or rathe

Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Joshua Root
On 2013-7-10 03:56 , Clemens Lang wrote: > 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}" >> } >> fetc

Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Gustaf Neumann
Am 09.07.13 19:56, schrieb Clemens Lang: 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 {}

Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Clemens Lang
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

Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Gustaf Neumann
Am 09.07.13 19:25, schrieb Clemens Lang: with all the ugly quoting that will be caused by this. this is nicer to read: set foo.versions { 2.0 x 3.0 y 4.1 z } foreach {foo.version foo.string} ${foo.versions} { subport foo-${foo.version} [subst { pre-fetch {

Re: Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Clemens Lang
On Tue, Jul 09, 2013 at 06:39:48PM +0200, Mojca Miklavec wrote: > subport foo-${foo.version} { > pre-fetch { > system "echo ${foo.version}" > } > fetch {} > extract {} > use_configure no > build {} > destroot {} > } The co

Re: Macports Tcl

2013-07-09 Thread Gustaf Neumann
Am 09.07.13 17:56, schrieb Clemens Lang: Unfortunately the try implemented in tcl 8.6 seems to be TIP #329 [1]. oops, you are right, forgot that (the discussion was in 2008). At a glace, it seems MacPorts' try indeed conforms to TIP #89, but TIP #329 no longer provides the "catch" block availab

Looking for a cure for weird scope/memory of variables

2013-07-09 Thread Mojca Miklavec
Hi, I just stumbled upon the following problem with Geant4. See the minimal example: PortSystem 1.0 namefoo version 1.0 categories science maintainers nomaintainer description Foo testing long_description${description} set foo.ver

Re: Macports Tcl

2013-07-09 Thread Clemens Lang
On Tue, Jul 09, 2013 at 05:25:19PM +0200, Gustaf Neumann wrote: > The command "try" is new built-in tcl 8.6. Unfortunately the try implemented in tcl 8.6 seems to be TIP #329 [1]. At a glace, it seems MacPorts' try indeed conforms to TIP #89, but TIP #329 no longer provides the "catch" block avail

Re: Macports Tcl

2013-07-09 Thread Gustaf Neumann
The command "try" is new built-in tcl 8.6. Since the implementation of proc "try" in macports_util.tcl says, it is compatible with Tcl TIP #89, lets hope that the usage pattern in of "try" in macports are compatible with TIP #89, and one can use the built-in "try" instead of the proc - at least

Re: Macports Tcl

2013-07-09 Thread Clemens Lang
Hi, On Mon, Jul 08, 2013 at 08:22:29PM -0400, Mark Anderson wrote: > I think that's what we're getting at. I may have been imprecise in how > I described it. I think we should have sone method to download and > build some of the tools we need and set them aside. I've given that a try and while it

Geant4 & Gate: a new attempt & request for feedback

2013-07-09 Thread Mojca Miklavec
Hello, I have created another attempt of portfiles for Geant4 and Gate, see: - https://trac.macports.org/browser/users/mojca/ports/science/geant/Portfile - https://trac.macports.org/browser/users/mojca/ports/science/gate/Portfile I used a great deal of hardcoding different paths, running unusual