2023-02-11 03:07:29 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/vim/vim/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
# FIXME: so slow. 16k tags.
|
|
|
|
github: vim/vim/tags
|
2023-02-11 03:07:29 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/vim
|
|
|
|
- bin/vi
|
|
|
|
|
|
|
|
dependencies:
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: ~3.11
|
2023-02-11 03:07:29 +03:00
|
|
|
lua.org: '>=5.4'
|
|
|
|
invisible-island.net/ncurses: '>=6.3'
|
|
|
|
perl.org: '>=5.36'
|
|
|
|
ruby-lang.org: '>=3.2'
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/make: ^4.3
|
|
|
|
script: |
|
|
|
|
./configure \
|
|
|
|
--prefix={{prefix}} \
|
|
|
|
--enable-multibyte \
|
|
|
|
--with-tlib=ncurses \
|
|
|
|
--with-compiledby=tea.xyz \
|
|
|
|
--enable-cscope \
|
|
|
|
--enable-terminal \
|
|
|
|
--enable-perlinterp \
|
|
|
|
--enable-rubyinterp \
|
|
|
|
--enable-python3interp \
|
|
|
|
--disable-gui \
|
|
|
|
--without-x \
|
|
|
|
--enable-luainterp
|
|
|
|
make
|
|
|
|
make install prefix={{prefix}}
|
2023-04-16 23:16:06 +03:00
|
|
|
|
|
|
|
cd {{prefix}}/bin
|
|
|
|
ln -s vim vi
|
2023-02-11 03:07:29 +03:00
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
vim --version
|
|
|
|
vi --version
|
|
|
|
echo "hello world" >> ./test.txt
|
|
|
|
echo ":s/hello/test/" >> ./commands.vim
|
|
|
|
echo ":wq" >> ./commands.vim
|
|
|
|
touch $HOME/.exrc
|
|
|
|
vim -T dumb -S ./commands.vim ./test.txt
|
|
|
|
test "$(cat ./test.txt)" = "test world"
|