librsvg: update pixbuf cache in post-install
Closes Homebrew/homebrew#32888. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
6c445043bc
commit
910526b9d5
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue