diff options
| author | Jack Nagel | 2012-05-23 20:02:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-23 20:06:07 -0500 |
| commit | d43c1e4543f55df1c4b29a1471f889bd5051ed65 (patch) | |
| tree | 2db5a06832361135ef7f903b58547f9803f17b2d /Library | |
| parent | f9c8011f62cd6e79e7acde731acd375d2f31c93e (diff) | |
| download | homebrew-d43c1e4543f55df1c4b29a1471f889bd5051ed65.tar.bz2 | |
gtk-doc: find the libxml2 python site-packages directory
Add an explicit dependency on libxml2 for clarity. Previously it was
implicit in the gnome-doc-utils dep. Prepend its site-packages directory
to the PYTHONPATH.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gtk-doc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/gtk-doc.rb b/Library/Formula/gtk-doc.rb index 6c9acaeb9..4c072f518 100644 --- a/Library/Formula/gtk-doc.rb +++ b/Library/Formula/gtk-doc.rb @@ -10,8 +10,16 @@ class GtkDoc < Formula depends_on 'gettext' depends_on 'glib' depends_on 'docbook' + depends_on 'libxml2' def install + # libxml2 must be installed with python support; this should be ensured + # by the gnome-doc-utils dependency. However it is keg-only, so we have + # to put its site-packages directory on the PYTHONPATH + 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", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", |
