diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/saxon.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/saxon.rb b/Library/Formula/saxon.rb new file mode 100644 index 000000000..0b21fd5e9 --- /dev/null +++ b/Library/Formula/saxon.rb @@ -0,0 +1,20 @@ +require 'formula' + +class Saxon <Formula + homepage "http://saxon.sourceforge.net" + url "http://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxonhe9-3-0-1j.zip" + md5 "1783d5aff6ddae1b56f04a4005371ea6" + version "9.3.0.1" + + def shim_script target + <<-EOS.undent + #!/bin/bash + java -jar #{libexec}/saxon9he.jar "$@" + EOS + end + + def install + libexec.install Dir["*"] + (bin+'saxon').write shim_script('saxon') + end +end |
