virt-viewer: update deps, add test
This commit is contained in:
parent
c8072bd3a4
commit
7164f43b04
|
@ -3,26 +3,36 @@ class VirtViewer < Formula
|
||||||
homepage "https://virt-manager.org/"
|
homepage "https://virt-manager.org/"
|
||||||
url "https://virt-manager.org/download/sources/virt-viewer/virt-viewer-7.0.tar.gz"
|
url "https://virt-manager.org/download/sources/virt-viewer/virt-viewer-7.0.tar.gz"
|
||||||
sha256 "47c2cfaa376f5f20968c0addfd65c62b90cab4e6336febf2bc44499d4cdcc903"
|
sha256 "47c2cfaa376f5f20968c0addfd65c62b90cab4e6336febf2bc44499d4cdcc903"
|
||||||
|
revision 1
|
||||||
|
|
||||||
depends_on "intltool" => :build
|
depends_on "intltool" => :build
|
||||||
depends_on "libtool" => :build
|
depends_on "libtool" => :build
|
||||||
depends_on "pkg-config" => :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+3"
|
||||||
depends_on "gtk-vnc"
|
depends_on "gtk-vnc"
|
||||||
depends_on "hicolor-icon-theme"
|
depends_on "hicolor-icon-theme"
|
||||||
depends_on "libvirt"
|
depends_on "libvirt"
|
||||||
depends_on "libvirt-glib"
|
depends_on "libvirt-glib"
|
||||||
|
depends_on "pango"
|
||||||
depends_on "shared-mime-info"
|
depends_on "shared-mime-info"
|
||||||
depends_on "spice-gtk"
|
depends_on "spice-gtk"
|
||||||
depends_on "spice-protocol"
|
depends_on "spice-protocol"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--disable-silent-rules",
|
args = %W[
|
||||||
"--disable-update-mimedb",
|
--disable-silent-rules
|
||||||
"--with-gtk-vnc",
|
--disable-update-mimedb
|
||||||
"--with-spice-gtk",
|
--with-gtk-vnc
|
||||||
"--prefix=#{prefix}"
|
--with-spice-gtk
|
||||||
|
--prefix=#{prefix}
|
||||||
|
]
|
||||||
|
system "./configure", *args
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -32,4 +42,8 @@ class VirtViewer < Formula
|
||||||
# manual icon cache update step
|
# manual icon cache update step
|
||||||
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
system "#{bin}/virt-viewer", "--version"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue