2014-09-23 07:12:29 +00:00
|
|
|
require "formula"
|
2012-02-14 06:00:21 +00:00
|
|
|
|
|
|
|
class GtkDoc < Formula
|
2014-09-23 07:12:29 +00:00
|
|
|
homepage "http://www.gtk.org/gtk-doc/"
|
|
|
|
url "http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.20/gtk-doc-1.20.tar.xz"
|
|
|
|
sha256 "3e6ecf134dbf92a74c24d79848fea3a48e59ab95408a38c6405905d95a293011"
|
2012-02-14 06:00:21 +00:00
|
|
|
|
2014-09-23 07:12:29 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "be13f6a01fed97680dfce7c18704885d6cb7ed8f" => :mavericks
|
|
|
|
sha1 "48b5f384aeebd39494794f46ed801f35f5bcfb6e" => :mountain_lion
|
|
|
|
sha1 "0f88dda0c51d73acebc3b2ec1513f67ff7d5c87c" => :lion
|
|
|
|
end
|
|
|
|
|
2014-09-23 07:12:29 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gnome-doc-utils" => :build
|
|
|
|
depends_on "itstool" => :build
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "docbook"
|
|
|
|
depends_on "docbook-xsl"
|
|
|
|
depends_on "libxml2" => "with-python"
|
2012-02-14 06:00:21 +00:00
|
|
|
|
|
|
|
def install
|
2014-09-23 07:12:29 +00:00
|
|
|
ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
|
2014-01-04 13:07:09 +00:00
|
|
|
|
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
|
|
|
"--with-xml-catalog=#{etc}/xml/catalog"
|
2012-02-14 06:00:21 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|