Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Install ragel user's guide
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Douglas Creager authored and adamv committed Feb 15, 2012
1 parent ad67991 commit ec8ed5e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Library/Formula/ragel.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec8ed5e

Please sign in to comment.