From 1110e46006a0c8ab4c28544e96e3f76bf2d39983 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 14 Jun 2026 14:14:37 +0200 Subject: [PATCH] new(tcl-lang.org/tk/v8): Tk 8.6 GUI toolkit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Companion to tcl-lang.org/v8 (#13081). Split out so it resolves Tcl's published bottle. Depends on tcl-lang.org/v8 — merge that first. Co-Authored-By: Claude Opus 4.8 (1M context) --- projects/tcl-lang.org/tk/v8/package.yml | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 projects/tcl-lang.org/tk/v8/package.yml diff --git a/projects/tcl-lang.org/tk/v8/package.yml b/projects/tcl-lang.org/tk/v8/package.yml new file mode 100644 index 0000000000..6da702dea6 --- /dev/null +++ b/projects/tcl-lang.org/tk/v8/package.yml @@ -0,0 +1,63 @@ +# Tk 8.6 — legacy GUI toolkit. +# +# Companion to tcl-lang.org/v8. Tk 9.0 has a broken `minizip` target +# in its Makefile that fails build; 8.6.x stays buildable. Required +# by git-gui, python-tk@3.9, and other legacy Tcl GUIs. + +distributable: + url: https://downloads.sourceforge.net/project/tcl/Tcl/{{version}}/tk{{version}}-src.tar.gz + strip-components: 1 + +versions: + url: https://www.tcl-lang.org/software/tcltk/download.html + match: /tk8\.6\.\d+-src\.tar\.gz/ + strip: + - /^tk/ + - /-src\.tar\.gz/ + +platforms: + - linux/x86-64 + - linux/aarch64 + - darwin/x86-64 + - darwin/aarch64 + +dependencies: + tcl-lang.org/v8: '*' + freedesktop.org/pkg-config: '*' + linux: + x.org/x11: '*' + x.org/exts: '*' + freetype.org: '*' + +build: + working-directory: unix + darwin: + working-directory: macosx + + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} + - make install + - run: | + cd "{{prefix}}/bin" + [ ! -e wish ] && ln -sf "wish{{version.major}}.{{version.minor}}" wish || true + + env: + CPPFLAGS: -I{{deps.tcl-lang.org/v8.prefix}}/include + ARGS: + - --prefix={{prefix}} + - --exec-prefix={{prefix}} + - --with-tcl={{deps.tcl-lang.org/v8.prefix}}/lib + - --enable-shared + - --enable-threads + - --enable-64bit + darwin: + ARGS: + - --enable-aqua + +test: + - test -f "{{prefix}}/lib/libtk{{version.major}}.{{version.minor}}.dylib" -o -f "{{prefix}}/lib/libtk{{version.major}}.{{version.minor}}.so" + +provides: + - bin/wish + - bin/wish{{version.major}}.{{version.minor}}