Skip to content

Commit

Permalink
fop: Add hyphenation patterns
Browse files Browse the repository at this point in the history
Install compiled hyphenation patterns for FOP per instructions at
https://offo.sourceforge.net/hyphenation/binary/installation.html and
https://xmlgraphics.apache.org/fop/trunk/hyphenation.html.

Closes Homebrew#21326.

Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
petere authored and adamv committed Jul 19, 2013
1 parent 18b47d6 commit a2223af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Formula/fop.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require 'formula'

class FopHyph < Formula
homepage 'https://offo.sourceforge.net/hyphenation/'
url 'https://downloads.sourceforge.net/project/offo/offo-hyphenation-utf8/0.1/offo-hyphenation-fop-stable-utf8.zip'
sha1 'c2a3f6e985b21c9702a714942ac747864c8b1759'
end

class Fop < Formula
homepage "https://xmlgraphics.apache.org/fop/index.html"
url "https://www.apache.org/dyn/closer.cgi?path=/xmlgraphics/fop/binaries/fop-1.1-bin.tar.gz"
Expand All @@ -8,5 +14,9 @@ class Fop < Formula
def install
libexec.install Dir["*"]
bin.write_exec_script libexec/'fop'

FopHyph.new.brew do
(libexec/'build').install 'fop-hyph.jar'
end
end
end

0 comments on commit a2223af

Please sign in to comment.