homebrew-virt-manager/virt-viewer.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

2015-04-03 17:31:08 +00:00
class VirtViewer < Formula
desc "App for virtualized guest interaction"
2015-04-03 17:31:08 +00:00
homepage "https://virt-manager.org/"
url "https://virt-manager.org/download/sources/virt-viewer/virt-viewer-6.0.tar.gz"
sha256 "9037bd7773da4dae761871ec1ab646cfefb4d7e48b1504dddf315a548ccb18b2"
2015-04-03 17:31:08 +00:00
depends_on "intltool" => :build
depends_on "libtool" => :build
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"
depends_on "libvirt"
2016-07-05 00:48:53 +00:00
depends_on "libvirt-glib"
2015-04-03 17:31:08 +00:00
depends_on "shared-mime-info"
2018-07-19 03:20:10 +00:00
depends_on "spice-gtk@0.34"
depends_on "spice-protocol"
2015-04-03 17:31:08 +00:00
def install
system "./configure", "--disable-silent-rules",
2015-04-03 17:31:08 +00:00
"--disable-update-mimedb",
"--with-gtk-vnc",
"--with-spice-gtk",
2015-04-03 17:31:08 +00:00
"--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
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