aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDouglas Creager2012-02-07 18:45:56 -0500
committerAdam Vandenberg2012-02-14 19:42:29 -0800
commitec8ed5e6f51359e6cdc6b7098e522960f13982cc (patch)
treebd25ec6a05ad93ac4e667e1af5491b64bc662afc /Library
parentad67991324dc525856aa66feb37a162f0b0ffe2a (diff)
downloadhomebrew-ec8ed5e6f51359e6cdc6b7098e522960f13982cc.tar.bz2
Install ragel user's guide
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ragel.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/ragel.rb b/Library/Formula/ragel.rb
index 142a6a717..a06377f8c 100644
--- a/Library/Formula/ragel.rb
+++ b/Library/Formula/ragel.rb
@@ -1,12 +1,20 @@
require 'formula'
+class RagelUserGuide < Formula
+ url 'http://www.complang.org/ragel/ragel-guide-6.7.pdf'
+ sha1 '6f3483fea075941c989ac37e6c49afabc7e181c0'
+end
+
class Ragel < Formula
- url 'http://www.complang.org/ragel/ragel-6.7.tar.gz'
homepage 'http://www.complang.org/ragel/'
+ url 'http://www.complang.org/ragel/ragel-6.7.tar.gz'
md5 'f4423e0d8a6538dd4e61498fcfad3cec'
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
+
+ # Install the prebuilt PDF documentation
+ RagelUserGuide.new.brew { doc.install Dir['*.pdf'] }
end
end