mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
fix: Vim's old FTP server is deprecated
This commit is contained in:
parent
92504e6bab
commit
174b62bc70
@ -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
|
||||
}
|
||||
26
recipes/tools/vim/recipe.toml
Normal file
26
recipes/tools/vim/recipe.toml
Normal 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
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user