[132165] trunk/dports/devel/ld64/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 25 00:23:28 PST 2015


Revision: 132165
          https://trac.macports.org/changeset/132165
Author:   jeremyhu at macports.org
Date:     2015-01-25 00:23:28 -0800 (Sun, 25 Jan 2015)
Log Message:
-----------
ld64: Provide error messages for incompatible subports

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

Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile	2015-01-25 05:43:16 UTC (rev 132164)
+++ trunk/dports/devel/ld64/Portfile	2015-01-25 08:23:28 UTC (rev 132165)
@@ -38,6 +38,13 @@
         ld64-97-no-Availability.h.patch \
         ld64-97-BaseAtomImplicitDecl.patch \
         ld64-97-no-ppc-thread_status.patch
+
+    if {${os.major} >= 14} {
+        pre-fetch {
+            ui_error "$subport is not supported on Yosemite or later."
+            error "unsupported platform"
+        }
+    }
 }
 
 subport ld64-127 {
@@ -77,6 +84,13 @@
         ld64-134-missing-include.patch \
         ld64-136-i386-badAddress.patch \
         ld64-136-hash_set.patch
+
+    if {${os.major} <= 9} {
+        pre-fetch {
+            ui_error "$subport is not supported on Leopard or earlier.  It requires the blocks runtime."
+            error "unsupported platform"
+        }
+    }
 }
 
 subport ld64-latest {
@@ -104,6 +118,13 @@
     if {${configure.cxx_stdlib} eq "libstdc++"} {
         patchfiles-append   ld64-236-hash_set.patch
     }
+
+    if {${os.major} <= 9} {
+        pre-fetch {
+            ui_error "$subport is not supported on Leopard or earlier.  It requires the blocks runtime."
+            error "unsupported platform"
+        }
+    }
 }
 
 variant universal {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150125/afdbb192/attachment.html>


More information about the macports-changes mailing list