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