314c5d162a
Rather than download a shell script and tell users to run it with `sudo`, it is better to keep everything under Homebrew's control. Luckily, the XML toolchain provides the environment variable XML_CATALOG_FILES to allow files otehr than /etc/xml/catalog to be used. So remove the shell script, and do all the work inside the formula itself. When we're done, we just tell the user to add HOMEBREW_PREFIX/etc/xml/catalog to their shell configuration, rather than tell them to `sudo docbook-register`. Rather than download the shell script, just download docbook 5.0, which we need anyway. This also simplifies the logic in a handful of docbook-using formula. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
23 lines
723 B
Ruby
23 lines
723 B
Ruby
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'
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--disable-scrollkeeper",
|
|
"--with-xml-catalog=#{etc}/xml/catalog"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|