aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/saxon.rb
blob: 636fd749e27fe741483e96b99211711d6bb2911a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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-5j.zip"
  md5 "a940c252e1ae386a5f9949ace75e4ea6"
  version "9.3.0.5"

  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