From 2be28dfff02f2d0ee97e91a9b058767082b9433e Mon Sep 17 00:00:00 2001 From: Jeffrey Wildman Date: Mon, 5 Jan 2015 09:37:10 -0500 Subject: [PATCH] Install symlinks for glib schema and icons --- README.md | 1 - virt-manager.rb | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e2fad41..7cdd0a6 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,3 @@ Note: SSH passwords for connecting to remote URIs are not prompted unless --debu * Get vnc console working: need formulas for dependencies gtk-vnc and spice-gtk3. * Extend formula to support brewing virt-manager with system python. * When available, update url for libvirt-python to pypi.python.org. -* Symlink installed files, e.g. schema files. diff --git a/virt-manager.rb b/virt-manager.rb index b61aec5..b5574cb 100644 --- a/virt-manager.rb +++ b/virt-manager.rb @@ -67,8 +67,12 @@ class VirtManager < Formula bin.install Dir[libexec/"bin/*"] bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) - - # TODO: symlink the schema files in /usr/local/share/glib-2.0/schemas + + # install and link schemas + share.install Dir[libexec/"share/glib-2.0"] + + # install and link icons + share.install Dir[libexec/"share/icons"] end def post_install