ports: Update vim 9.1.1485->9.2.0538

This commit is contained in:
2026-07-05 00:26:31 +03:00
parent 05ee0a7f49
commit fde0eb0964

View File

@@ -1,35 +1,21 @@
#!/bin/bash ../install.sh #!/bin/bash ../install.sh
NAME='vim' NAME='vim'
VERSION='9.1.1485' VERSION='9.2.0538'
DOWNLOAD_URL="https://github.com/vim/vim/archive/refs/tags/v$VERSION.tar.gz#89b48e30c9e97bb819ffed752c8a1727b70bed79890bffe9da5f7c2170487dd2" DOWNLOAD_URL="https://github.com/vim/vim/archive/refs/tags/v$VERSION.tar.gz#8a1095e157dddb4673aa7b01233f02c4db109b1e5fe562d244cb2caed846f957"
DEPENDENCIES=('ncurses') DEPENDENCIES=('ncurses')
CONFIGURE_OPTIONS=( CONFIGURE_OPTIONS=(
'--with-tlib=ncurses' '--with-tlib=ncurses'
'--disable-nls' '--disable-nls'
'--disable-sysmouse'
'--disable-channel'
'vim_cv_toupper_broken=no' 'vim_cv_toupper_broken=no'
'vim_cv_terminfo=yes' 'vim_cv_terminfo=yes'
'vim_cv_tgetent=yes' 'vim_cv_tgetent=yes'
'vim_cv_getcwd_broken=no' 'vim_cv_getcwd_broken=no'
'vim_cv_timer_create_works=no'
'vim_cv_stat_ignores_slash=yes' 'vim_cv_stat_ignores_slash=yes'
'vim_cv_memmove_handles_overlap=yes' 'vim_cv_memmove_handles_overlap=yes'
'CFLAGS=-Wno-incompatible-pointer-types'
) )
post_configure() {
# vim doesn't do link tests, so it thinks these exists
config_undefines=(
'HAVE_SHM_OPEN'
'HAVE_TIMER_CREATE'
)
for undefine in "${config_undefines[@]}"; do
sed -i "s|^#define $undefine 1$|/\* #undef $undefine \*/|" src/auto/config.h
done
}
post_install() { post_install() {
shellrc="$BANAN_SYSROOT/home/user/.shellrc" shellrc="$BANAN_SYSROOT/home/user/.shellrc"
grep -q 'export EDITOR=' "$shellrc" || echo 'export EDITOR=vim' >> "$shellrc" grep -q 'export EDITOR=' "$shellrc" || echo 'export EDITOR=vim' >> "$shellrc"