homebrew-core/Formula/fop.rb
Peter Eisentraut 852e66aeab fop: Add hyphenation patterns
Install compiled hyphenation patterns for FOP per instructions at
http://offo.sourceforge.net/hyphenation/binary/installation.html and
https://xmlgraphics.apache.org/fop/trunk/hyphenation.html.

Closes Homebrew/homebrew#21326.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-19 10:39:40 -07:00

22 lines
666 B
Ruby

require 'formula'
class FopHyph < Formula
homepage 'http://offo.sourceforge.net/hyphenation/'
url 'http://downloads.sourceforge.net/project/offo/offo-hyphenation-utf8/0.1/offo-hyphenation-fop-stable-utf8.zip'
sha1 'c2a3f6e985b21c9702a714942ac747864c8b1759'
end
class Fop < Formula
homepage "http://xmlgraphics.apache.org/fop/index.html"
url "http://www.apache.org/dyn/closer.cgi?path=/xmlgraphics/fop/binaries/fop-1.1-bin.tar.gz"
sha1 '6b96c3f3fd5efe9f2b6b54bfa96161ec3f6a1dbc'
def install
libexec.install Dir["*"]
bin.write_exec_script libexec/'fop'
FopHyph.new.brew do
(libexec/'build').install 'fop-hyph.jar'
end
end
end