From b1ae14ec0026acb3a132e7ee380b4388599dd40f Mon Sep 17 00:00:00 2001 From: Jeffrey Wildman Date: Mon, 8 Jun 2015 16:31:49 -0400 Subject: [PATCH] Update location of cpu_map.xml --- virt-manager.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt-manager.rb b/virt-manager.rb index 344031c..3f11be4 100644 --- a/virt-manager.rb +++ b/virt-manager.rb @@ -55,6 +55,10 @@ class VirtManager < Formula patch :DATA # fix shebangs def install + # update location of cpu_map.xml + # https://github.com/jeffreywildman/homebrew-virt-manager/issues/15 + inreplace "virtinst/capabilities.py", "/usr/share/libvirt/cpu_map.xml", "#{HOMEBREW_PREFIX}/share/libvirt/cpu_map.xml" + 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") }