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

Ryan Schmidt ryandesign at macports.org
Thu Jan 10 18:22:06 PST 2013


On Jan 8, 2013, at 20:43, ram at macports.org wrote:

> Revision: 101344
>          https://trac.macports.org/changeset/101344
> Author:   ram at macports.org
> Date:     2013-01-08 18:43:39 -0800 (Tue, 08 Jan 2013)
> Log Message:
> -----------
> python/py-matplotlib: build fails with gcc-4.0 on Leopard, use gcc-4.2 (#37069)
> 
> Modified Paths:
> --------------
>    trunk/dports/python/py-matplotlib/Portfile
> 
> Modified: trunk/dports/python/py-matplotlib/Portfile
> ===================================================================
> --- trunk/dports/python/py-matplotlib/Portfile	2013-01-09 02:35:31 UTC (rev 101343)
> +++ trunk/dports/python/py-matplotlib/Portfile	2013-01-09 02:43:39 UTC (rev 101344)
> @@ -47,6 +47,11 @@
>   reinplace "s|@@PYTHON_BRANCH@@|${prefix}|" ${worksrcpath}/setupext.py
> }
> 
> +# 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).



More information about the macports-dev mailing list