shoestrap/recipes/default/build-neovim

36 lines
893 B
Plaintext
Raw Permalink Normal View History

2015-06-03 20:53:41 +00:00
#! /bin/bash
2023-02-24 22:36:47 +00:00
set -e
2015-06-03 20:53:41 +00:00
# in common
# sudo_package 'libtool automake cmake'
case "$PACKAGE_MANAGER" in
"port")
sudo_package 'libtool autoconf automake cmake pkgconfig gettext ninja'
;;
"brew")
sudo_package 'libtool automake cmake pkg-config gettext ninja'
;;
"apt-get")
sudo_package 'libtool libtool-bin autoconf automake cmake g++ pkg-config unzip ninja-build'
2015-08-14 05:37:24 +00:00
# Ensure python support is in nvim
sudo_package 'python-dev python-pip python3-dev python3-pip'
2015-06-03 20:53:41 +00:00
;;
esac
2015-08-14 05:37:24 +00:00
sudo pip install neovim
if command_exist pip3 ; then
sudo pip3 install neovim
fi
neovim_dir="$WORKSPACE/neovim"
2015-06-03 20:53:41 +00:00
if [ ! -d "$neovim_dir" ]; then
2015-06-03 20:53:41 +00:00
log "Cloning neovim"
git clone https://github.com/neovim/neovim "$neovim_dir"
2015-06-03 20:53:41 +00:00
else
(cd "$neovim_dir" && git fetch)
2015-06-03 20:53:41 +00:00
fi
(cd "$neovim_dir" && git checkout stable && make && sudo make install)