vis: update from 0.6 to 0.7
This commit is contained in:
parent
803f2d90db
commit
fb69ea8dfe
@ -2,15 +2,14 @@ TERMUX_PKG_HOMEPAGE=https://www.brain-dump.org/projects/vis/
|
||||
TERMUX_PKG_DESCRIPTION="Modern, legacy free, simple yet efficient vim-like editor"
|
||||
TERMUX_PKG_LICENSE="ISC"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=0.6
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_VERSION=0.7
|
||||
TERMUX_PKG_SRCURL=https://github.com/martanne/vis/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=9ab4a3f1c5953475130b3c286af272fe5cfdf7cbb7f9fbebd31e9ea4f34e487d
|
||||
TERMUX_PKG_SHA256=359ebb12a986b2f4e2a945567ad7587eb7d354301a5050ce10d51544570635eb
|
||||
TERMUX_PKG_DEPENDS="liblua53, libtermkey, lua-lpeg, ncurses"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_pre_configure() {
|
||||
CFLAGS+=" -I$TERMUX_PREFIX/include/lua5.3"
|
||||
CFLAGS+=" -I$TERMUX_PREFIX/include -I$TERMUX_PREFIX/include/lua5.3"
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
|
@ -1,67 +0,0 @@
|
||||
diff -uNr vis-0.6/configure vis-0.6.mod/configure
|
||||
--- vis-0.6/configure 2020-06-07 13:25:20.000000000 +0300
|
||||
+++ vis-0.6.mod/configure 2020-10-01 15:02:03.158788341 +0300
|
||||
@@ -422,60 +422,9 @@
|
||||
test "$lpeg" = "yes" && lua=yes
|
||||
|
||||
if test "$lua" != "no" ; then
|
||||
-
|
||||
- printf "checking for liblua >= 5.2 ...\n"
|
||||
-
|
||||
-cat > "$tmpc" <<EOF
|
||||
-#include <lua.h>
|
||||
-#include <lualib.h>
|
||||
-#include <lauxlib.h>
|
||||
-
|
||||
-#if LUA_VERSION_NUM < 502
|
||||
-#error "Need at least Lua 5.2"
|
||||
-#endif
|
||||
-
|
||||
-int main(int argc, char *argv[]) {
|
||||
- lua_State *L = luaL_newstate();
|
||||
- luaL_openlibs(L);
|
||||
- lua_close(L);
|
||||
- return 0;
|
||||
-}
|
||||
-EOF
|
||||
-
|
||||
- for liblua in lua lua5.3 lua5.2 lua-5.3 lua-5.2 lua53 lua52; do
|
||||
- printf " checking for %s... " "$liblua"
|
||||
-
|
||||
- if test "$have_pkgconfig" = "yes" ; then
|
||||
- CFLAGS_LUA=$(pkg-config --cflags $liblua 2>/dev/null)
|
||||
- LDFLAGS_LUA=$(pkg-config --libs $liblua 2>/dev/null)
|
||||
- if test $? -eq 0 && $CC $CFLAGS $CFLAGS_LUA "$tmpc" \
|
||||
- $LDFLAGS $LDFLAGS_LUA -o "$tmpo" >/dev/null 2>&1 ; then
|
||||
- CONFIG_LUA=1
|
||||
- printf "yes\n"
|
||||
- break
|
||||
- fi
|
||||
- fi
|
||||
-
|
||||
- CFLAGS_LUA=""
|
||||
- LDFLAGS_LUA="-l$liblua -lm -ldl"
|
||||
-
|
||||
- if $CC $CFLAGS $CFLAGS_LUA "$tmpc" \
|
||||
- $LDFLAGS $LDFLAGS_LUA -o "$tmpo" >/dev/null 2>&1 ; then
|
||||
- CONFIG_LUA=1
|
||||
- printf "yes\n"
|
||||
- break
|
||||
- else
|
||||
- printf "no\n"
|
||||
- CFLAGS_LUA=""
|
||||
- LDFLAGS_LUA=""
|
||||
- fi
|
||||
- done
|
||||
-
|
||||
- test "$lua" = "yes" -a $CONFIG_LUA -ne 1 && fail "$0: cannot find liblua"
|
||||
-
|
||||
- if test $CONFIG_LUA -eq 1; then
|
||||
- CFLAGS_LUA="$CFLAGS_LUA -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL"
|
||||
- fi
|
||||
+ CONFIG_LUA=1
|
||||
+ CFLAGS_LUA="-DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL"
|
||||
+ LDFLAGS_LUA="-llua5.3 -lm"
|
||||
fi
|
||||
|
||||
CONFIG_LPEG=0
|
Loading…
Reference in New Issue
Block a user