aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gdk-pixbuf.rb9
-rw-r--r--Library/Homebrew/keg.rb1
2 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/gdk-pixbuf.rb b/Library/Formula/gdk-pixbuf.rb
index 236ff8e72..d1012931c 100644
--- a/Library/Formula/gdk-pixbuf.rb
+++ b/Library/Formula/gdk-pixbuf.rb
@@ -11,6 +11,7 @@ class GdkPixbuf < Formula
depends_on 'jasper'
depends_on 'libtiff'
+ # 'loaders.cache' must be writable by other packages
skip_clean 'lib/gdk-pixbuf-2.0'
def options
@@ -29,5 +30,13 @@ class GdkPixbuf < Formula
"--without-gdiplus"
system "make"
system "make install"
+
+ # Other packages should use the top-level modules directory
+ # rather than dumping their files into the gdk-pixbuf keg.
+ inreplace lib/'pkgconfig/gdk-pixbuf-2.0.pc' do |s|
+ libv = s.get_make_var 'gdk_pixbuf_binary_version'
+ s.change_make_var! 'gdk_pixbuf_binarydir',
+ HOMEBREW_PREFIX/'lib/gdk-pixbuf-2.0'/libv
+ end
end
end
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index edc948f76..0d31136eb 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -88,6 +88,7 @@ class Keg < Pathname
# pkg-config database gets explicitly created
when 'pkgconfig' then :mkpath
# lib/language folders also get explicitly created
+ when /^gdk-pixbuf/ then :mkpath
when 'ghc' then :mkpath
when 'lua' then :mkpath
when 'node' then :mkpath