homebrew-core/Formula/docbook2x.rb

22 lines
703 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Docbook2x < Formula
2013-01-27 22:18:40 +00:00
homepage 'http://docbook2x.sourceforge.net/'
url 'http://downloads.sourceforge.net/docbook2x/docbook2X-0.8.8.tar.gz'
sha1 '7dc34d420f8aae2a0c0cdb39f52146ce005bf902'
depends_on 'docbook'
depends_on 'XML::NamespaceSupport' => :perl
depends_on 'XML::SAX' => :perl
depends_on 'XML::Parser' => :perl
depends_on 'XML::SAX::Expat' => :perl
def install
inreplace "perl/db2x_xsltproc.pl", "http://docbook2x.sf.net/latest/xslt", "#{share}/docbook2X/xslt"
inreplace "configure", "${prefix}", prefix
2013-01-27 22:18:40 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end