[125858] trunk/dports/devel/fortrancl/Portfile
takeshi at macports.org
takeshi at macports.org
Sat Sep 27 23:48:47 PDT 2014
Revision: 125858
https://trac.macports.org/changeset/125858
Author: takeshi at macports.org
Date: 2014-09-27 23:48:47 -0700 (Sat, 27 Sep 2014)
Log Message:
-----------
fortrancl: use PortGroup compilers
Modified Paths:
--------------
trunk/dports/devel/fortrancl/Portfile
Modified: trunk/dports/devel/fortrancl/Portfile
===================================================================
--- trunk/dports/devel/fortrancl/Portfile 2014-09-28 06:45:05 UTC (rev 125857)
+++ trunk/dports/devel/fortrancl/Portfile 2014-09-28 06:48:47 UTC (rev 125858)
@@ -3,7 +3,11 @@
PortSystem 1.0
PortGroup muniversal 1.0
+PortGroup compilers 1.0
+compilers.choose fc f77 f90
+compilers.setup require_fortran -dragonegg
+
name fortrancl
version 0.1alpha4
revision 1
@@ -41,69 +45,9 @@
${destroot}${prefix}/share/${name}/examples/
}
-set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-set default_fortran_variant +gcc48
-set g95_conflicts {}
-
-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}" conflicts g95}
-
- 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
-
- append g95_conflicts " conflicts gcc${ver_no_dot}"
-
- if {[variant_isset gcc${ver_no_dot}]} {
- if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
- set default_fortran_variant ""
- }
- }
+if {![fortran_variant_isset]} {
+ default_variants +gcc48
}
-eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
-
-if {[variant_isset g95]} {
- if {${default_fortran_variant} != "+g95"} {
- 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}
- }
-}
-
-if {[variant_isset g95]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:g95
-
- configure.fc ${prefix}/bin/g95
- configure.f77 ${prefix}/bin/g95
- configure.f90 ${prefix}/bin/g95
-}
-
# They differ when universal due to gcc multilib being messy non-universal
destroot.delete_la_files yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140927/d4b15355/attachment.html>
More information about the macports-changes
mailing list