[140411] trunk/dports/emulators/xhyve/Portfile

takeshi at macports.org takeshi at macports.org
Fri Sep 18 19:09:06 PDT 2015


Revision: 140411
          https://trac.macports.org/changeset/140411
Author:   takeshi at macports.org
Date:     2015-09-18 19:09:06 -0700 (Fri, 18 Sep 2015)
Log Message:
-----------
xhyve: raise error on OS X older than Yosemite

Modified Paths:
--------------
    trunk/dports/emulators/xhyve/Portfile

Modified: trunk/dports/emulators/xhyve/Portfile
===================================================================
--- trunk/dports/emulators/xhyve/Portfile	2015-09-19 01:30:10 UTC (rev 140410)
+++ trunk/dports/emulators/xhyve/Portfile	2015-09-19 02:09:06 UTC (rev 140411)
@@ -21,6 +21,13 @@
 checksums           rmd160 f04ef00ddb2be3cc34415015acf8bebf54394e02 \
                     sha256 b7b96388da660b6224623a6445f61c1645123d59637023bb6e2c7fb29522619d
 
+pre-fetch {
+    if {${os.platform} eq "darwin" && (${os.major} < 14)} {
+        ui_error "${name} is built on top of Hypervisor.framework in OS X 10.10 Yosemite and higher"
+            return -code error "incompatible OS X version"
+    }
+}
+
 post-patch {
     reinplace "s|test/|${prefix}/share/${name}/test/|" ${worksrcpath}/${name}run.sh
     reinplace "s|build/${name}|${prefix}/bin/${name}|" ${worksrcpath}/${name}run.sh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150918/e465f0d5/attachment.html>


More information about the macports-changes mailing list