Revision
90045
Author
jberry@macports.org
Date
2012-02-19 22:40:34 -0800 (Sun, 19 Feb 2012)

Log Message

Resolve #32858. Maintainer timeout. Add patch for support of thread-enabled Tcl.

Modified Paths

Added Paths

Diff

Modified: trunk/dports/devel/tclreadline/Portfile (90044 => 90045)


--- trunk/dports/devel/tclreadline/Portfile	2012-02-20 05:24:49 UTC (rev 90044)
+++ trunk/dports/devel/tclreadline/Portfile	2012-02-20 06:40:34 UTC (rev 90045)
@@ -5,6 +5,8 @@
 
 name                        tclreadline
 version                     2.1.0
+revision                    1
+
 categories                  devel
 platforms                   darwin
 maintainers                 dons.net.au:darius
@@ -33,6 +35,10 @@
 
 use_autoreconf              yes
 
+# Patch readline to use malloc/free instead of
+# Tcl_Alloc/Tcl_Free. Required for threaded-enabled Tcl.
+patchfiles                  patch-tclreadline.c.diff
+
 livecheck.type              regex
 livecheck.url               http://sourceforge.net/projects/${name}/files/
 livecheck.regex             /${name}-(\[0-9.\]+)${extract.suffix}

Added: trunk/dports/devel/tclreadline/files/patch-tclreadline.c.diff (0 => 90045)


--- trunk/dports/devel/tclreadline/files/patch-tclreadline.c.diff	                        (rev 0)
+++ trunk/dports/devel/tclreadline/files/patch-tclreadline.c.diff	2012-02-20 06:40:34 UTC (rev 90045)
@@ -0,0 +1,13 @@
+--- tclreadline.c.orig	2012-02-19 22:30:13.000000000 -0800
++++ tclreadline.c	2012-02-19 22:27:00.000000000 -0800
+@@ -49,8 +49,8 @@
+ static const char* tclrl_version_str = TCLRL_VERSION_STR;
+ static const char* tclrl_patchlevel_str = TCLRL_PATCHLEVEL_STR;
+ 
+-#define MALLOC(size) Tcl_Alloc((int) size)
+-#define FREE(ptr) if (ptr) { Tcl_Free((char*) ptr); ptr = 0; }
++#define MALLOC(size) malloc((int) size)
++#define FREE(ptr) if (ptr) { free((char*) ptr); ptr = 0; }
+ 
+ enum {
+     _CMD_SET     = (1 << 0),