2014-12-23 03:33:45 +00:00
|
|
|
class VirtManager < Formula
|
2015-11-25 18:32:56 +00:00
|
|
|
desc "App for managing virtual machines"
|
2015-04-03 01:26:05 +00:00
|
|
|
homepage "https://virt-manager.org/"
|
2017-09-06 17:12:44 +00:00
|
|
|
url "https://virt-manager.org/download/sources/virt-manager/virt-manager-1.4.2.tar.gz"
|
|
|
|
sha256 "43e440bb099facf59b59c27c2fc4eb2c42ef0d4ed8d67d93c9e3d98538b6d574"
|
2014-12-23 03:33:45 +00:00
|
|
|
|
|
|
|
depends_on "intltool" => :build
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2015-04-03 00:40:06 +00:00
|
|
|
|
2016-05-28 01:29:13 +00:00
|
|
|
depends_on "dbus"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "gnome-icon-theme"
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "gtk+3"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "gtk-vnc"
|
|
|
|
depends_on "hicolor-icon-theme"
|
|
|
|
depends_on "libosinfo"
|
|
|
|
depends_on "libvirt"
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "libvirt-glib"
|
2015-04-03 00:40:06 +00:00
|
|
|
depends_on "libxml2" => "with-python"
|
2015-11-25 18:08:45 +00:00
|
|
|
depends_on "pygobject3"
|
|
|
|
depends_on "spice-gtk"
|
2014-12-23 03:33:45 +00:00
|
|
|
depends_on "vte3"
|
|
|
|
|
|
|
|
resource "libvirt-python" do
|
2017-09-06 17:12:44 +00:00
|
|
|
url "https://libvirt.org/sources/python/libvirt-python-3.7.0.tar.gz"
|
|
|
|
sha256 "1e4a8a8b08ef8f2502088f26ce3aced415d55ef808d8301dfed023f45154c06f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "idna" do
|
|
|
|
url "https://pypi.io/packages/source/i/idna/idna-2.6.tar.gz"
|
|
|
|
sha256 "2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "certifi" do
|
|
|
|
url "https://pypi.io/packages/source/c/certifi/certifi-2017.7.27.1.tar.gz"
|
|
|
|
sha256 "40523d2efb60523e113b44602298f0960e900388cf3bb6043f645cf57ea9e3f5"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "chardet" do
|
|
|
|
url "https://pypi.io/packages/source/c/chardet/chardet-3.0.4.tar.gz"
|
|
|
|
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "urllib3" do
|
|
|
|
url "https://pypi.io/packages/source/u/urllib3/urllib3-1.22.tar.gz"
|
|
|
|
sha256 "cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
2015-11-25 23:24:56 +00:00
|
|
|
resource "requests" do
|
2017-09-06 17:12:44 +00:00
|
|
|
url "https://pypi.io/packages/source/r/requests/requests-2.18.4.tar.gz"
|
|
|
|
sha256 "9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"
|
2014-12-23 03:33:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "ipaddr" do
|
2017-01-22 19:06:47 +00:00
|
|
|
url "https://pypi.io/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
|
|
|
|
|
2017-09-06 17:12:44 +00:00
|
|
|
# macOS does not conform to PEP 394, python2 symlink missing
|
|
|
|
# virt-manager does not launch on macOS unless --no-fork flag is provided
|
|
|
|
patch :DATA
|
2014-12-23 03:33:45 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/vendor/lib/python2.7/site-packages"
|
2017-09-06 17:12:44 +00:00
|
|
|
%w[libvirt-python idna certifi chardet urllib3 requests ipaddr].each do |r|
|
2014-12-23 03:33:45 +00:00
|
|
|
resource(r).stage { system "python", *Language::Python.setup_install_args(libexec/"vendor") }
|
|
|
|
end
|
|
|
|
|
2015-10-26 22:26:38 +00:00
|
|
|
ENV.prepend_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
|
2014-12-23 03:33:45 +00:00
|
|
|
|
|
|
|
system "python", "setup.py",
|
|
|
|
"configure",
|
|
|
|
"--prefix=#{libexec}"
|
|
|
|
system "python", "setup.py",
|
2015-11-25 23:24:56 +00:00
|
|
|
"--no-user-cfg",
|
|
|
|
"--no-update-icon-cache",
|
|
|
|
"--no-compile-schemas",
|
2014-12-23 03:33:45 +00:00
|
|
|
"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
|
2015-09-07 02:19:05 +00:00
|
|
|
system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "#{HOMEBREW_PREFIX}/share/icons/hicolor"
|
2014-12-23 03:33:45 +00:00
|
|
|
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 @@
|
2016-06-19 00:22:31 +00:00
|
|
|
-#!/usr/bin/env python2
|
|
|
|
+#!/usr/bin/env python
|
2014-12-23 03:33:45 +00:00
|
|
|
#
|
|
|
|
# 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 @@
|
2016-06-19 00:22:31 +00:00
|
|
|
-#!/usr/bin/env python2
|
|
|
|
+#!/usr/bin/env python
|
2014-12-23 03:33:45 +00:00
|
|
|
#
|
|
|
|
# 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 @@
|
2016-06-19 00:22:31 +00:00
|
|
|
-#!/usr/bin/env python2
|
|
|
|
+#!/usr/bin/env python
|
2014-12-23 03:33:45 +00:00
|
|
|
#
|
|
|
|
# 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 @@
|
2016-06-19 00:22:31 +00:00
|
|
|
-#!/usr/bin/env python2
|
|
|
|
+#!/usr/bin/env python
|
2014-12-23 03:33:45 +00:00
|
|
|
#
|
|
|
|
# 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 @@
|
2016-06-19 00:22:31 +00:00
|
|
|
-#!/usr/bin/env python2
|
|
|
|
+#!/usr/bin/env python
|
2014-12-23 03:33:45 +00:00
|
|
|
#
|
|
|
|
# Copyright 2013-2014 Red Hat, Inc.
|
|
|
|
# Cole Robinson <crobinso@redhat.com>
|
2017-09-06 17:12:44 +00:00
|
|
|
|
|
|
|
--- a/virt-manager
|
|
|
|
+++ b/virt-manager
|
|
|
|
@@ -156,7 +156,8 @@
|
|
|
|
help="Print debug output to stdout (implies --no-fork)",
|
|
|
|
default=False)
|
|
|
|
parser.add_argument("--no-fork", action="store_true",
|
|
|
|
- help="Don't fork into background on startup")
|
|
|
|
+ help="Don't fork into background on startup",
|
|
|
|
+ default=True)
|
|
|
|
parser.add_argument("--no-conn-autostart", action="store_true",
|
|
|
|
dest="skip_autostart", help="Do not autostart connections")
|
|
|
|
parser.add_argument("--spice-disable-auto-usbredir", action="store_true",
|