[101906] trunk/dports/devel/ppl/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jan 21 10:46:44 PST 2013


Revision: 101906
          https://trac.macports.org/changeset/101906
Author:   jeremyhu at macports.org
Date:     2013-01-21 10:46:44 -0800 (Mon, 21 Jan 2013)
Log Message:
-----------
ppl: Use compiler.blacklist

Modified Paths:
--------------
    trunk/dports/devel/ppl/Portfile

Modified: trunk/dports/devel/ppl/Portfile
===================================================================
--- trunk/dports/devel/ppl/Portfile	2013-01-21 16:37:45 UTC (rev 101905)
+++ trunk/dports/devel/ppl/Portfile	2013-01-21 18:46:44 UTC (rev 101906)
@@ -38,13 +38,11 @@
 depends_build       port:m4
 depends_lib         port:gmp port:glpk
 
-if { ${configure.compiler} == "gcc-4.0" } {
-    configure.compiler gcc-4.2
-    if {![file executable ${configure.cc}]} {
-        depends_build-append port:apple-gcc42
-        depends_skip_archcheck-append apple-gcc42
-        configure.compiler apple-gcc-4.2
-    }
+compiler.blacklist gcc-4.0
+
+if {[portconfigure::compiler_is_port ${configure.compiler}]} {
+    depends_build-append port:[compiler_name_map ${configure.compiler}]
+    depends_skip_archcheck-append [compiler_name_map ${configure.compiler}]
 }
 
 if { [string match "*clang*" ${configure.compiler}] || [string match "*llvm*" ${configure.compiler}] } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130121/e7b8f79e/attachment.html>


More information about the macports-changes mailing list