mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Added ragel 6.8 recipe and patch
This commit is contained in:
23
dev-util/ragel/patches/ragel-6.8.patch
Normal file
23
dev-util/ragel/patches/ragel-6.8.patch
Normal file
@@ -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 <fstream>
|
||||
#include <climits>
|
||||
+#include <cstdio>
|
||||
#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;
|
||||
53
dev-util/ragel/ragel-6.8.recipe
Normal file
53
dev-util/ragel/ragel-6.8.recipe
Normal file
@@ -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 <thurston@complang.org>
|
||||
2007 Victor Hugo Borja <vic@rubyforge.org>
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user