pantry/projects/gnu.org/readline/package.yml

26 lines
616 B
YAML
Raw Normal View History

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:
url: https://ftp.gnu.org/gnu/readline/
match: /readline-\d+\.\d+(\.\d+)?\.tar\.gz/
strip:
- /readline-/
- /.tar.gz/
2022-08-05 04:19:01 +03:00
#TODO brew has a couple patches we should apply
dependencies:
invisible-island.net/ncurses: ^6
2022-08-05 04:19:01 +03:00
build:
script: |
./configure --prefix={{ prefix }} --with-curses
make --jobs {{ hw.concurrency }} install
test:
script: |
cc -lreadline -lncurses fixture.c
test "$(echo "Hello, World!" | ./a.out)" = "test> Hello, World!
Hello, World!\\n"