Revision: 144367 https://trac.macports.org/changeset/144367 Author: aronnax@macports.org Date: 2016-01-06 20:37:30 -0800 (Wed, 06 Jan 2016) Log Message: ----------- ast: modernize compiler support, update homepage Modified Paths: -------------- trunk/dports/science/ast/Portfile Modified: trunk/dports/science/ast/Portfile =================================================================== --- trunk/dports/science/ast/Portfile 2016-01-07 04:35:08 UTC (rev 144366) +++ trunk/dports/science/ast/Portfile 2016-01-07 04:37:30 UTC (rev 144367) @@ -2,9 +2,11 @@ # $Id$ PortSystem 1.0 +PortGroup compilers 1.0 name ast version 8.0.2 +revision 1 categories science platforms darwin maintainers aronnax @@ -16,59 +18,18 @@ for retrieving and interpreting that information and for generating \ graphical output based on it. -homepage http://starlink.jach.hawaii.edu/starlink/AST +homepage http://starlink.eao.hawaii.edu/starlink/AST master_sites http://www.starlink.ac.uk/download/ast/ checksums sha1 4dd7d9696bd1354c0ddb8e21600921364e317ae5 \ rmd160 018db35038328b2959317f8ed48d33bcf8526080 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 +compilers.choose fc f77 f90 +compilers.setup require_fortran depends_lib-append port:erfa -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} - } -} - destroot.args-append stardocsdir=${prefix}/share/docs \ starexamplesdir=${prefix}/share/examples \ starfacsdir=${prefix}/share/help \