2015-04-03 17:31:08 +00:00
|
|
|
class VirtViewer < Formula
|
2015-11-25 18:32:56 +00:00
|
|
|
desc "App for virtualized guest interaction"
|
2015-04-03 17:31:08 +00:00
|
|
|
homepage "https://virt-manager.org/"
|
2015-11-25 16:47:24 +00:00
|
|
|
url "https://fedorahosted.org/released/virt-viewer/virt-viewer-2.0.tar.gz"
|
2015-04-03 17:31:08 +00:00
|
|
|
sha256 "e9c583bcb5acdabac6a8a13eff6ce4e093a3050645771628f832e15ce685d437"
|
|
|
|
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "libtool" => :build
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-04-03 17:31:08 +00:00
|
|
|
|
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "gtk-vnc"
|
|
|
|
depends_on "hicolor-icon-theme"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "libvirt"
|
2015-04-03 17:31:08 +00:00
|
|
|
depends_on "shared-mime-info"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "spice-gtk"
|
|
|
|
depends_on "spice-protocol"
|
|
|
|
depends_on :x11
|
|
|
|
# TODO: audio
|
2015-04-03 17:31:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--disable-update-mimedb",
|
|
|
|
"--with-gtk=3.0",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def post_install
|
|
|
|
# manual update of mime database
|
|
|
|
system "#{Formula["shared-mime-info"].opt_bin}/update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
|
|
|
|
# manual icon cache update step
|
2015-09-07 02:19:05 +00:00
|
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
2015-04-03 17:31:08 +00:00
|
|
|
end
|
|
|
|
end
|