[90045] trunk/dports/devel/tclreadline

jberry at macports.org jberry at macports.org
Sun Feb 19 22:40:36 PST 2012


Revision: 90045
          http://trac.macports.org/changeset/90045
Author:   jberry at 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:
--------------
    trunk/dports/devel/tclreadline/Portfile

Added Paths:
-----------
    trunk/dports/devel/tclreadline/files/
    trunk/dports/devel/tclreadline/files/patch-tclreadline.c.diff

Modified: trunk/dports/devel/tclreadline/Portfile
===================================================================
--- 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
===================================================================
--- 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),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120219/a7cb86e0/attachment-0001.html>


More information about the macports-changes mailing list