forked from lunixbochs/homebrew-virt-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvirt-viewer.rb
37 lines (33 loc) · 1.23 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
class VirtViewer < Formula
desc "App for virtualized guest interaction"
homepage "https://virt-manager.org/"
url "https://releases.pagure.org/virt-viewer/virt-viewer-11.0.tar.xz"
sha256 "a43fa2325c4c1c77a5c8c98065ac30ef0511a21ac98e590f22340869bad9abd0"
depends_on "intltool" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "gtk+3"
depends_on "pygobject3"
depends_on "gtk-vnc"
depends_on "hicolor-icon-theme"
depends_on "libvirt"
depends_on "libvirt-glib"
depends_on "shared-mime-info"
depends_on "spice-gtk"
depends_on "spice-protocol"
def install
system "./configure", "--disable-silent-rules",
"--disable-update-mimedb",
"--with-gtk-vnc",
"--with-spice-gtk",
"--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"
end
end