2023-01-01 00:55:09 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/fish-shell/fish-shell/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-04-10 16:06:40 +03:00
|
|
|
github: fish-shell/fish-shell/releases/tags
|
2023-01-01 00:55:09 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/gettext: '*'
|
|
|
|
invisible-island.net/ncurses: '>=6.0'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
cmake.org: '>=3.5'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
2023-04-15 11:12:12 +03:00
|
|
|
gnu.org/patch: '*'
|
2023-01-01 00:55:09 +03:00
|
|
|
script: |
|
2023-01-31 07:05:29 +03:00
|
|
|
# By default, fish's fish_command_not_found handler will redirect to stderr,
|
|
|
|
# return an exit code of 127. Always. This patch fixes it. Hopefully, it will
|
|
|
|
# be merged upstream soon. https://github.com/fish-shell/fish-shell/pull/9517
|
|
|
|
|
2023-04-15 11:12:12 +03:00
|
|
|
patch -p1 <props/command_not_found_handler.diff
|
2023-01-31 07:05:29 +03:00
|
|
|
|
2023-01-04 01:57:10 +03:00
|
|
|
echo {{version}} >version
|
|
|
|
|
2023-01-01 00:55:09 +03:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-01-16 23:43:45 +03:00
|
|
|
|
2023-01-01 00:55:09 +03:00
|
|
|
cmake .. $ARGS
|
|
|
|
make install
|
2023-01-04 01:57:10 +03:00
|
|
|
|
|
|
|
cd {{prefix}}/share/fish
|
|
|
|
sed -i.bak -e "s| $TEA_PREFIX/| (tea --prefix)/|g" __fish_build_paths.fish
|
|
|
|
rm __fish_build_paths.fish.bak
|
2023-01-01 00:55:09 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
|
|
|
|
|
|
|
test:
|
2023-04-10 16:06:40 +03:00
|
|
|
dependencies:
|
|
|
|
tea.xyz: '*'
|
2023-01-01 00:55:09 +03:00
|
|
|
script:
|
2023-01-31 07:05:29 +03:00
|
|
|
fish $FIXTURE | grep "variable1variable2variable3variable4variable5variable6variable7variable8variable9variable10go version go"
|
2023-01-01 00:55:09 +03:00
|
|
|
fixture: |
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
set -lx V variable
|
|
|
|
for x in (seq 1 10)
|
|
|
|
echo -n $V$x
|
|
|
|
end
|
|
|
|
|
2023-01-31 07:05:29 +03:00
|
|
|
begin
|
2023-04-10 16:06:40 +03:00
|
|
|
if which go
|
|
|
|
exit 2
|
|
|
|
end
|
|
|
|
|
|
|
|
tea --magic=fish | source
|
2023-01-31 07:05:29 +03:00
|
|
|
go version
|
2023-04-10 16:06:40 +03:00
|
|
|
|
|
|
|
#FIXME https://github.com/teaxyz/pantry/issues/861
|
|
|
|
# go version > go.out
|
|
|
|
|
|
|
|
# if ! grep go go.out
|
|
|
|
# exit 3
|
|
|
|
# end
|
2023-01-31 07:05:29 +03:00
|
|
|
end
|
|
|
|
|
2023-01-01 00:55:09 +03:00
|
|
|
provides:
|
|
|
|
- bin/fish
|
|
|
|
- bin/fish_indent
|
|
|
|
- bin/fish_key_reader
|