2015-06-03 20:53:41 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# 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")
|
2017-11-14 03:18:42 +00:00
|
|
|
sudo_package 'libtool libtool-bin autoconf automake cmake g++ gettext 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
|
|
|
|
|
2015-11-03 23:04:57 +00:00
|
|
|
local neovim_dir=$WORKSPACE/neovim
|
2015-06-03 20:53:41 +00:00
|
|
|
|
|
|
|
if [ ! -d $neovim_dir ]; then
|
|
|
|
log "Cloning neovim"
|
|
|
|
git clone https://github.com/neovim/neovim $neovim_dir
|
|
|
|
else
|
2017-11-14 03:18:42 +00:00
|
|
|
(cd $neovim_dir && git fetch)
|
2015-06-03 20:53:41 +00:00
|
|
|
fi
|
|
|
|
|
2017-11-14 03:18:42 +00:00
|
|
|
(cd $neovim_dir && git checkout stable && make && sudo make install)
|