diff --git a/dev-util/ragel/patches/ragel-6.8.patch b/dev-util/ragel/patches/ragel-6.8.patch new file mode 100644 index 000000000..756ff6a5b --- /dev/null +++ b/dev-util/ragel/patches/ragel-6.8.patch @@ -0,0 +1,23 @@ +diff -ur ragel-6.8/ragel/common.h ragel-6.8-haiku/ragel/common.h +--- ragel-6.8/ragel/common.h 2013-02-11 01:57:45.020971520 +0000 ++++ ragel-6.8-haiku/ragel/common.h 2013-12-30 19:13:12.330301440 +0000 +@@ -24,6 +24,7 @@ + + #include + #include ++#include + #include "dlist.h" + + /* Location in an input file. */ +diff -ur ragel-6.8/ragel/mlcodegen.cpp ragel-6.8-haiku/ragel/mlcodegen.cpp +--- ragel-6.8/ragel/mlcodegen.cpp 2013-02-11 01:57:45.022282240 +0000 ++++ ragel-6.8-haiku/ragel/mlcodegen.cpp 2013-12-30 19:18:36.937426944 +0000 +@@ -514,7 +514,7 @@ + { + data_prefix = string(fsmName) + "_"; + if (data_prefix.size() > 0) +- data_prefix[0] = ::tolower(data_prefix[0]); // uncapitalize ++ data_prefix[0] = tolower(data_prefix[0]); // uncapitalize + } + if ( !noPrefix ) + return data_prefix; diff --git a/dev-util/ragel/ragel-6.8.recipe b/dev-util/ragel/ragel-6.8.recipe new file mode 100644 index 000000000..5498ddc40 --- /dev/null +++ b/dev-util/ragel/ragel-6.8.recipe @@ -0,0 +1,53 @@ +SUMMARY="Ragel compiles executable finite state machines from regular languages" +DESCRIPTION=" +Ragel compiles executable finite state machines from regular languages. + +Ragel targets C, C++, Objective-C, C#, D, Java, Ruby, OCaml and Go. + +Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language. +Code embedding is done using inline operators that do not disrupt the regular language syntax." + +HOMEPAGE="http://www.complang.org/ragel" +SRC_URI="http://www.complang.org/ragel/ragel-6.8.tar.gz" +CHECKSUM_MD5="1bb39745ac23da449019f9f2cb4b0d01" + +REVISION="1" + +LICENSE="GNU GPL v1" +COPYRIGHT=" + 2001-2009 Adrian Thurston + 2007 Victor Hugo Borja + 2011 Josef Goettgens + " + +ARCHITECTURES="x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + ragel = $portVersion + cmd:ragel$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +PATCHES="ragel-6.8.patch" + +BUILD() +{ + runConfigure ./configure + make +} + +INSTALL() +{ + make install +}