[63207] trunk/dports/textproc

singingwolfboy at macports.org singingwolfboy at macports.org
Fri Jan 29 06:27:55 PST 2010


Revision: 63207
          http://trac.macports.org/changeset/63207
Author:   singingwolfboy at macports.org
Date:     2010-01-29 06:27:55 -0800 (Fri, 29 Jan 2010)
Log Message:
-----------
Added tcLex port

Added Paths:
-----------
    trunk/dports/textproc/tcLex/
    trunk/dports/textproc/tcLex/Portfile
    trunk/dports/textproc/tcLex/files/
    trunk/dports/textproc/tcLex/files/tcLex.c.diff
    trunk/dports/textproc/tcLex/files/tcLexRE.c.diff

Added: trunk/dports/textproc/tcLex/Portfile
===================================================================
--- trunk/dports/textproc/tcLex/Portfile	                        (rev 0)
+++ trunk/dports/textproc/tcLex/Portfile	2010-01-29 14:27:55 UTC (rev 63207)
@@ -0,0 +1,29 @@
+# $Id$
+
+PortSystem      1.0
+
+name            tcLex
+version         1.2a1
+categories      textproc
+platforms       darwin
+maintainers     singingwolfboy openmaintainer
+description     TCL Lexer
+
+long_description \
+                tcLex is a lexical analyzer generator extension to TCL \
+                written in C.
+
+checksums       md5     3ff41a67ba988f8708c8a05ea5c463a0 \
+                sha1    ee8d467d6d977951a2ecb43cf61628f7a66a26ee \
+                rmd160  6a39a3925358618f898ec5a8e6e8a1226153a9dc
+
+homepage        http://membres.multimania.fr/fbonnet/Tcl/tcLex/index.en.htm
+master_sites    http://membres.multimania.fr/fbonnet/pub/
+distname        ${name}${version}
+
+depends_lib     port:tcl
+
+worksrcdir      ${distname}/src
+pre-configure   {file attributes ${worksrcpath}/configure -permissions a+x}
+pre-build       {reinplace "s|-fno-common|-fno-common -framework Tcl|g" ${worksrcpath}/Makefile}
+patchfiles      tcLex.c.diff tcLexRE.c.diff


Property changes on: trunk/dports/textproc/tcLex/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/tcLex/files/tcLex.c.diff
===================================================================
--- trunk/dports/textproc/tcLex/files/tcLex.c.diff	                        (rev 0)
+++ trunk/dports/textproc/tcLex/files/tcLex.c.diff	2010-01-29 14:27:55 UTC (rev 63207)
@@ -0,0 +1,30 @@
+--- tcLex.c.orig	2010-01-27 14:01:19.000000000 -0500
++++ tcLex.c	2010-01-27 14:38:20.000000000 -0500
+@@ -15,14 +15,16 @@
+  *
+  */
+ 
++#ifndef HAVE_UNISTD_H
++#define HAVE_UNISTD_H
++#endif
++
+ #include "tcLex.h"
+ #include "tcLexInt.h"
+ #include "tcLexRE.h"
+ 
+ #include <tclInt.h>
+ 
+-
+-
+ /*******************************************************
+  *                                                     *
+  *          Conditions management functions            *
+@@ -1145,7 +1147,7 @@
+     
+     currentLexer = LexerGetCurrent(interp);
+     if (currentLexer) {
+-	if (((Command*)currentLexer->command)->deleted)
++	if (((Command*)currentLexer->command)->flags==CMD_IS_DELETED)
+ 	    /* If command has been deleted, the token is meaningless. Return no result */
+ 	    Tcl_ResetResult(interp);
+ 	else


Property changes on: trunk/dports/textproc/tcLex/files/tcLex.c.diff
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/tcLex/files/tcLexRE.c.diff
===================================================================
--- trunk/dports/textproc/tcLex/files/tcLexRE.c.diff	                        (rev 0)
+++ trunk/dports/textproc/tcLex/files/tcLexRE.c.diff	2010-01-29 14:27:55 UTC (rev 63207)
@@ -0,0 +1,10 @@
+--- tcLexRE.c.orig	2010-01-27 16:00:02.000000000 -0500
++++ tcLexRE.c	2010-01-27 16:00:38.000000000 -0500
+@@ -1,3 +1,7 @@
++#ifndef HAVE_UNISTD_H
++#define HAVE_UNISTD_H
++#endif
++
+ #include <tcl.h>
+ #include <tclInt.h>
+ #include <tclRegexp.h>


Property changes on: trunk/dports/textproc/tcLex/files/tcLexRE.c.diff
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100129/fb4f27a6/attachment-0001.html>


More information about the macports-changes mailing list