Skip to content

Commit

Permalink
fix(tcl)
Browse files Browse the repository at this point in the history
 closes #8226
  • Loading branch information
jhheider committed Dec 24, 2024
1 parent 8520516 commit 0a4ba9a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions projects/tcl.tk/tcl/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4ba9a

Please sign in to comment.