From 03c168e941bb285f3c9cb7a7e5fdf729759502fe Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 23 Dec 2024 22:01:48 -0500 Subject: [PATCH] fix(tcl) closes #8226 --- projects/tcl.tk/tcl/package.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/projects/tcl.tk/tcl/package.yml b/projects/tcl.tk/tcl/package.yml index 29003206f5..883ec7f354 100644 --- a/projects/tcl.tk/tcl/package.yml +++ b/projects/tcl.tk/tcl/package.yml @@ -11,18 +11,24 @@ versions: build: working-directory: unix - script: | - ./configure --prefix={{ prefix }} - make --jobs {{ hw.concurrency }} - make install - make install-private-headers + script: + - ./configure --prefix={{ prefix }} + - make --jobs {{ hw.concurrency }} + - make install + - make install-private-headers - cd {{prefix}}/bin - ln -s tclsh{{version.major}}.{{version.minor}} tclsh + # fix-machos breaks tclsh, but we need to fix the path to libtcl + - run: install_name_tool -change {{prefix}}/lib/libtcl{{version.major}}.{{version.minor}}.dylib @loader_path/../lib/libtcl{{version.major}}.{{version.minor}}.dylib {{prefix}}/bin/tclsh{{version.major}}.{{version.minor}} + if: darwin + + - run: ln -s tclsh{{version.major}}.{{version.minor}} tclsh + working-directory: ${{prefix}}/bin test: make test + skip: fix-machos test: - script: test "$(echo 'puts "Hello, World!";' | tclsh)" = 'Hello, World!' + - echo 'puts "Hello, World!";' | tclsh + - test "$(echo 'puts "Hello, World!";' | tclsh)" = 'Hello, World!' provides: - bin/sqlite3_analyzer