Revision
117286
Author
jeremyhu@macports.org
Date
2014-02-21 01:10:56 -0800 (Fri, 21 Feb 2014)

Log Message

llvm-3.5: Hopefully fix portindex for the legacy cases

Modified Paths

Diff

Modified: trunk/dports/lang/llvm-3.5/Portfile (117285 => 117286)


--- trunk/dports/lang/llvm-3.5/Portfile	2014-02-21 09:06:00 UTC (rev 117285)
+++ trunk/dports/lang/llvm-3.5/Portfile	2014-02-21 09:10:56 UTC (rev 117286)
@@ -125,17 +125,17 @@
 
     if {[info exists configure.cxx_stdlib]} {
         configure.cxx_stdlib libc++
-    } elseif {${os.major} < 13} {
-        ui_error "$name requires a C++11 runtime, which your configuration does not allow"
-        error "unsupported configuration"
     }
 
-    if {! [file exists /usr/lib/libc++.dylib]} {
+    depends_lib-append port:libcxx
+}
+
+pre-fetch {
+    if {(${os.major} < 13 && ! [info exists configure.cxx_stdlib]) ||
+        (! [file exists /usr/lib/libc++.dylib])} {
         ui_error "$name requires a C++11 runtime, which your configuration does not allow"
         error "unsupported configuration"
     }
-
-    depends_lib-append port:libcxx
 }
 
 variant universal {