forked from Menci/homebrew-libvirt-m1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virt-viewer.rb
38 lines (33 loc) · 1.04 KB
/
virt-viewer.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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-9.0.tar.gz"
sha256 "91b43383a0bd4cf3173269e674d65fd205f7c34bc5a8cb4fb3640deb7f1d4825"
depends_on "gettext" => :build
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "gtk+3"
depends_on "gtk-vnc"
depends_on "libvirt-glib"
depends_on "spice-gtk"
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