homebrew-core/Formula/xmlto.rb
2015-11-19 17:03:53 +01:00

49 lines
1.6 KiB
Ruby

class Xmlto < Formula
desc "Convert XML to another format (based on XSL or other tools)"
homepage "https://fedorahosted.org/xmlto/"
url "https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.26.tar.bz2"
sha256 "efb49b2fb3bc27c1a1e24fe34abf19b6bf6cbb40844e6fd58034cdf21c54b5ec"
bottle do
cellar :any_skip_relocation
sha256 "07ed7c132ab25310937ac0bf68d8a2b523a35c74a7c7c8ba2666bfe1e2b0574b" => :el_capitan
sha256 "948d7e69332c0c0f015344ad84dd0b688b9646157fb3f9bded7101e9e32fb45d" => :yosemite
sha256 "7f556c84d9e2ad7ba4b0dc0b8a44b9bb0a022611d28062b6259d8a0ecce6a014" => :mavericks
sha256 "d14c15e5ced0c310ed9c60852c9405d947ab3e6a0b745ba7ed33a4ab11853694" => :mountain_lion
end
depends_on "docbook"
depends_on "docbook-xsl"
# Doesn't strictly depend on GNU getopt, but OS X system getopt(1)
# does not support longopts in the optstring, so use GNU getopt.
depends_on "gnu-getopt"
# xmlto forces --nonet on xsltproc, which causes it to fail when
# DTDs/entities aren't available locally.
patch :DATA
def install
# GNU getopt is keg-only, so point configure to it
ENV["GETOPT"] = Formula["gnu-getopt"].opt_prefix/"bin/getopt"
# Find our docbook catalog
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
ENV.deparallelize
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
end
__END__
--- xmlto-0.0.25/xmlto.in.orig
+++ xmlto-0.0.25/xmlto.in
@@ -209,7 +209,7 @@
export VERBOSE
# Disable network entities
-XSLTOPTS="$XSLTOPTS --nonet"
+#XSLTOPTS="$XSLTOPTS --nonet"
# The names parameter for the XSLT stylesheet
XSLTPARAMS=""