gconf: refresh cache postinstall

This commit is contained in:
Dominyk Tiller 2015-08-27 23:23:40 +01:00
parent c68ac96262
commit 994afa8a9b

View file

@ -1,6 +1,6 @@
class Gconf < Formula
desc "GConf is a system for storing user application preferences"
homepage "http://projects.gnome.org/gconf/"
homepage "https://projects.gnome.org/gconf/"
url "https://download.gnome.org/sources/GConf/3.2/GConf-3.2.6.tar.xz"
sha256 "1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c"
@ -14,7 +14,15 @@ class Gconf < Formula
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
"--disable-silent-rules", "--prefix=#{prefix}",
"--sysconfdir=#{etc}"
system "make", "install"
# Refresh the cache post-install, not during install.
rm lib/"gio/modules/giomodule.cache"
end
def post_install
system Formula["glib"].opt_bin/"gio-querymodules", HOMEBREW_PREFIX/"lib/gio/modules"
end
end