[54134] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Wed Jul 29 04:43:36 PDT 2009


On Jul 21, 2009, at 16:35, mnick at macports.org wrote:

> Added: trunk/dports/python/py26-pymc/Portfile
[snip]
> +variant gcc42 description {create Fortran wrappers using gcc42}  
> conflicts gcc43 g95 {
> +    depends_lib-append    port:gcc42
> +    set fc                ${prefix}/bin/gfortran-mp-4.2
> +    build.env-append      F77=${fc} F90=${fc}
> +}
> +
> +variant gcc43 description {create Fortran wrappers using gcc43}  
> conflicts gcc42 g95 {
> +    depends_lib-append    port:gcc43
> +    set fc                ${prefix}/bin/gfortran-mp-4.3
> +    build.env-append      F77=${fc} F90=${fc}
> +}
> +
> +variant g95 description {create Fortran wrappers using f95}  
> conflicts gcc42 gcc43 {
> +    depends_lib-append    port:g95
> +    set fc                ${prefix}/bin/g95
> +    build.env-append      F77=${fc} F90=${fc}
> +}
> +
> +default_variants +gcc43

gcc43 should only be the default variant if no other conflicting  
variant has already been selected. See the pdftk port for an example.  
You want something like:

if {![variant_isset gcc42] && ![variant_isset g95]} {
     default_variants +gcc43
}





More information about the macports-dev mailing list