2010-07-03 12:24:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xmlto < Formula
|
2012-02-15 05:57:56 +00:00
|
|
|
homepage 'http://cyberelk.net/tim/software/xmlto/'
|
2012-04-21 03:48:45 +00:00
|
|
|
url 'http://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.25.tar.bz2'
|
|
|
|
sha1 '5d1aecd59d519066f94b4591722767c4e41bdc0f'
|
2010-07-03 12:24:16 +00:00
|
|
|
|
|
|
|
depends_on 'docbook'
|
|
|
|
depends_on 'gnu-getopt'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# GNU getopt is keg-only, so point configure to it
|
2012-02-15 05:57:56 +00:00
|
|
|
ENV['GETOPT'] = Formula.factory('gnu-getopt').bin+"getopt"
|
|
|
|
# Find our docbook catalog
|
|
|
|
ENV['XML_CATALOG_FILES'] = "#{etc}/xml/catalog"
|
2010-07-03 12:24:16 +00:00
|
|
|
|
2012-02-15 05:57:56 +00:00
|
|
|
ENV.deparallelize
|
2010-07-03 12:24:16 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|