aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ragel
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2005-12-27 18:04:54 +0800
committerehaupt <ehaupt@FreeBSD.org>2005-12-27 18:04:54 +0800
commit3db4b224794d9569e1658585f5eb6cdd13a48698 (patch)
treee43e3e7af1aac1dc04fe3b1566d50cf1e4fa72eb /devel/ragel
parent117d18ab72f205a86510755f78b17ab74116992d (diff)
downloadfreebsd-ports-graphics-3db4b224794d9569e1658585f5eb6cdd13a48698.tar.gz
freebsd-ports-graphics-3db4b224794d9569e1658585f5eb6cdd13a48698.tar.zst
freebsd-ports-graphics-3db4b224794d9569e1658585f5eb6cdd13a48698.zip
Update to 5.1
PR: 90925 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'devel/ragel')
-rw-r--r--devel/ragel/Makefile20
-rw-r--r--devel/ragel/distinfo6
-rw-r--r--devel/ragel/files/patch-ragel__ragel.h10
-rw-r--r--devel/ragel/files/patch-rlcodegen__fsmcodegen.cpp10
-rw-r--r--devel/ragel/files/patch-rlcodegen__gendata.cpp10
-rw-r--r--devel/ragel/files/patch-rlcodegen__xmlparse.y118
-rw-r--r--devel/ragel/files/patch-rlparse.y37
7 files changed, 164 insertions, 47 deletions
diff --git a/devel/ragel/Makefile b/devel/ragel/Makefile
index 312e0951204..ab317c8e240 100644
--- a/devel/ragel/Makefile
+++ b/devel/ragel/Makefile
@@ -7,33 +7,39 @@
#
PORTNAME= ragel
-PORTVERSION= 4.1
+PORTVERSION= 5.1
CATEGORIES= devel
MASTER_SITES= http://www.elude.ca/ragel/
MAINTAINER= ports@FreeBSD.org
COMMENT= Compile regular languages into executable C/C++ code
+BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf
+
USE_REINPLACE= yes
USE_BISON= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= AWK="${AWK}"
+MAKE_ENV= GPERF="${LOCALBASE}/bin/gperf"
-MAN1= ragel.1
-PLIST_FILES= bin/ragel
+MAN1= ragel.1 rlcodegen.1
+PLIST_FILES= bin/ragel bin/rlcodegen
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|$$(CFLAGS)|$$(CXXFLAGS)|g'
+ 's|$$(CFLAGS)|$$(CXXFLAGS)|g ; \
+ s|gperf -L|$$(GPERF) -L|g'
post-build:
@cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} \
- ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ragel.1
+ ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \
+ ragel.1 rlcodegen.1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ragel ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/ragel/ragel ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/rlcodegen/rlcodegen ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/ragel.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/rlcodegen.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/devel/ragel/distinfo b/devel/ragel/distinfo
index a70a242ca0a..897e728bff3 100644
--- a/devel/ragel/distinfo
+++ b/devel/ragel/distinfo
@@ -1,3 +1,3 @@
-MD5 (ragel-4.1.tar.gz) = f37efaa3244a4fd22479a3a32d9ebaac
-SHA256 (ragel-4.1.tar.gz) = 7ccd16c17153543b720d9a6b8a76311a4d838e25bf33f99298732718fe440ed5
-SIZE (ragel-4.1.tar.gz) = 451133
+MD5 (ragel-5.1.tar.gz) = 2d2d8989914c735d775f19267af39ad2
+SHA256 (ragel-5.1.tar.gz) = 203258ed99b9816f5ff91c3ee612f74615ede5e957590f0b0c8c8580ccb95ef2
+SIZE (ragel-5.1.tar.gz) = 500674
diff --git a/devel/ragel/files/patch-ragel__ragel.h b/devel/ragel/files/patch-ragel__ragel.h
new file mode 100644
index 00000000000..e48ca53e29d
--- /dev/null
+++ b/devel/ragel/files/patch-ragel__ragel.h
@@ -0,0 +1,10 @@
+--- ragel/ragel.h.orig Sat Dec 17 12:50:57 2005
++++ ragel/ragel.h Mon Dec 26 13:12:58 2005
+@@ -25,6 +25,7 @@
+ #include <stdio.h>
+ #include <iostream>
+ #include <fstream>
++#include <string>
+ #include "config.h"
+
+ #define PROGNAME "ragel"
diff --git a/devel/ragel/files/patch-rlcodegen__fsmcodegen.cpp b/devel/ragel/files/patch-rlcodegen__fsmcodegen.cpp
new file mode 100644
index 00000000000..1a461baab33
--- /dev/null
+++ b/devel/ragel/files/patch-rlcodegen__fsmcodegen.cpp
@@ -0,0 +1,10 @@
+--- rlcodegen/fsmcodegen.cpp.orig Wed Dec 21 15:15:28 2005
++++ rlcodegen/fsmcodegen.cpp Mon Dec 26 13:36:08 2005
+@@ -25,6 +25,7 @@
+ #include "fsmcodegen.h"
+ #include "redfsm.h"
+ #include "gendata.h"
++#include <climits>
+ #include <sstream>
+
+ /* Determine if a string is only whitespace. Code blocks that are only
diff --git a/devel/ragel/files/patch-rlcodegen__gendata.cpp b/devel/ragel/files/patch-rlcodegen__gendata.cpp
new file mode 100644
index 00000000000..e98144e1594
--- /dev/null
+++ b/devel/ragel/files/patch-rlcodegen__gendata.cpp
@@ -0,0 +1,10 @@
+--- rlcodegen/gendata.cpp.orig Thu Dec 22 16:04:14 2005
++++ rlcodegen/gendata.cpp Mon Dec 26 13:21:36 2005
+@@ -31,6 +31,7 @@
+ #include "fgotocodegen.h"
+ #include "ipgotocodegen.h"
+
++#include <climits>
+ #include <iostream>
+
+ using std::endl;
diff --git a/devel/ragel/files/patch-rlcodegen__xmlparse.y b/devel/ragel/files/patch-rlcodegen__xmlparse.y
new file mode 100644
index 00000000000..c9f2e682154
--- /dev/null
+++ b/devel/ragel/files/patch-rlcodegen__xmlparse.y
@@ -0,0 +1,118 @@
+--- rlcodegen/xmlparse.y.orig Thu Dec 22 16:04:14 2005
++++ rlcodegen/xmlparse.y Mon Dec 26 13:20:03 2005
+@@ -175,7 +175,7 @@
+ else
+ sourceFileName = fileNameAttr->value;
+ openOutput( sourceFileName );
+- }
++ };
+
+ AttributeList:
+ AttributeList Attribute {
+@@ -190,7 +190,7 @@
+ XML_Word '=' XML_Literal {
+ attrKey = $1;
+ attrValue = $3;
+- }
++ };
+
+ HostOrDefList:
+ HostOrDefList HostOrDef |
+@@ -204,7 +204,7 @@
+ '<' '/' TAG_host '>' {
+ if ( outputFormat == OutCCode || outputFormat == OutDCode )
+ *outStream << xmlData.data;
+- }
++ };
+
+ TagHostHead:
+ '<' TAG_host AttributeList '>' {
+@@ -216,14 +216,14 @@
+ if ( outputFormat == OutCCode || outputFormat == OutDCode )
+ lineDirective( *outStream, sourceFileName, line );
+ }
+- }
++ };
+
+ TagRagelDef:
+ RagelDefHead
+ RagelDefItemList
+ '<' '/' TAG_ragel_def '>' {
+ cgd->generate();
+- }
++ };
+
+ RagelDefHead:
+ '<' TAG_ragel_def AttributeList '>' {
+@@ -303,7 +303,7 @@
+ else {
+ warning() << "unrecognized write option" << endl;
+ }
+- }
++ };
+
+
+ TagAlphType:
+@@ -361,7 +361,7 @@
+ '<' '/' TAG_start_state '>' {
+ unsigned long startState = strtoul( xmlData.data, 0, 10 );
+ cgd->setStartState( startState );
+- }
++ };
+
+ TagEntryPoints:
+ '<' TAG_entry_points AttributeList '>'
+@@ -370,7 +370,7 @@
+ Attribute *errorAttr = $3->find( "error" );
+ if ( errorAttr != 0 )
+ cgd->setForcedErrorState();
+- }
++ };
+
+ EntryPointList:
+ EntryPointList TagEntry |
+@@ -462,7 +462,7 @@
+ cgd->initTransList( curState, length );
+ curTrans = 0;
+ }
+- }
++ };
+
+ TransList:
+ TransList TagTrans |
+@@ -531,7 +531,7 @@
+ /* Nothing */ {
+ /* Start with empty list. */
+ $$ = new InlineList;
+- }
++ };
+
+ InlineItem:
+ TagText |
+@@ -564,7 +564,7 @@
+ '<' '/' TAG_text '>' {
+ $$ = new InlineItem( InputLoc(), InlineItem::Text );
+ $$->data = strdup(xmlData.data);
+- }
++ };
+
+ TagGoto:
+ '<' TAG_goto '>'
+@@ -772,7 +772,7 @@
+ cgd->initActionTableList( length );
+ curActionTable = 0;
+ }
+- }
++ };
+
+ ActionTableList:
+ ActionTableList TagActionTable |
+@@ -806,7 +806,7 @@
+ }
+
+ curActionTable += 1;
+- }
++ };
+
+ %%
+
diff --git a/devel/ragel/files/patch-rlparse.y b/devel/ragel/files/patch-rlparse.y
deleted file mode 100644
index 74bbfee6e96..00000000000
--- a/devel/ragel/files/patch-rlparse.y
+++ /dev/null
@@ -1,37 +0,0 @@
---- rlparse.y.orig Sat Jun 25 07:56:54 2005
-+++ rlparse.y Wed Sep 7 00:48:58 2005
-@@ -470,14 +470,14 @@
- id->sawInterface = true;
- }
- id->sectionEndLoc = @2;
-- }
-+ };
-
- /* Include statements are processed by both the scanner and the parser. */
- Include:
- IncludeKeyword OptSection OptFileName ';' {
- if ( id->active )
- doInclude( @1, $2, $3 );
-- }
-+ };
-
- IncludeKeyword:
- KW_Include {
-@@ -607,7 +607,7 @@
- NoNameSep:
- /* Nothing */ {
- id->nameRef.empty();
-- }
-+ };
-
- /* A qualified state reference. */
- StateRef:
-@@ -622,7 +622,7 @@
- } |
- /* Nothing. */ {
- id->nameRef.empty();
-- }
-+ };
-
- /* List of names separated by :: */
- StateRefNames: