diff options
| author | Jack Nagel | 2012-03-29 17:33:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-29 17:36:23 -0500 |
| commit | 46e85b5ed22b65045628014e9441a9433d6d5682 (patch) | |
| tree | cf5621149d6306722d2f4228ade7a140fd5ba936 /Library/Formula | |
| parent | da13cbba048c6877de2d773e47e88f0ddf708bbc (diff) | |
| download | homebrew-46e85b5ed22b65045628014e9441a9433d6d5682.tar.bz2 | |
gnome-doc-utils: set PYTHONPATH for libxml2 module
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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" |
