pantry/projects/gnu.org/readline/package.yml
Max Howell 2593cefed7
mk ncurses install its headers namespaced and not (#536)
* mk ncurses install its headers namespaced and not
* adds test for readline
2023-03-10 10:51:03 -05:00

27 lines
605 B
YAML

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
- 8.2
- 8.1
dependencies:
invisible-island.net/ncurses: ^6
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix={{ prefix }} --with-curses
make --jobs {{ hw.concurrency }} install
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc -lreadline -lncurses fixture.c
test "$(echo "Hello, World!" | ./a.out)" = "test> Hello, World!
Hello, World!\\n"