homebrew-core/Formula/glade.rb
Jack Nagel 530a76e41a glade: find libxml2 python bindings and docbook
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06 23:13:43 -05:00

29 lines
923 B
Ruby

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'
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