2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-14 15:11:40 +00:00
|
|
|
|
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/'
|
2013-03-15 06:12:50 +00:00
|
|
|
url 'http://www.complang.org/ragel/ragel-6.8.tar.gz'
|
|
|
|
sha1 '95cabbcd52bd25d76c588ddf11e1fd242d7cbcc7'
|
2009-09-14 15:11:40 +00:00
|
|
|
|
2013-08-07 05:35:51 +00:00
|
|
|
resource 'pdf' do
|
|
|
|
url 'http://www.complang.org/ragel/ragel-guide-6.8.pdf'
|
|
|
|
sha1 'e57ee7f740dd395d4d5330949594a02c91ad0308'
|
|
|
|
end
|
|
|
|
|
2014-03-20 19:05:18 +00:00
|
|
|
# Fix compilation with recent clang, patch from upstream git repo
|
|
|
|
patch :DATA
|
2013-10-29 01:04:35 +00:00
|
|
|
|
2009-09-14 15:11:40 +00:00
|
|
|
def install
|
2010-10-23 19:15:38 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2009-09-14 15:11:40 +00:00
|
|
|
system "make install"
|
2013-08-07 05:35:51 +00:00
|
|
|
doc.install resource('pdf')
|
2009-09-14 15:11:40 +00:00
|
|
|
end
|
|
|
|
end
|
2013-10-29 01:04:35 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/ragel/javacodegen.cpp b/ragel/javacodegen.cpp
|
2013-10-29 01:10:16 +00:00
|
|
|
index adff67e..ff2193c 100644
|
2013-10-29 01:04:35 +00:00
|
|
|
--- a/ragel/javacodegen.cpp
|
|
|
|
+++ b/ragel/javacodegen.cpp
|
2013-10-29 01:10:16 +00:00
|
|
|
@@ -54,6 +54,7 @@ using std::cin;
|
|
|
|
using std::cout;
|
|
|
|
using std::cerr;
|
|
|
|
using std::endl;
|
|
|
|
+using std::setiosflags;
|
2013-10-29 01:04:35 +00:00
|
|
|
|
2013-10-29 01:10:16 +00:00
|
|
|
void javaLineDirective( ostream &out, const char *fileName, int line )
|
|
|
|
{
|