2015-06-17 10:46:17 +00:00
|
|
|
class Xhyve < Formula
|
2015-07-16 09:53:27 +00:00
|
|
|
desc "xhyve, lightweight OS X virtualization solution based on FreeBSD's bhyve"
|
|
|
|
homepage "https://github.com/mist64/xhyve"
|
2015-07-27 08:25:33 +00:00
|
|
|
url "https://github.com/mist64/xhyve/archive/v0.2.0.tar.gz"
|
|
|
|
sha256 "32c390529a73c8eb33dbc1aede7baab5100c314f726cac14627d2204ad9d3b3c"
|
2015-06-17 10:46:17 +00:00
|
|
|
head "https://github.com/mist64/xhyve.git"
|
|
|
|
|
2015-06-24 20:47:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-27 16:36:52 +00:00
|
|
|
sha256 "4b7fe0a81da6d1a6777a42c41d3465d7777047a1ec9581fcfdef949e13d68010" => :yosemite
|
2015-06-24 20:47:02 +00:00
|
|
|
end
|
|
|
|
|
2015-06-17 10:46:17 +00:00
|
|
|
depends_on :macos => :yosemite
|
|
|
|
|
|
|
|
def install
|
2015-07-27 08:25:33 +00:00
|
|
|
args = []
|
|
|
|
args << "GIT_VERSION=#{version}" if build.stable?
|
|
|
|
system "make", *args
|
2015-06-17 10:46:17 +00:00
|
|
|
bin.install "build/xhyve"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-27 08:25:33 +00:00
|
|
|
system "#{bin}/xhyve", "-v"
|
2015-06-17 10:46:17 +00:00
|
|
|
end
|
|
|
|
end
|