Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tcl) #8268

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading