[102126] trunk/dports/devel/smake/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jan 28 00:33:24 PST 2013


Revision: 102126
          https://trac.macports.org/changeset/102126
Author:   jeremyhu at macports.org
Date:     2013-01-28 00:33:23 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
smake: Update to using compiler.blacklist

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

Modified: trunk/dports/devel/smake/Portfile
===================================================================
--- trunk/dports/devel/smake/Portfile	2013-01-28 08:31:13 UTC (rev 102125)
+++ trunk/dports/devel/smake/Portfile	2013-01-28 08:33:23 UTC (rev 102126)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup  compiler_blacklist_versions 1.0
 
 name			smake
 version			1.2.2
@@ -24,11 +25,12 @@
 use_configure	no
 
 # https://trac.macports.org/ticket/31616
-if {${configure.compiler} == "llvm-gcc-4.2"} {
-    configure.compiler  gcc-4.2
-} elseif {${configure.compiler} == "clang" && [vercmp $xcodeversion 4.3] < 0} {
-    depends_build-append port:apple-gcc42
-    configure.compiler  apple-gcc-4.2
+compiler.blacklist-append llvm-gcc-4.2 {clang < 318}
+
+# TODO: base should do this: http://trac.macports.org/ticket/32542
+if {[portconfigure::compiler_is_port ${configure.compiler}]} {
+    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler})
+    depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
 }
 
 build.type		gnu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/ac345c92/attachment.html>


More information about the macports-changes mailing list