[106157] trunk/dports/science/ast/Portfile

aronnax at macports.org aronnax at macports.org
Thu May 16 21:37:02 PDT 2013


Revision: 106157
          https://trac.macports.org/changeset/106157
Author:   aronnax at macports.org
Date:     2013-05-16 21:37:02 -0700 (Thu, 16 May 2013)
Log Message:
-----------
ast: add variants for different versions of gcc

Modified Paths:
--------------
    trunk/dports/science/ast/Portfile

Modified: trunk/dports/science/ast/Portfile
===================================================================
--- trunk/dports/science/ast/Portfile	2013-05-17 04:07:11 UTC (rev 106156)
+++ trunk/dports/science/ast/Portfile	2013-05-17 04:37:02 UTC (rev 106157)
@@ -5,6 +5,7 @@
 
 name                    ast
 version                 7.2.0
+revision                1
 categories              science
 platforms               darwin
 maintainers             aronnax
@@ -21,10 +22,42 @@
 checksums               sha1    0740bdb9605d73abb90d5c10438e9cefda7b1f4f \
                         rmd160  bf59a7250551891e329c18c91c5198002c0c77d3
 
-depends_build           port:gcc47
+variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 gcc48 description {Compile with gcc 4.3} {
+    configure.compiler macports-gcc-4.3
+    depends_lib-append port:gcc43
+}
 
-configure.compiler      macports-gcc-4.7
+variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 gcc48 description {Compile with gcc 4.4} {
+    configure.compiler macports-gcc-4.4
+    depends_lib-append port:gcc44
+}
 
+variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 gcc48 description {Compile with gcc 4.5} {
+    configure.compiler macports-gcc-4.5
+    depends_lib-append port:gcc45
+}
+
+variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 gcc48 description {Compile with gcc 4.6} {
+    configure.compiler macports-gcc-4.6
+    depends_lib-append port:gcc46
+}
+
+variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 gcc48 description {Compile with gcc 4.7} {
+    configure.compiler macports-gcc-4.7
+    depends_lib-append port:gcc47
+}
+
+variant gcc48 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 description {Compile with gcc 4.8} {
+    configure.compiler macports-gcc-4.8
+    depends_lib-append port:gcc48
+}
+
+if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] &&
+    ![variant_isset gcc46] && ![variant_isset gcc48]
+} then {
+    default_variants +gcc47
+}
+
 destroot.args-append    stardocsdir=${prefix}/share/docs \
                         starexamplesdir=${prefix}/share/examples \
                         starfacsdir=${prefix}/share/help \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130516/f0e597b8/attachment.html>


More information about the macports-changes mailing list