Skip to content

Commit

Permalink
qemu: add 2.1.0 bottle.
Browse files Browse the repository at this point in the history
Closes Homebrew#31383.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
adamv committed Aug 6, 2014
1 parent ce761f1 commit 6a77937
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions Library/Formula/qemu.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
require 'formula'
require "formula"

class Qemu < Formula
homepage 'http://www.qemu.org/'
url 'http://wiki.qemu-project.org/download/qemu-2.1.0.tar.bz2'
sha1 'b2829491e4c2f3d32f7bc2860c3a19fb31f5e989'
revision 1
homepage "http://www.qemu.org/"
head "git://git.qemu-project.org/qemu.git"
url "http://wiki.qemu-project.org/download/qemu-2.1.0.tar.bz2"
sha1 "b2829491e4c2f3d32f7bc2860c3a19fb31f5e989"

head 'git://git.qemu-project.org/qemu.git'
bottle do
sha1 "52345b6ec0fb3a9a4da93b3adc861e247a9d8702" => :mavericks
sha1 "2027be04ff3885fe38570e05726949b9b6029abc" => :mountain_lion
sha1 "d6603f9b5aa3e72c02f9495d287cc4cbd5a5bf22" => :lion
end

depends_on 'pkg-config' => :build
depends_on 'libtool' => :build
depends_on 'jpeg'
depends_on 'gnutls'
depends_on 'glib'
depends_on 'pixman'
depends_on 'vde' => :optional
depends_on 'sdl' => :optional
depends_on "pkg-config" => :build
depends_on "libtool" => :build
depends_on "jpeg"
depends_on "gnutls"
depends_on "glib"
depends_on "pixman"
depends_on "vde" => :optional
depends_on "sdl" => :optional

def install
args = %W[
Expand All @@ -26,10 +30,10 @@ def install
--disable-bsd-user
--disable-guest-agent
]
args << (build.with?('sdl') ? '--enable-sdl' : '--disable-sdl')
args << (build.with?('vde') ? '--enable-vde' : '--disable-vde')
args << '--disable-gtk'
ENV['LIBTOOL'] = 'glibtool'
args << (build.with?("sdl") ? "--enable-sdl" : "--disable-sdl")
args << (build.with?("vde") ? "--enable-vde" : "--disable-vde")
args << "--disable-gtk"
ENV["LIBTOOL"] = "glibtool"
system "./configure", *args
system "make", "V=1", "install"
end
Expand Down

0 comments on commit 6a77937

Please sign in to comment.