[148587] trunk/dports/perl/p5-ifeffit/Portfile

mojca at macports.org mojca at macports.org
Wed May 11 23:37:34 PDT 2016


Revision: 148587
          https://trac.macports.org/changeset/148587
Author:   mojca at macports.org
Date:     2016-05-11 23:37:34 -0700 (Wed, 11 May 2016)
Log Message:
-----------
p5-ifeffit: add compilers PortGroup (newer gcc variants are needed; #48522)

Modified Paths:
--------------
    trunk/dports/perl/p5-ifeffit/Portfile

Modified: trunk/dports/perl/p5-ifeffit/Portfile
===================================================================
--- trunk/dports/perl/p5-ifeffit/Portfile	2016-05-12 04:12:13 UTC (rev 148586)
+++ trunk/dports/perl/p5-ifeffit/Portfile	2016-05-12 06:37:34 UTC (rev 148587)
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 PortGroup           perl5 1.0
+PortGroup           compilers 1.0
 
 perl5.branches      5.22 5.24
 perl5.setup         Ifeffit 2
@@ -31,7 +32,7 @@
 #
 # ifeffit, pgplot and p5-ifeffit need to be using the same compiler libraries.
 # therefore they must be built with the same gcc compiler variants.
-# currently this is gcc49 by default but it you change one change them all and rebuild.
+# currently this is gcc5 by default but it you change one change them all and rebuild.
 #
 # p5-ifeffit is configured using a Makefile.PL that is generated when ifeffit is built.
 # since the paths to the compiler libraries contain compiler version information,
@@ -40,26 +41,14 @@
 #
 # if in doubt rebuild everything
 
-variant gcc45 description {Use gfortran from gcc45} conflicts gcc46 gcc47 gcc48 gcc49 {}
-variant gcc46 description {Use gfortran from gcc46} conflicts gcc45 gcc47 gcc48 gcc49 {}
-variant gcc47 description {Use gfortran from gcc47} conflicts gcc45 gcc46 gcc48 gcc49 {}
-variant gcc48 description {Use gfortran from gcc48} conflicts gcc45 gcc46 gcc47 gcc49 {}
-variant gcc49 description {Use gfortran from gcc49} conflicts gcc45 gcc46 gcc47 gcc48 {}
-
-if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
-    default_variants +gcc49
-}
-
 if {${perl5.major} != ""} {
     depends_lib-append \
                     port:ifeffit
 
-    foreach gcc {gcc45 gcc46 gcc47 gcc48 gcc49} {
-        if {[variant_isset ${gcc}]} {
-            # this is depends_lib so the correct gfortran library is available at both at build and run time
-            depends_lib-append port:${gcc}
-        }
-    }
+    # TODO: add a runtime dependency on compiler as well
+    compilers.choose    f77
+    compilers.setup     require_fortran
+    compilers.enforce_fortran pgplot
 
     pre-configure {
         # copy the preconfigured Makefile.PL generated during the build of ifeffit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160511/c0689102/attachment.html>


More information about the macports-changes mailing list