aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fop.rb
blob: 16c7e66d1ed52e9aabe19e1eb054946042c0206b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Fop <Formula
  homepage "http://xmlgraphics.apache.org/fop/index.html"
  url "http://mirrors.ibiblio.org/pub/mirrors/apache/xmlgraphics/fop/binaries/fop-1.0-bin.tar.gz"
  md5 "3186f93a314bdcb710bd7cb02d80404c"

  def shim_script target
    <<-EOS.undent
      #!/bin/bash
      #{libexec}/#{target} $*
    EOS
  end

  def install
    libexec.install Dir["*"]
    (bin+'fop').write shim_script('fop')
  end
end