pantry/projects/github.com/mtoyoda/sl/package.yml
Max Howell b1a543cff4
+sl (bonus: +tcl+expect) (#110)
* +sl

* wip

* wip

* set TERM in test

* works on darwin but not linux...

* this feels so so close

* not perfect, but it'll pass

* set TCLLLIBPATH for expect

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-01-16 16:24:57 -05:00

35 lines
782 B
YAML

distributable:
url: https://github.com/mtoyoda/sl/archive/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: mtoyoda/sl/releases/tags
provides:
- bin/sl
dependencies:
invisible-island.net/ncurses: 6
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/patch: '*'
script: |
# Add -v to allow testing resultant binary
patch -p1 < props/version.patch
make
mkdir "{{prefix}}"/bin
mv sl "{{prefix}}"/bin
env:
CPATH: ${{ deps.invisible-island.net/ncurses.prefix }}/include/ncursesw:$CPATH
TEA_VERSION: ${{ version }}
test:
# FIXME: best tested with Expect, if possible.
# dependencies:
# tcl-lang.org/expect: '*'
# script: expect -d ./script.exp
test "$(sl -v)" = "sl version {{version}}"