Re: checking for swig variants in a pre-fetch hook

2008-07-06 Thread Jyrki Wahlstedt
On 4.7.2008, at 21.22, Ryan Schmidt wrote: On Jul 4, 2008, at 12:08, Landon Fuller wrote: On Jul 3, 2008, at 11:25 PM, Adam Mercer wrote: The recent changes to the swig port have broken the scipy build on Tiger, essentially the problem is that scipy requires the python variant of swig to

checking for swig variants in a pre-fetch hook

2008-07-04 Thread Adam Mercer
Hi The recent changes to the swig port have broken the scipy build on Tiger, essentially the problem is that scipy requires the python variant of swig to be installed. Therefore to try and fix this I want to check for existence of the python variant using something like the following pre-fetch

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Joshua Root
Adam Mercer wrote: Hi The recent changes to the swig port have broken the scipy build on Tiger, essentially the problem is that scipy requires the python variant of swig to be installed. Therefore to try and fix this I want to check for existence of the python variant using something like

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Joshua Root
Adam Mercer wrote: On Fri, Jul 4, 2008 at 1:38 AM, Joshua Root [EMAIL PROTECTED] wrote: Changing the if line to this should do it: if {![llen [glob ${prefix}/share/swig/*/python/python.swg]]} { Using the above line only half works if a file doesn't satisfy the above pattern port errors

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Adam Mercer
On Fri, Jul 4, 2008 at 10:23 AM, Joshua Root [EMAIL PROTECTED] wrote: Josh Ah, sorry, I forgot that glob errors if nothing matches. Add -nocomplain: if {![llen [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} Still not working quite right, the error is now: --- Fetching

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Rainer Müller
Adam Mercer wrote: --- Fetching py25-scipy Error: Target org.macports.fetch returned: invalid command name llen Error: Status 1 encountered during processing. It should be [llength ...] Rainer ___ macports-dev mailing list

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Adam Mercer
On Fri, Jul 4, 2008 at 10:50 AM, Rainer Müller [EMAIL PROTECTED] wrote: It should be [llength ...] Thanks Rainer, that does the job. Cheers Adam ___ macports-dev mailing list macports-dev@lists.macosforge.org

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Landon Fuller
On Jul 3, 2008, at 11:25 PM, Adam Mercer wrote: The recent changes to the swig port have broken the scipy build on Tiger, essentially the problem is that scipy requires the python variant of swig to be installed. Swig's variants: swig 1.3.36, devel/swig (Variants: universal, doc, python,

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Ryan Schmidt
On Jul 4, 2008, at 12:08, Landon Fuller wrote: On Jul 3, 2008, at 11:25 PM, Adam Mercer wrote: The recent changes to the swig port have broken the scipy build on Tiger, essentially the problem is that scipy requires the python variant of swig to be installed. Swig's variants: swig

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Jordan K. Hubbard
On Jul 4, 2008, at 9:01 AM, Joshua Root wrote: if {![llen [glob -nocomplain ${prefix}/share/swig/*/python/ python.swg]]} Still not working quite right, the error is now: --- Fetching py25-scipy Error: Target org.macports.fetch returned: invalid command name llen Error: Status 1

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Jordan K . Hubbard
Doh, I hate it when tcl helps by automatically intuiting command names at the shell! Rainer is, of course, correct: The correct command name is llength, not llen, hence the problem. My face is red... - Jordan On Jul 4, 2008, at 1:04 PM, Jordan K. Hubbard wrote: On Jul 4, 2008, at 9:01

Re: checking for swig variants in a pre-fetch hook

2008-07-04 Thread Joshua Root
Jordan K. Hubbard wrote: Doh, I hate it when tcl helps by automatically intuiting command names at the shell! Rainer is, of course, correct: The correct command name is llength, not llen, hence the problem. My face is red... Indeed, it fooled me as well. - Josh