2011-05-16 13:50:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Glade < Formula
|
|
|
|
homepage 'http://glade.gnome.org/'
|
2013-01-16 16:02:13 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-3.8.3.tar.xz'
|
|
|
|
sha256 '84bb2d7f782f203e4aab923e47db8d22529229b13e59570945261611c63941d6'
|
2011-05-16 13:50:44 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2012-03-29 17:10:14 +00:00
|
|
|
depends_on 'xz' => :build
|
2013-02-03 20:39:49 +00:00
|
|
|
depends_on 'intltool' => :build
|
2011-05-16 13:50:44 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'libglade'
|
|
|
|
depends_on 'hicolor-icon-theme'
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-05-16 13:50:44 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-07 04:06:33 +00:00
|
|
|
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"
|
|
|
|
|
2012-03-29 17:10:14 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-05-16 13:50:44 +00:00
|
|
|
"--prefix=#{prefix}"
|
2012-03-29 17:10:14 +00:00
|
|
|
system "make" # separate steps required
|
|
|
|
system "make", "install"
|
2011-05-16 13:50:44 +00:00
|
|
|
end
|
|
|
|
end
|