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
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python
|
2012-02-14 06:00:21 +00:00
|
|
|
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
|
2013-01-21 09:33:56 +00:00
|
|
|
# libxml2 is keg_only but we installed the python bindings globally, so
|
|
|
|
# configure should find them.
|
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
|