2011-12-10 19:53:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GnomeDocUtils < Formula
|
|
|
|
homepage 'https://live.gnome.org/GnomeDocUtils'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz'
|
2012-06-12 02:25:18 +00:00
|
|
|
sha256 'cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6'
|
2011-12-10 19:53:10 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:39:52 +00:00
|
|
|
depends_on 'intltool' => :build
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python
|
2011-12-10 19:53:10 +00:00
|
|
|
depends_on 'docbook'
|
|
|
|
depends_on 'gettext'
|
2013-01-26 17:57:12 +00:00
|
|
|
depends_on 'libxml2' => 'with-python'
|
2012-03-22 04:12:54 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Undefined symbols when linking"
|
|
|
|
end
|
2011-12-10 19:53:10 +00:00
|
|
|
|
|
|
|
def install
|
2014-01-04 13:06:26 +00:00
|
|
|
# Find our docbook catalog
|
|
|
|
ENV['XML_CATALOG_FILES'] = "#{etc}/xml/catalog"
|
|
|
|
ENV.append_path 'PYTHONPATH', HOMEBREW_PREFIX/"opt/libxml2/lib/python2.7/site-packages"
|
2012-03-29 22:33:07 +00:00
|
|
|
|
2014-01-04 13:06:26 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-scrollkeeper",
|
|
|
|
"--enable-build-utils=yes"
|
2012-06-07 04:05:19 +00:00
|
|
|
|
2014-01-04 13:06:26 +00:00
|
|
|
# Compilation doesn't work right if we jump straight to make install
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
2011-12-10 19:53:10 +00:00
|
|
|
end
|
|
|
|
end
|