On 05/25 07:13, Jeremy Evans wrote: > On 05/25 05:18, Stuart Cassoff wrote: > > Have you tried this with Tcl/Tk 8.6? > > I think it's a good idea for ports to move to using 8.6 if possible. > > Also, you might want to use the Tk port module. > > ruby-tk is still designed for Tk 8.5. See > https://github.com/ruby/tk/commit/247f01adf981abe11283dc24cc7afd2173e62108 > Some parts work with Tk 8.6, but not all. So I think this should stay on > 8.5. I'll look into using the Tk port module.
Here's a version that uses the x11/tk module. OK? Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/x11/ruby-tk/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 11 Nov 2020 02:45:18 -0000 1.6 +++ Makefile 25 May 2021 15:46:47 -0000 @@ -2,7 +2,7 @@ COMMENT= ruby graphical tooklit using Tk -DISTNAME= tk-0.3.0 +DISTNAME= tk-0.4.0 CATEGORIES= x11 HOMEPAGE= https://github.com/ruby/tk @@ -12,18 +12,18 @@ MAINTAINER= Jeremy Evans <jeremy@openbs # MIT PERMIT_PACKAGE= Yes -MODULES= lang/ruby +MODULES= lang/ruby x11/tk CONFIGURE_STYLE= ruby gem ext MODRUBY_TEST= rake -CONFIGURE_ARGS = --with-tcl-include=${LOCALBASE}/include/tcl8.5 \ - --with-tk-include=${LOCALBASE}/include/tk8.5 \ - --with-tcllib=tcl85 \ - --with-tklib=tk85 \ +CONFIGURE_ARGS = --with-tcl-include=${MODTCL_INCDIR} \ + --with-tk-include=${MODTK_INCDIR} \ + --with-tcllib=${MODTCL_LIB} \ + --with-tklib=${MODTK_LIB} \ --with-X11-dir=${X11BASE} -WANTLIB = X11 tcl85 tk85 -LIB_DEPENDS = tk->=8.5,<8.6:x11/tk/8.5 +WANTLIB = X11 ${MODTCL_LIB} ${MODTK_LIB} +LIB_DEPENDS = ${MODTK_LIB_DEPENDS} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/x11/ruby-tk/distinfo,v retrieving revision 1.2 diff -u -p -r1.2 distinfo --- distinfo 11 Nov 2020 02:45:18 -0000 1.2 +++ distinfo 25 May 2021 15:46:47 -0000 @@ -1,2 +1,2 @@ -SHA256 (tk-0.3.0.gem) = w840rW0detKDLvVPeHTuh+FDqE8JAE3nPMDB6MQaRBI= -SIZE (tk-0.3.0.gem) = 1721856 +SHA256 (tk-0.4.0.gem) = ar/8VrYKR+g6+acG0b9doQzmmOgSGfgdq24tTYZtt6o= +SIZE (tk-0.4.0.gem) = 1721856
