much simpler fix


include FPATH


clean up
This commit is contained in:
Jacob Heider 2023-06-18 16:32:25 -04:00 committed by Jacob Heider
parent edc826005d
commit c577e315c9

View file

@ -17,19 +17,25 @@ dependencies:
invisible-island.net/ncurses: '*'
pcre.org: '*'
runtime:
env:
FPATH: ${{prefix}}/functions:$FPATH
MODULE_PATH: ${{prefix}}/lib/zsh/{{version.marketing}}
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
SHARE="{{tea.prefix}}/zsh.sourceforge.io"
./configure $ARGS \
--enable-site-fndir="$SHARE/share/zsh/site-functions" \
--enable-site-scriptdir="$SHARE/share/zsh/site-scripts"
make --jobs {{ hw.concurrency }} install
script:
# We need to be able to set MODULE_PATH to the correct location, so we have
# to break a small piece of zsh security
- run: |
sed -i.bak -e 's/^\(IPDEF8("MODULE_PATH",.*\)PM_DONTIMPORT|\(.*\)$/\1\2/' params.c
rm params.c.bak
working-directory: Src
- ./configure $ARGS
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix={{prefix}}
@ -46,6 +52,7 @@ build:
- --with-tcsetpgrp
- DL_EXT=bundle
test: |
test "$(zsh -c echo\ fancy-a-cuppa)" = 'fancy-a-cuppa'
zsh -c "printf -v hello -- '%s'"
test:
- test "$(zsh -c echo\ fancy-a-cuppa)" = 'fancy-a-cuppa'
- zsh -c "printf -v hello -- '%s'"
- zsh -c "autoload -Uz compinit && compinit"