2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-28 03:06:02 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fop < Formula
|
2009-09-28 03:06:02 +00:00
|
|
|
homepage "http://xmlgraphics.apache.org/fop/index.html"
|
2011-07-27 09:41:17 +00:00
|
|
|
url "http://www.apache.org/dyn/closer.cgi?path=/xmlgraphics/fop/binaries/fop-1.0-bin.tar.gz"
|
2010-09-01 13:37:58 +00:00
|
|
|
md5 "3186f93a314bdcb710bd7cb02d80404c"
|
2009-09-28 03:06:02 +00:00
|
|
|
|
2010-07-06 14:52:37 +00:00
|
|
|
def shim_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
#{libexec}/#{target} $*
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-09-28 03:06:02 +00:00
|
|
|
def install
|
2010-07-06 14:52:37 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
(bin+'fop').write shim_script('fop')
|
2009-09-28 03:06:02 +00:00
|
|
|
end
|
|
|
|
end
|