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/'
|
2010-07-03 12:24:16 +00:00
|
|
|
url 'http://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.23.tar.bz2'
|
|
|
|
md5 '3001d6bb2bbc2c8f6c2301f05120f074'
|
|
|
|
|
|
|
|
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
|