Skip to content

Commit

Permalink
fop: use resource
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Sep 12, 2013
1 parent c4fdb00 commit 9a57af1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Formula/fop.rb
@@ -1,21 +1,20 @@
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'

# http://offo.sourceforge.net/hyphenation/
resource 'hyph' do
url 'http://downloads.sourceforge.net/project/offo/offo-hyphenation-utf8/0.1/offo-hyphenation-fop-stable-utf8.zip'
sha1 'c2a3f6e985b21c9702a714942ac747864c8b1759'
end

def install
libexec.install Dir["*"]
bin.write_exec_script libexec/'fop'

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

0 comments on commit 9a57af1

Please sign in to comment.