49 lines
1.3 KiB
Ruby
49 lines
1.3 KiB
Ruby
class VirtViewer < Formula
|
|
desc "App for virtualized guest interaction"
|
|
homepage "https://virt-manager.org/"
|
|
url "https://virt-manager.org/download/sources/virt-viewer/virt-viewer-8.0.tar.gz"
|
|
sha256 "dcf358ed5d7a4900215133135a6492c04311d84332816d930df9a89d6195b6ed"
|
|
|
|
depends_on "intltool" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "atk"
|
|
depends_on "cairo"
|
|
depends_on "gdk-pixbuf"
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "gtk+3"
|
|
depends_on "gtk-vnc"
|
|
depends_on "hicolor-icon-theme"
|
|
depends_on "libvirt"
|
|
depends_on "libvirt-glib"
|
|
depends_on "pango"
|
|
depends_on "shared-mime-info"
|
|
depends_on "spice-gtk"
|
|
depends_on "spice-protocol"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-silent-rules
|
|
--disable-update-mimedb
|
|
--with-gtk-vnc
|
|
--with-spice-gtk
|
|
--prefix=#{prefix}
|
|
]
|
|
system "./configure", *args
|
|
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
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/virt-viewer", "--version"
|
|
end
|
|
end
|