2011-04-14 10:05:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Vte < Formula
|
|
|
|
homepage 'http://developer.gnome.org/vte/'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/vte/0.28/vte-0.28.0.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '49b66a0346da09c72f59e5c544cc5b50e7de9bc1'
|
2011-04-14 10:05:38 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'intltool' => :build
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gtk+'
|
2013-11-03 11:09:57 +00:00
|
|
|
depends_on 'pygtk'
|
|
|
|
depends_on :python => :recommended
|
2011-04-14 10:05:38 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-03 11:09:57 +00:00
|
|
|
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
|
2011-04-14 10:05:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|