aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 22:35:51 -0700
committerAdam Vandenberg2013-09-11 22:05:33 -0700
commit6059e78b64b59f16601566ba570e79b09d3451bd (patch)
tree534cc2716ab7333e54a64699b8cf54a311b95c06
parentc05c10b25d12c257cf27bd238d00383c73c19252 (diff)
downloadhomebrew-6059e78b64b59f16601566ba570e79b09d3451bd.tar.bz2
ragel: use resource
-rw-r--r--Library/Formula/ragel.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/ragel.rb b/Library/Formula/ragel.rb
index 239f7afdb..4b7154993 100644
--- a/Library/Formula/ragel.rb
+++ b/Library/Formula/ragel.rb
@@ -1,20 +1,18 @@
require 'formula'
-class RagelUserGuide < Formula
- url 'http://www.complang.org/ragel/ragel-guide-6.8.pdf'
- sha1 'e57ee7f740dd395d4d5330949594a02c91ad0308'
-end
-
class Ragel < Formula
homepage 'http://www.complang.org/ragel/'
url 'http://www.complang.org/ragel/ragel-6.8.tar.gz'
sha1 '95cabbcd52bd25d76c588ddf11e1fd242d7cbcc7'
+ resource 'pdf' do
+ url 'http://www.complang.org/ragel/ragel-guide-6.8.pdf'
+ sha1 'e57ee7f740dd395d4d5330949594a02c91ad0308'
+ end
+
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
-
- # Install the prebuilt PDF documentation
- RagelUserGuide.new.brew { doc.install Dir['*.pdf'] }
+ doc.install resource('pdf')
end
end