pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/editors/vim-share



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Jun 30 18:49:56 UTC 2020

Modified Files:
        pkgsrc/editors/vim-share: options.mk

Log Message:
vim-share: Fix lua option.

Instead of the first unversioned lua interpreter being detected
(on NetBSD usually /usr/bin/lua), make sure the correct version
as selected by pkgsrc infrastructure gets used.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/editors/vim-share/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/vim-share/options.mk
diff -u pkgsrc/editors/vim-share/options.mk:1.8 pkgsrc/editors/vim-share/options.mk:1.9
--- pkgsrc/editors/vim-share/options.mk:1.8     Sat Nov  2 19:57:01 2019
+++ pkgsrc/editors/vim-share/options.mk Tue Jun 30 18:49:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2019/11/02 19:57:01 tnn Exp $
+# $NetBSD: options.mk,v 1.9 2020/06/30 18:49:56 nia Exp $
 
 PKG_SUPPORTED_OPTIONS+=        ruby python perl lua luajit
 PKG_OPTIONS_VAR=       PKG_OPTIONS.vim
@@ -29,11 +29,19 @@ CONFIGURE_ENV+=             vi_cv_path_perl=${PERL5
 .endif
 
 .if !empty(PKG_OPTIONS:Mlua)
+LUA_VERSIONS_ACCEPTED= 53 52 51
 .include "../../lang/lua/buildlink3.mk"
-CONFIGURE_ARGS+=   --enable-luainterp
+CONFIGURE_ARGS+=       --enable-luainterp
+CONFIGURE_ARGS+=       --with-lua-prefix=${BUILDLINK_PREFIX.lua}
+CONFIGURE_ENV+=                vi_cv_path_plain_lua=${LUA_INTERPRETER}
+# pkgsrc has include/lua-5.x instead of include/lua5.x
+SUBST_CLASSES+=                lua
+SUBST_FILES.lua=       auto/configure
+SUBST_STAGE.lua=       pre-configure
+SUBST_SED.lua=         -e "s,include/lua,include/lua-,g"
 .endif
 
 .if !empty(PKG_OPTIONS:Mluajit)
 .include "../../lang/LuaJIT2/buildlink3.mk"
-CONFIGURE_ARGS+=   --enable-luainterp --with-luajit
+CONFIGURE_ARGS+=       --enable-luainterp --with-luajit
 .endif



Home | Main Index | Thread Index | Old Index