pantry/projects/gnu.org/readline/package.yml
Jacob Heider 44dba213e5
more hardcoded versions (#1901)
* update(aspell)

* update(pango)

* update(binutils)

* update(gawk)

* 11 more
2023-05-08 11:17:44 -04:00

31 lines
719 B
YAML

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/
#TODO brew has a couple patches we should apply
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"