Neovim recipe

This commit is contained in:
ViViDboarder 2015-06-03 13:53:41 -07:00
parent b0234e7d76
commit f4d7fa908e
2 changed files with 38 additions and 0 deletions

View File

@ -30,6 +30,12 @@ if [ "$PACKAGE_MANAGER" == 'apt-get' ]; then
fi fi
fi fi
install_neovim=false
is_installed "neovim"
if prompt_yn "Install Neovim?" ; then
install_neovim=true
fi
install_vim_settings=false install_vim_settings=false
if ! is_installed "vim-settings" || prompt_yn "Reinstall vim-settings?" ; then if ! is_installed "vim-settings" || prompt_yn "Reinstall vim-settings?" ; then
install_vim_settings=true install_vim_settings=true
@ -74,6 +80,11 @@ if $install_vim_src ; then
set_installed "vim-from-source" set_installed "vim-from-source"
fi fi
if $install_neovim ; then
recipe 'neovim'
set_installed "neovim"
fi
if $install_vim_settings ; then if $install_vim_settings ; then
recipe 'vim-settings' recipe 'vim-settings'
set_installed 'vim-settings' set_installed 'vim-settings'

27
recipes/neovim Normal file
View File

@ -0,0 +1,27 @@
#! /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'
;;
esac
neovim_dir=$WORKSPACE/neovim
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)