homebrew-core/Formula/gnome-doc-utils.rb

34 lines
1,011 B
Ruby
Raw Normal View History

require 'formula'
class GnomeDocUtils < Formula
homepage 'https://live.gnome.org/GnomeDocUtils'
url 'http://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz'
sha256 'cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6'
depends_on 'pkg-config' => :build
depends_on 'intltool' => :build
depends_on :python
depends_on 'docbook'
depends_on 'gettext'
depends_on 'libxml2' => 'with-python'
fails_with :llvm do
build 2326
cause "Undefined symbols when linking"
end
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"
2014-01-04 13:06:26 +00:00
system "./configure", "--prefix=#{prefix}",
"--disable-scrollkeeper",
"--enable-build-utils=yes"
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"
end
end