Browse Source

neovim: Use a host-built nvim when needed

android-5
Fredrik Fornwall 10 years ago
parent
commit
5c27759db4
  1. 8
      packages/neovim/build.sh
  2. 2
      packages/neovim/cmake-GenerateHelptags.cmake.patch
  3. 2
      packages/neovim/runtime-CMakeLists.txt.patch

8
packages/neovim/build.sh

@ -5,6 +5,14 @@ TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/master.zip
TERMUX_PKG_NO_SRC_CACHE=yes
TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libluajit, libvterm, libtermkey"
TERMUX_PKG_FOLDERNAME="neovim-master"
TERMUX_PKG_HOSTBUILD=true
termux_step_host_build () {
cd $TERMUX_PKG_SRCDIR
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$TERMUX_PKG_HOSTBUILD_DIR" install
make distclean
rm -Rf build/
}
termux_step_configure () {
# Install dependencies on ubuntu:

2
packages/neovim/cmake-GenerateHelptags.cmake.patch

@ -6,7 +6,7 @@ diff -u -r ../neovim-master/cmake/GenerateHelptags.cmake.in ./cmake/GenerateHelp
file(WRITE ${EMPTY_FILE} "")
execute_process(
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/bin/nvim
+ COMMAND "vim"
+ COMMAND "${PROJECT_BINARY_DIR}/../host-build/bin/nvim"
-u NONE
-esX
-c "helptags ++t ."

2
packages/neovim/runtime-CMakeLists.txt.patch

@ -6,7 +6,7 @@ diff -u -r ../neovim-master/runtime/CMakeLists.txt ./runtime/CMakeLists.txt
COMMAND ${CMAKE_COMMAND} -E copy_directory
${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc
- COMMAND "${PROJECT_BINARY_DIR}/bin/nvim"
+ COMMAND vim
+ COMMAND "${PROJECT_BINARY_DIR}/../host-build/bin/nvim"
-u NONE
-i NONE
-esX

Loading…
Cancel
Save