2010-11-18 03:16:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Saxon < Formula
|
2010-11-18 03:16:28 +00:00
|
|
|
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"
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '7383d2504f45582f94c0d9c9ca2f4fa322fad7a1'
|
2012-02-11 23:39:40 +00:00
|
|
|
version "9.4.0.2"
|
2010-11-18 03:16:28 +00:00
|
|
|
|
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
2012-02-11 23:39:40 +00:00
|
|
|
java -jar "#{libexec}/saxon9he.jar" "$@"
|
2010-11-18 03:16:28 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
(bin+'saxon').write shim_script('saxon')
|
|
|
|
end
|
|
|
|
end
|