mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-21 18:06:29 +00:00
Neovim recipe
This commit is contained in:
parent
b0234e7d76
commit
f4d7fa908e
11
my-cookbook
11
my-cookbook
@ -30,6 +30,12 @@ if [ "$PACKAGE_MANAGER" == 'apt-get' ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
install_neovim=false
|
||||
is_installed "neovim"
|
||||
if prompt_yn "Install Neovim?" ; then
|
||||
install_neovim=true
|
||||
fi
|
||||
|
||||
install_vim_settings=false
|
||||
if ! is_installed "vim-settings" || prompt_yn "Reinstall vim-settings?" ; then
|
||||
install_vim_settings=true
|
||||
@ -74,6 +80,11 @@ if $install_vim_src ; then
|
||||
set_installed "vim-from-source"
|
||||
fi
|
||||
|
||||
if $install_neovim ; then
|
||||
recipe 'neovim'
|
||||
set_installed "neovim"
|
||||
fi
|
||||
|
||||
if $install_vim_settings ; then
|
||||
recipe 'vim-settings'
|
||||
set_installed 'vim-settings'
|
||||
|
27
recipes/neovim
Normal file
27
recipes/neovim
Normal 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)
|
Loading…
Reference in New Issue
Block a user