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/"
|
2018-08-18 18:45:14 +00:00
|
|
|
url "https://virt-manager.org/download/sources/virt-viewer/virt-viewer-7.0.tar.gz"
|
|
|
|
sha256 "47c2cfaa376f5f20968c0addfd65c62b90cab4e6336febf2bc44499d4cdcc903"
|
2019-01-06 20:52:48 +00:00
|
|
|
revision 1
|
2015-04-03 17:31:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2019-01-06 20:52:48 +00:00
|
|
|
depends_on "atk"
|
|
|
|
depends_on "cairo"
|
|
|
|
depends_on "gdk-pixbuf"
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "glib"
|
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"
|
2016-07-05 00:48:53 +00:00
|
|
|
depends_on "libvirt-glib"
|
2019-01-06 20:52:48 +00:00
|
|
|
depends_on "pango"
|
2015-04-03 17:31:08 +00:00
|
|
|
depends_on "shared-mime-info"
|
2018-08-18 18:45:14 +00:00
|
|
|
depends_on "spice-gtk"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "spice-protocol"
|
2015-04-03 17:31:08 +00:00
|
|
|
|
|
|
|
def install
|
2019-01-06 20:52:48 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-silent-rules
|
|
|
|
--disable-update-mimedb
|
|
|
|
--with-gtk-vnc
|
|
|
|
--with-spice-gtk
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
system "./configure", *args
|
2015-04-03 17:31:08 +00:00
|
|
|
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
|
2019-01-06 20:52:48 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/virt-viewer", "--version"
|
|
|
|
end
|
2015-04-03 17:31:08 +00:00
|
|
|
end
|