pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/tcl-tclcl Update to tcl-tclcl version 1.20



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee3965d76a7f
branches:  trunk
changeset: 629939:ee3965d76a7f
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Feb 01 08:00:06 2014 +0000

description:
Update to tcl-tclcl version 1.20

changes unknown.

patches for tcl8.6 from freebsd ports.

diffstat:

 devel/tcl-tclcl/Makefile                       |   5 ++---
 devel/tcl-tclcl/distinfo                       |  13 +++++++++----
 devel/tcl-tclcl/patches/patch-Tcl.cc           |  24 ++++++++++++++++++++++++
 devel/tcl-tclcl/patches/patch-Tcl2.cc          |  15 +++++++++++++++
 devel/tcl-tclcl/patches/patch-rate-variable.cc |  24 ++++++++++++++++++++++++
 devel/tcl-tclcl/patches/patch-rate-variable.h  |  15 +++++++++++++++
 devel/tcl-tclcl/patches/patch-tclcl.h          |  15 +++++++++++++++
 7 files changed, 104 insertions(+), 7 deletions(-)

diffs (148 lines):

diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/Makefile
--- a/devel/tcl-tclcl/Makefile  Sat Feb 01 05:01:57 2014 +0000
+++ b/devel/tcl-tclcl/Makefile  Sat Feb 01 08:00:06 2014 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2014/01/11 14:42:00 adam Exp $
+# $NetBSD: Makefile,v 1.27 2014/02/01 08:00:06 markd Exp $
 
-DISTNAME=      tclcl-src-1.19
+DISTNAME=      tclcl-src-1.20
 PKGNAME=       tcl-${DISTNAME:S/-src//}
-PKGREVISION=   5
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=otcl-tclcl/}
 
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/distinfo
--- a/devel/tcl-tclcl/distinfo  Sat Feb 01 05:01:57 2014 +0000
+++ b/devel/tcl-tclcl/distinfo  Sat Feb 01 08:00:06 2014 +0000
@@ -1,8 +1,13 @@
-$NetBSD: distinfo,v 1.11 2009/02/17 19:53:02 joerg Exp $
+$NetBSD: distinfo,v 1.12 2014/02/01 08:00:06 markd Exp $
 
-SHA1 (tclcl-src-1.19.tar.gz) = 4ecb4b45f439f9bf10539936a138d70dd32aa6d4
-RMD160 (tclcl-src-1.19.tar.gz) = a7bc0088e20fd91fd6a3ff1f8ff4d99649db7047
-Size (tclcl-src-1.19.tar.gz) = 174080 bytes
+SHA1 (tclcl-src-1.20.tar.gz) = 45d38a1dea2ed9bfd529776b16f5a78d584f7549
+RMD160 (tclcl-src-1.20.tar.gz) = eea14ea193669d60c8e7fab23bf2096d9feaae8a
+Size (tclcl-src-1.20.tar.gz) = 171728 bytes
+SHA1 (patch-Tcl.cc) = 0540b3ac59bb6a55c43f9ed0ef6f88032d2bc9cc
+SHA1 (patch-Tcl2.cc) = 35d14ddcdc9677a2b42df6c57868103c9adbc245
 SHA1 (patch-aa) = df5fde2f7bc352a5b108472cdc88e728d0ca3fe7
 SHA1 (patch-ab) = 8df79a3911c55aa21eaa9d4a2cbb7f82dc9870a1
 SHA1 (patch-ac) = dbbd4529799e015ffaafff449fb6140aa8f9d663
+SHA1 (patch-rate-variable.cc) = c07ee30701b82de146c49f8300644aee73e45b09
+SHA1 (patch-rate-variable.h) = c316718a950a8ac6a8bcc304dc25b48e0baad537
+SHA1 (patch-tclcl.h) = ddb7884a0106ef1c2796743ffbef13f50e5dd992
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/patches/patch-Tcl.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tcl-tclcl/patches/patch-Tcl.cc      Sat Feb 01 08:00:06 2014 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Tcl.cc,v 1.1 2014/02/01 08:00:06 markd Exp $
+
+Build with tcl8.6
+
+--- Tcl.cc.orig        2007-02-04 01:46:43.000000000 +0000
++++ Tcl.cc
+@@ -213,7 +213,7 @@ void Tcl::error(const char* s)
+       if (strlen(s) > MAX_CODE_TO_DUMP) {
+               s = "\n[code omitted because of length]\n";
+       };
+-      fprintf(stderr, "%s: \"%s\": %s\n", application_, s, tcl_->result);
++      fprintf(stderr, "%s: \"%s\": %s\n", application_, s, Tcl_GetStringResult(tcl_));
+       exit(1);
+ }
+ 
+@@ -546,7 +546,7 @@ TclClass::dispatch_instvar(ClientData /*
+                       need_parse = 1;
+                       continue;
+               };
+-              result = Tcl_SplitList(in, argv[i], &ac, (const char ***) &av);
++              result = Tcl_SplitList(in, argv[i], &ac, (CONST84 char ***) &av);
+               if (result != TCL_OK) break;
+               if (ac == 1) {
+                       varName = localName = av[0];
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/patches/patch-Tcl2.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tcl-tclcl/patches/patch-Tcl2.cc     Sat Feb 01 08:00:06 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Tcl2.cc,v 1.1 2014/02/01 08:00:06 markd Exp $
+
+Build with tcl8.6
+
+--- Tcl2.cc.orig       2005-09-01 01:54:05.000000000 +0000
++++ Tcl2.cc
+@@ -88,7 +88,7 @@ void Tcl::resultf(const char* fmt, ...)
+       va_list ap;
+       va_start(ap, fmt);
+       vsprintf(bp_, fmt, ap);
+-      tcl_->result = bp_;
++      Tcl_SetResult(tcl_, (char *)bp_, NULL);
+ }
+ 
+ void Tcl::add_errorf(const char* fmt, ...)
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/patches/patch-rate-variable.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tcl-tclcl/patches/patch-rate-variable.cc    Sat Feb 01 08:00:06 2014 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-rate-variable.cc,v 1.1 2014/02/01 08:00:06 markd Exp $
+
+Build with tcl8.6
+
+--- rate-variable.cc.orig      2005-09-07 04:53:51.000000000 +0000
++++ rate-variable.cc
+@@ -65,7 +65,7 @@ void RateVariable::init()
+       (void)new RateVariable;
+ }
+ 
+-char* RateVariable::update_rate_var(ClientData clientData, Tcl_Interp* tcl,
++const char* RateVariable::update_rate_var(ClientData clientData, Tcl_Interp* tcl,
+                                   CONST84 char* name1, 
+                                   CONST84 char* name2, int flags)
+ {
+@@ -82,7 +82,7 @@ char* RateVariable::update_rate_var(Clie
+               flags &= TCL_GLOBAL_ONLY;
+               CONST char* cv = (char *) Tcl_GetVar2(tcl, name1, name2, flags);
+               if (cv == NULL)
+-                      return (tcl->result);
++                      return (Tcl_GetStringResult(tcl));
+               int curval = atoi(cv);
+               double rate = 0.;
+               timeval tv;
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/patches/patch-rate-variable.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tcl-tclcl/patches/patch-rate-variable.h     Sat Feb 01 08:00:06 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-rate-variable.h,v 1.1 2014/02/01 08:00:06 markd Exp $
+
+Build with tcl8.6
+
+--- rate-variable.h.orig       2003-07-29 18:15:10.000000000 +0000
++++ rate-variable.h
+@@ -41,7 +41,7 @@ public:
+       RateVariable() : TclCommand("rate_variable") {}
+       static void init();
+ protected:
+-      static char* update_rate_var(ClientData, Tcl_Interp*, 
++      static const char* update_rate_var(ClientData, Tcl_Interp*, 
+                                    CONST84 char* name1,       
+                                    CONST84 char* name2, 
+                                    int flags);
diff -r 45a4503f2253 -r ee3965d76a7f devel/tcl-tclcl/patches/patch-tclcl.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tcl-tclcl/patches/patch-tclcl.h     Sat Feb 01 08:00:06 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-tclcl.h,v 1.1 2014/02/01 08:00:06 markd Exp $
+
+Build with tcl8.6
+
+--- tclcl.h.orig       2005-09-07 04:53:51.000000000 +0000
++++ tclcl.h
+@@ -85,7 +85,7 @@ class Tcl {
+       /* may not work at all! */
+       inline char* result() const { return (tcl_->result); }
+ #endif  /* TCL_MAJOR_VERSION >= 8 */
+-      inline void result(const char* p) { tcl_->result = (char*)p; }
++      inline void result(const char* p) { Tcl_SetResult (tcl_, (char *)p, NULL);}
+       void resultf(const char* fmt, ...);
+       inline void CreateCommand(const char* cmd, Tcl_CmdProc* cproc,
+                                 ClientData cd = 0,



Home | Main Index | Thread Index | Old Index