aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLuke Marsden2013-11-03 11:09:57 +0000
committerAdam Vandenberg2014-04-13 16:13:53 -0700
commit7e7231911af9e97d2281628befbdc9318968ea63 (patch)
tree805db651f6b9e0f9b55b04c4e497947f55342237 /Library/Formula
parentfddcb1a079ccdc9e67ed4be2c138d78188dde01b (diff)
downloadhomebrew-7e7231911af9e97d2281628befbdc9318968ea63.tar.bz2
vte: enable Python bindings
Closes #23917. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vte.rb20
1 files changed, 16 insertions, 4 deletions
diff --git a/Library/Formula/vte.rb b/Library/Formula/vte.rb
index 6d3f537d6..75d423690 100644
--- a/Library/Formula/vte.rb
+++ b/Library/Formula/vte.rb
@@ -10,12 +10,24 @@ class Vte < Formula
depends_on 'gettext'
depends_on 'glib'
depends_on 'gtk+'
+ depends_on 'pygtk'
+ depends_on :python => :recommended
def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--disable-python",
- "--disable-Bsymbolic"
+ args = [
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--disable-Bsymbolic",
+ ]
+
+ if build.with? "python"
+ # pygtk-codegen-2.0 has been deprecated and replaced by
+ # pygobject-codegen-2.0, but the vte Makefile does not detect this.
+ ENV["PYGTK_CODEGEN"] = Formula["pygobject"].bin/'pygobject-codegen-2.0'
+ args << "--enable-python"
+ end
+
+ system "./configure", *args
system "make install"
end
end