require 'formula' class Glade < Formula homepage 'http://glade.gnome.org/' url 'http://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-3.8.2.tar.xz' sha256 'f180a5018eee6e3fe574854cb025af897dd9962b01d17d5752e626876d388b19' depends_on 'pkg-config' => :build depends_on 'xz' => :build depends_on 'gettext' depends_on 'intltool' depends_on 'libglade' depends_on 'hicolor-icon-theme' depends_on :x11 def install pydir = 'python' + `python -c 'import sys;print(sys.version[:3])'`.strip libxml2 = Formula.factory('libxml2') ENV.prepend 'PYTHONPATH', libxml2.lib/pydir/'site-packages', ':' # Find our docbook catalog ENV['XML_CATALOG_FILES'] = "#{etc}/xml/catalog" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make" # separate steps required system "make", "install" end end