aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 20:39:32 -0700
committerAdam Vandenberg2013-09-11 22:05:29 -0700
commit0b5d00e49ef8069fe969a3d9c20e48d1fc8bd5b6 (patch)
tree9663320a26805f6eea614246c67d6b22c2f403b0 /Library
parent3da323a8219e31968018cdb2ce0917160be8ce87 (diff)
downloadhomebrew-0b5d00e49ef8069fe969a3d9c20e48d1fc8bd5b6.tar.bz2
fop: use resource
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fop.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/Library/Formula/fop.rb b/Library/Formula/fop.rb
index 3c745fe66..98501be64 100644
--- a/Library/Formula/fop.rb
+++ b/Library/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