Revision: 120741 https://trac.macports.org/changeset/120741 Author: sean@macports.org Date: 2014-06-05 20:54:44 -0700 (Thu, 05 Jun 2014) Log Message: ----------- tix: add new port Added Paths: ----------- trunk/dports/x11/tix/ trunk/dports/x11/tix/Portfile trunk/dports/x11/tix/files/ trunk/dports/x11/tix/files/patch-generic-tixGrSort.c.diff Added: trunk/dports/x11/tix/Portfile =================================================================== --- trunk/dports/x11/tix/Portfile (rev 0) +++ trunk/dports/x11/tix/Portfile 2014-06-06 03:54:44 UTC (rev 120741) @@ -0,0 +1,66 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup active_variants 1.1 + +name tix +version 8.4.3 +platforms darwin +categories x11 +license BSD +maintainers nomaintainer +description Tk Interface eXtension +long_description Tix, the Tk Interface eXtension, is a powerful set of \ + user interface components that expands the capabilities \ + of your Tcl/Tk and Python applications. Using Tix together \ + with Tk will greatly enhance the appearance and functionality \ + of your application. + +homepage http://tix.sourceforge.net/ + +# Set tclv and md5 checksum to the current MacPorts Tcl port version, though +# port doesn't break if they aren't in sync. +set tkv 8.6.1 +master_sites sourceforge:project/tix/tix/${version}:tix \ + sourceforge:project/tcl/Tcl/${tkv}:tcl + +dist_subdir tcltk +distname Tix${version}-src + +distfiles ${distname}.tar.gz:tix \ + tk${tkv}-src.tar.gz:tcl \ + tcl${tkv}-src.tar.gz:tcl + +worksrcdir Tix${version} + +checksums Tix8.4.3-src.tar.gz \ + rmd160 99249c4d7a19fcb8c27f11ab1b3ef6102911409d \ + sha256 562f040ff7657e10b5cffc2c41935f1a53c6402eb3d5f3189113d734fd6c03cb \ + tk8.6.1-src.tar.gz \ + rmd160 9176fd2c5e7d36c84141333939e85614d3ba2e11 \ + sha256 b691a2e84907392918665fe03a0deb913663a026bed2162185b4a9a14898162c \ + tcl8.6.1-src.tar.gz \ + rmd160 fbb181d26bb28fe9413bc2e07f333571b8e7e190 \ + sha256 16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514 + +depends_lib port:tcl port:tk +patch.pre_args -p1 +patchfiles patch-generic-tixGrSort.c.diff + +# tix depends on x11 windowing +require_active_variants tk x11 + +configure.args --mandir=${prefix}/share/man \ + --with-tcl=${prefix}/lib \ + --with-tk=${prefix}/lib +configure.cppflags-append \ + -I${workpath}/tcl${tkv}/generic \ + -I${workpath}/tcl${tkv}/unix \ + -I${workpath}/tk${tkv}/generic \ + -I${workpath}/tk${tkv}/unix +configure.ldflags-append \ + -ltclstub8.6 + +test.run yes +test.target test Added: trunk/dports/x11/tix/files/patch-generic-tixGrSort.c.diff =================================================================== --- trunk/dports/x11/tix/files/patch-generic-tixGrSort.c.diff (rev 0) +++ trunk/dports/x11/tix/files/patch-generic-tixGrSort.c.diff 2014-06-06 03:54:44 UTC (rev 120741) @@ -0,0 +1,18 @@ + generic/tixGrSort.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/generic/tixGrSort.c b/generic/tixGrSort.c +index 7dee30f..26ec054 100644 +--- a/generic/tixGrSort.c ++++ b/generic/tixGrSort.c +@@ -447,8 +447,8 @@ SortCompareProc(first, second) + * Parse the result of the command. + */ + +- order = strtol(sortInterp->result, &end, 0); +- if ((end == sortInterp->result) || (*end != 0)) { ++ order = strtol(Tcl_GetStringResult(sortInterp), &end, 0); ++ if ((end == Tcl_GetStringResult(sortInterp)) || (*end != 0)) { + Tcl_ResetResult(sortInterp); + Tcl_AppendResult(sortInterp, + "comparison command returned non-numeric result",