[101344] trunk/dports/python/py-matplotlib/Portfile

Adam Mercer ram at macports.org
Thu Jan 10 18:40:30 PST 2013


On Thu, Jan 10, 2013 at 8:22 PM, Ryan Schmidt <ryandesign at macports.org> wrote:

Ryan

>> +# build fails with gcc-4.0 on Leopard, use gcc-4.2 (#37069)
>> +if {${configure.compiler} == "gcc-4.0"} {
>> +   configure.compiler gcc-4.2
>> +}
>
> Couldn't this just be written as:
>
> compiler.blacklist gcc-4.0
>
> Of course this (or what you've already committed) will cause the port to fail on Tiger which has no gcc-4.2 (unless you work on making it use the apple-gcc42 port in that case; some other ports do this if you want to copy the code block).

I hadn't thought about Tiger. Which ports do this, I've had a look but
can't seem to find any examples?

Cheers

Adam


More information about the macports-dev mailing list