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"
|
2011-03-23 12:37:31 +00:00
|
|
|
url "http://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxonhe9-3-0-4j.zip"
|
|
|
|
md5 "9286c94c976109cbf23c226235a2e105"
|
|
|
|
version "9.3.0.4"
|
2010-11-18 03:16:28 +00:00
|
|
|
|
|
|
|
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
|