[140411] trunk/dports/emulators/xhyve/Portfile
Revision: 140411 https://trac.macports.org/changeset/140411 Author: takeshi@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
participants (1)
-
takeshi@macports.org