diff options
| author | Adam Vandenberg | 2012-08-31 14:01:10 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-31 14:01:10 -0700 |
| commit | cb0c576a16f0161c7bfa0fa5f788bcdb2febe65d (patch) | |
| tree | 32846ca502e1f061aeeff104cf0e92cc28b6b368 /Library/Formula | |
| parent | c114e9bb88b5a262975d2c24718b5d38606a208f (diff) | |
| download | homebrew-cb0c576a16f0161c7bfa0fa5f788bcdb2febe65d.tar.bz2 | |
libvirt: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libvirt.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/libvirt.rb b/Library/Formula/libvirt.rb index 1295a409e..fec1a445d 100644 --- a/Library/Formula/libvirt.rb +++ b/Library/Formula/libvirt.rb @@ -11,6 +11,8 @@ class Libvirt < Formula sha256 '7b179219b92bff35986e2103b2767423d1e9c284052aa81228eae765f01a074d' end + option 'without-libvirtd', 'Build only the virsh client and development libraries' + depends_on "gnutls" depends_on "yajl" @@ -25,10 +27,6 @@ class Libvirt < Formula cause "Undefined symbols when linking" end - def options - [['--without-libvirtd', 'Build only the virsh client and development libraries.']] - end - def install args = ["--prefix=#{prefix}", "--localstatedir=#{var}", @@ -43,7 +41,7 @@ class Libvirt < Formula "--with-yajl", "--without-qemu"] - args << "--without-libvirtd" if ARGV.include? '--without-libvirtd' + args << "--without-libvirtd" if build.include? 'without-libvirtd' system "./configure", *args @@ -58,7 +56,7 @@ class Libvirt < Formula # If the libvirt daemon is built, update its config file to reflect # the Homebrew prefix - unless ARGV.include? '--without-libvirtd' + unless build.include? 'without-libvirtd' inreplace "#{etc}/libvirt/libvirtd.conf" do |s| s.gsub! "/etc/", "#{HOMEBREW_PREFIX}/etc/" s.gsub! "/var/", "#{HOMEBREW_PREFIX}/var/" |
