mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
2e88145e8c
linux doesn't show the ncurses linkage
34 lines
912 B
YAML
34 lines
912 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:
|
|
script:
|
|
- ./configure --prefix={{ prefix }} --with-curses
|
|
- make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
linux:
|
|
# otherwise it weirdly omits the linkage
|
|
# https://stackoverflow.com/a/65623630
|
|
LDFLAGS: '$LDFLAGS -lncursesw'
|
|
|
|
test:
|
|
- run: ldd {{prefix}}/lib/libreadline.so | grep ncurses
|
|
if: linux
|
|
- run: otool -L {{prefix}}/lib/libreadline.dylib | grep ncurses
|
|
if: darwin
|
|
- cc -lreadline -lncurses fixture.c
|
|
- |
|
|
test "$(echo "Hello, World!" | ./a.out)" = "test> Hello, World!
|
|
Hello, World!\\n"
|