shoestrap/recipes/default/neovim

35 lines
858 B
Plaintext
Raw Normal View History

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")
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
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
(cd $neovim_dir && git pull)
fi
(cd $neovim_dir && make && sudo make install)