diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnome-doc-utils.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Library/Formula/gnome-doc-utils.rb b/Library/Formula/gnome-doc-utils.rb index e5fdbfda0..92bf6afad 100644 --- a/Library/Formula/gnome-doc-utils.rb +++ b/Library/Formula/gnome-doc-utils.rb @@ -18,11 +18,14 @@ class GnomeDocUtils < Formula fails_with_llvm "Undefined symbols when linking", :build => "2326" def install - args = ["--prefix=#{prefix}", - "--disable-scrollkeeper", - "--enable-build-utils=yes"] - - system "./configure", *args + # TODO this should possibly be moved up into build.rb + pydir = 'python' + `python -c 'import sys;print(sys.version[:3])'`.strip + libxml2 = Formula.factory('libxml2') + ENV.prepend 'PYTHONPATH', libxml2.lib/pydir/'site-packages', ':' + + system "./configure", "--prefix=#{prefix}", + "--disable-scrollkeeper", + "--enable-build-utils=yes" # Compilation doesn't work right if we jump straight to make install system "make" |
