aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vte3.rb
blob: 75694fe7a27f3804ae812c57c15434ad74ea78da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require "formula"

class Vte3 < Formula
  homepage "http://developer.gnome.org/vte/"
  url "http://ftp.gnome.org/pub/gnome/sources/vte/0.32/vte-0.32.2.tar.xz"
  sha1 "a58569a99ac06a240bdda3ec7353f2626145852d"

  depends_on "pkg-config" => :build
  depends_on "intltool" => :build
  depends_on "gettext"
  depends_on "glib"
  depends_on "gtk+3"
  depends_on "pygtk"
  depends_on "gobject-introspection"
  depends_on :python

  def install
    args = [
      "--disable-dependency-tracking",
      "--prefix=#{prefix}",
      "--disable-Bsymbolic",
      "--enable-introspection=yes",
    ]

    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