main/vim: factor out $_luaver

so the lua version does not need to be repeated in multiple places
This commit is contained in:
Celeste 2025-07-28 15:58:33 +00:00
parent c3d484257f
commit 1ddcef60e2

View File

@ -11,11 +11,12 @@ url="https://www.vim.org/"
arch="all" arch="all"
license="Vim" license="Vim"
options="!check" # some tests are failing options="!check" # some tests are failing
_luaver=5.4
makedepends=" makedepends="
gtk+3.0-dev gtk+3.0-dev
libx11-dev libx11-dev
libxt-dev libxt-dev
lua5.4-dev lua$_luaver-dev
ncurses-dev ncurses-dev
perl-dev perl-dev
python3-dev python3-dev
@ -217,7 +218,8 @@ prepare() {
} }
_build() { _build() {
vi_cv_version_plain_lua=5.4 ./configure \ vi_cv_version_plain_lua=$_luaver \
./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
--prefix=/usr \ --prefix=/usr \
@ -229,7 +231,7 @@ _build() {
--disable-nls \ --disable-nls \
--enable-acl \ --enable-acl \
--enable-multibyte \ --enable-multibyte \
--with-lua-prefix=/usr/lua5.4 \ --with-lua-prefix=/usr/lua$_luaver \
--with-compiledby="Alpine Linux" \ --with-compiledby="Alpine Linux" \
"$@" "$@"
make make