termux-packages/packages/luarocks/configure.patch

41 lines
1.1 KiB
Diff
Raw Normal View History

2022-01-30 15:42:22 +01:00
--- ./configure.orig 2021-11-08 16:30:37.000000000 +0100
+++ ./configure 2022-01-30 15:09:08.440779250 +0100
@@ -379,37 +379,6 @@
}
2019-03-10 16:48:18 +01:00
done
-if [ "$lua_interp_found" != "yes" ]
-then
2019-03-10 16:48:18 +01:00
- if [ "$LUA_VERSION_SET" ]
- then
- interp="Lua $LUA_VERSION"
- else
- interp="Lua"
- fi
- if [ "$LUA_DIR_SET" ] || [ "$LUA_BINDIR_SET" ]
- then
- where="$LUA_BINDIR"
- else
- where="\$PATH"
- fi
- echo "$(RED $interp interpreter not found) in $where"
- echo "You may want to use the flags $(BOLD --with-lua), $(BOLD --with-lua-bin) and/or $(BOLD --lua-version)"
- die "Run $(BOLD ./configure --help) for details."
-fi
-
-if [ "$LUA_VERSION_SET" = "yes" ]
-then
2019-03-10 16:48:18 +01:00
- echo_n "Checking if $LUA_BINDIR/$LUA_INTERPRETER is Lua version $LUA_VERSION... "
- if detect_lua_version "$LUA_BINDIR/$LUA_INTERPRETER"
- then
- echo "yes"
- else
- echo "no"
2019-03-10 16:48:18 +01:00
- die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-version. See --help."
- fi
-fi
-
2019-03-10 16:48:18 +01:00
# ----------------------------------------
# Additional checks
# ----------------------------------------