Revision: 144232 https://trac.macports.org/changeset/144232 Author: dstrubbe@macports.org Date: 2016-01-04 19:06:56 -0800 (Mon, 04 Jan 2016) Log Message: ----------- py-usadel1: Use compilers portgroup for Fortran variants. Modified Paths: -------------- trunk/dports/python/py-usadel1/Portfile Modified: trunk/dports/python/py-usadel1/Portfile =================================================================== --- trunk/dports/python/py-usadel1/Portfile 2016-01-05 02:52:32 UTC (rev 144231) +++ trunk/dports/python/py-usadel1/Portfile 2016-01-05 03:06:56 UTC (rev 144232) @@ -3,6 +3,7 @@ PortSystem 1.0 PortGroup python 1.0 +PortGroup compilers 1.0 name py-usadel1 version 0.2.4 @@ -34,51 +35,11 @@ python.add_archflags no universal_variant no - - set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9} - set default_fortran_variant +gcc48 - foreach ver ${gcc_versions} { - set ver_no_dot [join [split ${ver} "."] ""] - - set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"} - - foreach over ${gcc_versions} { - if {${ver} == ${over}} { - continue - } - - set over_no_dot [join [split ${over} "."] ""] - append variant_line " conflicts gcc${over_no_dot}" - } - append variant_line { {}} - - eval $variant_line - - if {[variant_isset gcc${ver_no_dot}]} { - if {${default_fortran_variant} != "+gcc${ver_no_dot}"} { - set default_fortran_variant "" - } - } - } - - if {${default_fortran_variant} != ""} { - default_variants-append "${default_fortran_variant}" - } - - foreach ver ${gcc_versions} { - set ver_no_dot [join [split ${ver} "."] ""] - - if {[variant_isset gcc${ver_no_dot}]} { - depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc - depends_build-append port:gcc${ver_no_dot} - - configure.fc ${prefix}/bin/gfortran-mp-${ver} - configure.f77 ${prefix}/bin/gfortran-mp-${ver} - configure.f90 ${prefix}/bin/gfortran-mp-${ver} - } - } - + compilers.choose fc f77 f90 + compilers.setup require_fortran -dragonegg -g95 + + # probably a different --fcompiler is needed for dragonegg or g95 build.args config_fc \ --fcompiler=gfortran \ --noarch