2012-02-14 06:00:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GtkDoc < Formula
|
|
|
|
homepage 'http://www.gtk.org/gtk-doc/'
|
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.18/gtk-doc-1.18.tar.bz2'
|
|
|
|
sha256 'a634d2e93d70468237033c06a17c97f29cf71a35ac5cc01c016324c965d42f73'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gnome-doc-utils' => :build
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'docbook'
|
2013-05-29 14:57:41 +00:00
|
|
|
depends_on 'docbook-xsl'
|
2013-06-03 20:27:35 +00:00
|
|
|
depends_on 'libxml2' => 'with-python'
|
2012-02-14 06:00:21 +00:00
|
|
|
|
|
|
|
def install
|
2014-01-04 13:07:09 +00:00
|
|
|
ENV.append_path 'PYTHONPATH', HOMEBREW_PREFIX/"opt/libxml2/lib/python2.7/site-packages"
|
|
|
|
|
2012-02-14 06:00:21 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-02-15 05:57:56 +00:00
|
|
|
"--disable-scrollkeeper",
|
|
|
|
"--with-xml-catalog=#{etc}/xml/catalog"
|
2012-02-14 06:00:21 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|