2022-08-05 04:19:01 +03:00
|
|
|
distributable:
|
|
|
|
url: https://ftp.gnu.org/gnu/readline/readline-{{ version.raw }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
#TODO brew has a couple patches we should apply
|
2023-03-10 18:51:03 +03:00
|
|
|
- 8.2
|
2022-08-05 04:19:01 +03:00
|
|
|
- 8.1
|
|
|
|
|
|
|
|
dependencies:
|
2023-03-10 18:51:03 +03:00
|
|
|
invisible-island.net/ncurses: ^6
|
2022-08-05 04:19:01 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script: |
|
|
|
|
./configure --prefix={{ prefix }} --with-curses
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
test:
|
2023-03-10 18:51:03 +03:00
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
script: |
|
|
|
|
cc -lreadline -lncurses fixture.c
|
|
|
|
test "$(echo "Hello, World!" | ./a.out)" = "test> Hello, World!
|
|
|
|
Hello, World!\\n"
|