2023-01-17 00:24:57 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://cytranet.dl.sourceforge.net/project/expect/Expect/{{ version.raw }}/expect{{ version.raw }}.tar.gz
|
2023-01-17 00:24:57 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://sourceforge.net/projects/expect/files/Expect/
|
|
|
|
match: /Expect\/\d+(\.\d+)+\//
|
|
|
|
strip:
|
|
|
|
- /Expect\//
|
|
|
|
- /\//
|
2023-01-17 00:24:57 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
tcl.tk/tcl: ^8
|
|
|
|
|
|
|
|
interprets:
|
|
|
|
extensions: exp
|
|
|
|
args: [expect, -f]
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
TCLLIBPATH: ${{prefix}}/lib
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/automake: '*'
|
|
|
|
gnu.org/autoconf: '*'
|
|
|
|
gnu.org/patch: '*'
|
|
|
|
script: |
|
|
|
|
# Config scripts are from 2003
|
|
|
|
autoreconf --force --install --verbose
|
|
|
|
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
|
|
|
|
cd {{prefix}}/lib
|
2023-05-01 21:18:57 +03:00
|
|
|
mv expect{{version.raw}}/* .
|
|
|
|
rmdir expect{{version.raw}}
|
2023-01-17 00:24:57 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix={{ prefix }}
|
|
|
|
- --exec-prefix={{ prefix }}
|
|
|
|
- --with-tcl={{ deps.tcl.tk/tcl.prefix }}/lib
|
|
|
|
darwin:
|
|
|
|
# Works around Apple Clang 12+ "bug"
|
|
|
|
# https://core.tcl-lang.org/expect/tktview/0d5b33c00e5b4bbedb835498b0360d7115e832a0
|
|
|
|
CFLAGS: $CFLAGS -Wno-implicit-function-declaration
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: test "$(echo 'Hello, World!' | timed-read 1)" = 'Hello, World!'
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/autoexpect
|
|
|
|
- bin/autopasswd
|
|
|
|
- bin/cryptdir
|
|
|
|
- bin/decryptdir
|
|
|
|
- bin/dislocate
|
|
|
|
- bin/expect
|
|
|
|
- bin/ftp-rfc
|
|
|
|
- bin/kibitz
|
|
|
|
- bin/lpunlock
|
|
|
|
- bin/mkpasswd
|
|
|
|
- bin/multixterm
|
|
|
|
- bin/passmass
|
|
|
|
- bin/rftp
|
|
|
|
- bin/rlogin-cwd
|
|
|
|
- bin/timed-read
|
|
|
|
- bin/timed-run
|
|
|
|
- bin/tknewsbiff
|
|
|
|
- bin/tkpasswd
|
|
|
|
- bin/unbuffer
|
|
|
|
- bin/weather
|
|
|
|
- bin/xkibitz
|
|
|
|
- bin/xpstat
|