[71346] trunk/dports/math/shogun/Portfile

jameskyle at macports.org jameskyle at macports.org
Thu Sep 9 14:03:23 PDT 2010


Revision: 71346
          http://trac.macports.org/changeset/71346
Author:   jameskyle at macports.org
Date:     2010-09-09 14:03:22 -0700 (Thu, 09 Sep 2010)
Log Message:
-----------
Updated the shogun port for gcc45 variant

Modified Paths:
--------------
    trunk/dports/math/shogun/Portfile

Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile	2010-09-09 19:23:52 UTC (rev 71345)
+++ trunk/dports/math/shogun/Portfile	2010-09-09 21:03:22 UTC (rev 71346)
@@ -142,26 +142,28 @@
 #   configure.args-delete --disable-doxygen
 # }
 
-variant gcc43 conflicts gcc44 description {build with gcc 4.3} {
-    depends_lib-append    port:gcc43
-    configure.cc            ${prefix}/bin/gcc-mp-4.3
-    configure.compiler      macports-gcc-4.3
-    configure.args-append   --cc=${prefix}/bin/gcc-mp-4.3 \
-                            --cxx=${prefix}/bin/g++-mp-4.3
-}
+variant gcc43 conflicts gcc44 description {build with gcc 4.3} {}
+variant gcc44 conflicts gcc43 description {build with gcc 4.4} {}
+variant gcc45 conflicts gcc43 gcc44 description {build with gcc 4.5} {}
 
-variant gcc44 conflicts gcc43 description {build with gcc 4.4} {
-    depends_lib-append    port:gcc44
-    configure.cc            ${prefix}/bin/gcc-mp-4.4
-    configure.compiler      macports-gcc-4.4
-    configure.args-append   --cc=${prefix}/bin/gcc-mp-4.4 \
-                            --cxx=${prefix}/bin/g++-mp-4.4
+if {[variant_isset gcc43]} {
+    set gccversion 4.3
+} elseif {[variant_isset gcc44]} {
+    set gccversion 4.4
+} else {
+    default_variants +gcc45
+    set gccversion 4.5
 }
 
-if {![variant_isset gcc43]} {
-    default_variants +gcc44
-}
+set gccnumber [join [split ${gccversion} .] ""]
 
+depends_lib-append      port:gcc${gccnumber}
+configure.cc            ${prefix}/bin/gcc-mp-${gccversion}
+configure.compiler      macports-gcc-${gccversion}
+configure.args-append   --cc=${prefix}/bin/gcc-mp-${gccversion} \
+                        --cxx=${prefix}/bin/g++-mp-${gccversion}
+
+
 pre-extract {
   # Before doing anything, verify the correct swig bindings are present for
   # our variants
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100909/f3f586cb/attachment.html>


More information about the macports-changes mailing list