diff --git a/spice-gtk.rb b/spice-gtk.rb index 75a48a4..f2aa294 100644 --- a/spice-gtk.rb +++ b/spice-gtk.rb @@ -4,6 +4,9 @@ class SpiceGtk < Formula url "https://www.spice-space.org/download/gtk/spice-gtk-0.34.tar.bz2" sha256 "e9720e01165f8451c9f3f58ad50e3afb990993b81cc2db86b3661b7ac5b976ee" + depends_on "autoconf" => :build + depends_on "autogen" => :build + depends_on "automake" => :build depends_on "gobject-introspection" => :build depends_on "intltool" => :build depends_on "libtool" => :build @@ -31,17 +34,12 @@ class SpiceGtk < Formula depends_on "gst-plugins-bad" depends_on "gst-plugins-ugly" - # need autogen to regen after patching the build - depends_on "autogen" - depends_on "automake" - depends_on "autoconf" - # compile vncdisplaykeymap.c as objc to fix include issue patch :DATA def install - ENV['CFLAGS'] = "-Wno-cast-align -Wno-error" - ENV['XML_CATALOG_FILES'] = "/usr/local/etc/xml/catalog" + ENV["CFLAGS"] = "-Wno-cast-align -Wno-error" + ENV["XML_CATALOG_FILES"] = "/usr/local/etc/xml/catalog" mv "src/vncdisplaykeymap.c", "src/vncdisplaykeymap.m" diff --git a/virt-manager.rb b/virt-manager.rb index 1d219a0..ab38be0 100644 --- a/virt-manager.rb +++ b/virt-manager.rb @@ -95,7 +95,7 @@ class VirtManager < Formula end test do - system "virt-manager" "--version" + system "#{bin}/virt-manager", "--version" end end __END__