fix: Vim's old FTP server is deprecated

This commit is contained in:
Josh Megnauth 2025-03-07 15:30:49 +00:00 committed by Jeremy Soller
parent 92504e6bab
commit 174b62bc70
2 changed files with 26 additions and 39 deletions

View File

@ -1,39 +0,0 @@
VERSION=8.2
# We use `https://ftp.nluug.nl` because `ftp.vim.org` doesn't support `https`
# see https://www.vim.org/mirrors.php
TAR=https://ftp.nluug.nl/pub/vim/unix/vim-$VERSION.tar.bz2
BUILD_DEPENDS=(ncurses)
DEPENDS="terminfo"
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_build {
sysroot="$(realpath ../sysroot)"
export LDFLAGS="-L$sysroot/lib -static"
export CPPFLAGS="-I$sysroot/include"
export vim_cv_toupper_broken=no
export vim_cv_tgetent=zero
export vim_cv_terminfo=yes
export vim_cv_tty_group=world
export vim_cv_getcwd_broken=no
export vim_cv_stat_ignores_slash=yes
export vim_cv_memmove_handles_overlap=yes
./configure --build=${BUILD} --host=${HOST} --prefix=/ --with-tlib=ncurses
"$REDOX_MAKE" -j"$($NPROC)"
skip=1
}
function recipe_clean {
"$REDOX_MAKE" clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
"$REDOX_MAKE" DESTDIR="$dest" ${MAKEFLAGS} install
skip=1
}

View File

@ -0,0 +1,26 @@
[source]
tar = "https://github.com/vim/vim/archive/refs/tags/v8.2.5172.tar.gz"
blake3 = "28a58578a6655e2e45078331569d6e6c96ed05189acda34c2a784581bf614cd2"
patch = ["vim.patch"]
[build]
dependencies = ["ncurses"]
template = "custom"
script = """
export vim_cv_toupper_broken=no
export vim_cv_tgetent=zero
export vim_cv_terminfo=yes
export vim_cv_tty_group=world
export vim_cv_getcwd_broken=no
export vim_cv_stat_ignores_slash=yes
export vim_cv_memmove_handles_overlap=yes
export SRCDIR="${COOKBOOK_SOURCE}/src"
COOKBOOK_CONFIGURE_FLAGS+=(
--with-tlib=ncurses
)
pushd "${SRCDIR}"
cookbook_configure
popd
"""