Revision
144295
Author
dstrubbe@macports.org
Date
2016-01-05 18:36:01 -0800 (Tue, 05 Jan 2016)

Log Message

wcslib: Use compilers portgroup for Fortran variants. C compiler is now default.

Modified Paths

Diff

Modified: trunk/dports/science/wcslib/Portfile (144294 => 144295)


--- trunk/dports/science/wcslib/Portfile	2016-01-06 01:48:16 UTC (rev 144294)
+++ trunk/dports/science/wcslib/Portfile	2016-01-06 02:36:01 UTC (rev 144295)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           compilers 1.0
 
 name                wcslib
 version             4.25.1
@@ -12,7 +13,8 @@
 description         Library for handling World Coordinate System in FITS files
 long_description    A C library, with a set of Fortran wrappers, that \
                     implements the World Coordinate System (WCS) standard \
-                    in FITS (Flexible Image Transport System).
+                    in FITS (Flexible Image Transport System). \
+                    Select a Fortran compiler variant to enable the Fortran wrappers.
 homepage            http://www.atnf.csiro.au/people/mcalabre/WCS/index.html
 master_sites        ftp://ftp.atnf.csiro.au/pub/software/wcslib/ \
                     ftp://ftp.eso.org/pub/dfs/pipelines/libraries/wcslib/
@@ -33,38 +35,10 @@
 livecheck.url       http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES
 livecheck.regex     "WCSLIB version (\\d+\\.\\d+\(\\.\\d+\)?)"
 
-variant gcc44 conflicts gcc45 gcc46 gcc47 gcc48 gcc49 description {Build with GCC 4.4; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.4
-    depends_lib-append      port:pgplot
-    configure.args-delete   --disable-fortran
-}
+compilers.choose    fc f77 f90
+compilers.setup
 
-variant gcc45 conflicts gcc44 gcc46 gcc47 gcc48 gcc49 description {Build with GCC 4.5; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.5
+if {[fortran_variant_isset]} {
     depends_lib-append      port:pgplot
     configure.args-delete   --disable-fortran
 }
-
-variant gcc46 conflicts gcc44 gcc45 gcc47 gcc48 gcc49 description {Build with GCC 4.6; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.6
-    depends_lib-append      port:pgplot
-    configure.args-delete   --disable-fortran
-}
-
-variant gcc47 conflicts gcc44 gcc45 gcc46 gcc48 gcc49 description {Build with GCC 4.7; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.7
-    depends_lib-append      port:pgplot
-    configure.args-delete   --disable-fortran
-}
-
-variant gcc48 conflicts gcc44 gcc45 gcc46 gcc47 gcc49 description {Build with GCC 4.8; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.8
-    depends_lib-append      port:pgplot
-    configure.args-delete   --disable-fortran
-}
-
-variant gcc49 conflicts gcc44 gcc45 gcc46 gcc47 gcc48 description {Build with GCC 4.9; enables Fortran support}  {
-    configure.compiler      macports-gcc-4.9
-    depends_lib-append      port:pgplot
-    configure.args-delete   --disable-fortran
-}