homebrew-core/Formula/saxon.rb

21 lines
454 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Saxon < Formula
homepage "http://saxon.sourceforge.net"
2012-02-11 23:39:40 +00:00
url "http://downloads.sourceforge.net/project/saxon/Saxon-HE/9.4/SaxonHE9-4-0-2J.zip"
md5 "8ed3a09ce2e8a5c82247650c86e9e1b4"
version "9.4.0.2"
def shim_script target
<<-EOS.undent
#!/bin/bash
2012-02-11 23:39:40 +00:00
java -jar "#{libexec}/saxon9he.jar" "$@"
EOS
end
def install
libexec.install Dir["*"]
(bin+'saxon').write shim_script('saxon')
end
end