homebrew-core/Formula/ragel.rb

21 lines
568 B
Ruby
Raw Normal View History

require 'formula'
2009-09-14 15:11:40 +00:00
class RagelUserGuide < Formula
url 'http://www.complang.org/ragel/ragel-guide-6.8.pdf'
sha1 'e57ee7f740dd395d4d5330949594a02c91ad0308'
end
2011-03-10 05:11:03 +00:00
class Ragel < Formula
2009-09-14 15:11:40 +00:00
homepage 'http://www.complang.org/ragel/'
url 'http://www.complang.org/ragel/ragel-6.8.tar.gz'
sha1 '95cabbcd52bd25d76c588ddf11e1fd242d7cbcc7'
2009-09-14 15:11:40 +00:00
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
2009-09-14 15:11:40 +00:00
system "make install"
# Install the prebuilt PDF documentation
RagelUserGuide.new.brew { doc.install Dir['*.pdf'] }
2009-09-14 15:11:40 +00:00
end
end