librsvg: update pixbuf cache in post-install

Closes Homebrew/homebrew#32888.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jason Masker 2014-10-02 18:47:42 -04:00 committed by Jack Nagel
parent 6c445043bc
commit 910526b9d5

View file

@ -31,4 +31,11 @@ class Librsvg < Formula
system "./configure", *args
system "make install"
end
def post_install
# librsvg is not aware GDK_PIXBUF_MODULEDIR must be set
# set GDK_PIXBUF_MODULEDIR and update loader cache
ENV["GDK_PIXBUF_MODULEDIR"] = "#{HOMEBREW_PREFIX}/lib/gdk-pixbuf-2.0/2.10.0/loaders"
system "#{Formula["gdk-pixbuf"].opt_bin}/gdk-pixbuf-query-loaders", "--update-cache"
end
end