2014-12-23 03:33:45 +00:00
|
|
|
class VirtManager < Formula
|
2015-04-03 01:26:05 +00:00
|
|
|
homepage "https://virt-manager.org/"
|
2015-05-23 23:39:30 +00:00
|
|
|
url "https://virt-manager.org/download/sources/virt-manager/virt-manager-1.2.0.tar.gz"
|
|
|
|
sha256 "f8ca4a562a5e4a7795f3fecb5cc07bb32a298c955c9de436a1921f83c5e8a514"
|
2014-12-23 03:33:45 +00:00
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
2015-04-03 00:40:06 +00:00
|
|
|
|
2014-12-23 03:33:45 +00:00
|
|
|
# TODO: don't rely on homebrewed python
|
|
|
|
depends_on :python
|
|
|
|
depends_on "pygobject3"
|
|
|
|
depends_on "gtk+3"
|
|
|
|
depends_on "libvirt-glib"
|
2015-04-03 00:40:06 +00:00
|
|
|
depends_on "libxml2" => "with-python"
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "vte3"
|
|
|
|
depends_on "d-bus"
|
2015-04-03 00:40:06 +00:00
|
|
|
depends_on :x11
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "libosinfo"
|
2015-01-16 06:40:03 +00:00
|
|
|
|
|
|
|
# TODO: audio
|
2015-01-16 04:14:21 +00:00
|
|
|
depends_on "gtk-vnc"
|
2015-01-16 06:40:03 +00:00
|
|
|
depends_on "spice-gtk"
|
2015-04-03 00:40:06 +00:00
|
|
|
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "libvirt"
|
|
|
|
depends_on "hicolor-icon-theme"
|
|
|
|
depends_on "gnome-icon-theme"
|
|
|
|
|
|
|
|
resource "libvirt-python" do
|
2015-06-08 14:52:53 +00:00
|
|
|
url "https://libvirt.org/sources/python/libvirt-python-1.2.16.tar.gz"
|
|
|
|
sha256 "44eddd353d66f24380d90503bf16f3155c08f3d84d9cc4375d3529f312a7d8fe"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# dependency of urlgrabber
|
|
|
|
resource "pycurl" do
|
2015-05-23 23:39:30 +00:00
|
|
|
url "https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.5.1.tar.gz"
|
|
|
|
sha256 "6e9770f80459757f73bd71af82fbb29cd398b38388cdf1beab31ea91a331bc6c"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "urlgrabber" do
|
|
|
|
url "https://pypi.python.org/packages/source/u/urlgrabber/urlgrabber-3.9.1.tar.gz"
|
2015-04-03 17:23:58 +00:00
|
|
|
sha256 "b4e276fa968c66671309a6d754c4b3b0cb2003dec8bca87a681378a22e0d3da7"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "ipaddr" do
|
|
|
|
url "https://pypi.python.org/packages/source/i/ipaddr/ipaddr-2.1.11.tar.gz"
|
2015-04-03 17:23:58 +00:00
|
|
|
sha256 "1b555b8a8800134fdafe32b7d0cb52f5bdbfdd093707c3dd484c5ea59f1d98b7"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
2015-05-23 23:39:30 +00:00
|
|
|
patch do # fix exception when the remote host is not an IP
|
|
|
|
url "https://git.fedorahosted.org/cgit/virt-manager.git/patch/?id=ebcb7c064ca5a3afd2ec3a0c8f59328a7f71b009"
|
|
|
|
sha256 "d82118644a1fc0aa59f912a571c2c5221781c88b4dff5150d053a2584195ffb2"
|
|
|
|
end
|
|
|
|
|
2015-04-03 01:01:51 +00:00
|
|
|
patch :DATA # fix shebangs
|
2014-12-23 03:33:45 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/vendor/lib/python2.7/site-packages"
|
|
|
|
%w[libvirt-python pycurl urlgrabber ipaddr].each do |r|
|
|
|
|
resource(r).stage { system "python", *Language::Python.setup_install_args(libexec/"vendor") }
|
|
|
|
end
|
|
|
|
|
|
|
|
ENV.prepend_path "PYTHONPATH", "#{HOMEBREW_PREFIX}/opt/libxml2/lib/python2.7/site-packages"
|
|
|
|
|
|
|
|
system "python", "setup.py",
|
|
|
|
"configure",
|
|
|
|
"--prefix=#{libexec}"
|
|
|
|
system "python", "setup.py",
|
|
|
|
"install",
|
|
|
|
"--prefix=#{libexec}"
|
|
|
|
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2015-01-05 14:37:10 +00:00
|
|
|
|
|
|
|
# install and link schemas
|
|
|
|
share.install Dir[libexec/"share/glib-2.0"]
|
|
|
|
|
|
|
|
# install and link icons
|
|
|
|
share.install Dir[libexec/"share/icons"]
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def post_install
|
|
|
|
# manual schema compile step
|
|
|
|
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
|
|
|
|
# manual icon cache update step
|
|
|
|
system "#{Formula["gtk+"].opt_bin}/gtk-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
__END__
|
|
|
|
diff --git a/virt-clone b/virt-clone
|
|
|
|
index 4bd5ca3..6b4b9e5 100755
|
|
|
|
--- a/virt-clone
|
|
|
|
+++ b/virt-clone
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/python2 -tt
|
|
|
|
+#!/usr/bin/env python2 -tt
|
|
|
|
#
|
|
|
|
# Copyright(c) FUJITSU Limited 2007.
|
|
|
|
#
|
|
|
|
diff --git a/virt-convert b/virt-convert
|
|
|
|
index a7f9a97..2f1ca7a 100755
|
|
|
|
--- a/virt-convert
|
|
|
|
+++ b/virt-convert
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/python2 -tt
|
|
|
|
+#!/usr/bin/env python2 -tt
|
|
|
|
#
|
|
|
|
# Copyright 2008, 2013, 2014 Red Hat, Inc.
|
|
|
|
# Joey Boggs <jboggs@redhat.com>
|
|
|
|
diff --git a/virt-install b/virt-install
|
|
|
|
index 45607fb..4f9cf9e 100755
|
|
|
|
--- a/virt-install
|
|
|
|
+++ b/virt-install
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/python2 -tt
|
|
|
|
+#!/usr/bin/env python2 -tt
|
|
|
|
#
|
|
|
|
# Copyright 2005-2014 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
diff --git a/virt-manager b/virt-manager
|
|
|
|
index d352b90..5fccceb 100755
|
|
|
|
--- a/virt-manager
|
|
|
|
+++ b/virt-manager
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/python2 -tt
|
|
|
|
+#!/usr/bin/env python2 -tt
|
|
|
|
#
|
|
|
|
# Copyright (C) 2006, 2014 Red Hat, Inc.
|
|
|
|
# Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
|
|
|
|
diff --git a/virt-xml b/virt-xml
|
|
|
|
index 4e0848c..eb40bfa 100755
|
|
|
|
--- a/virt-xml
|
|
|
|
+++ b/virt-xml
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/python2 -tt
|
|
|
|
+#!/usr/bin/env python2 -tt
|
|
|
|
#
|
|
|
|
# Copyright 2013-2014 Red Hat, Inc.
|
|
|
|
# Cole Robinson <crobinso@redhat.com>
|