2013-08-08 03:23:13 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
sudo_package_update
|
|
|
|
|
2019-04-11 20:23:36 +00:00
|
|
|
# This now installs a lot of language specific stuff from python, gradle, to go.
|
2019-04-08 22:23:56 +00:00
|
|
|
# Should consider pulling these into different recipes that are dependent on the environment
|
|
|
|
# that I wish to bootstrap. If not a dev environment, I can trim out some of this.
|
|
|
|
|
2019-11-13 01:59:41 +00:00
|
|
|
# Packages that are pretty much the same treatment or names in all systems
|
|
|
|
packages="tmux htop curl wget mercurial ctags tig pv jq fish mosh bash-completion doxygen shellcheck"
|
|
|
|
|
2013-08-08 03:23:13 +00:00
|
|
|
# Manager specific packages
|
|
|
|
case "$PACKAGE_MANAGER" in
|
|
|
|
"port")
|
2017-10-13 18:49:21 +00:00
|
|
|
# Non-standard packages
|
2019-04-10 00:34:41 +00:00
|
|
|
packages="$packages the_silver_searcher md5sha1sum gradle go bash apache-ant"
|
2017-10-13 18:49:21 +00:00
|
|
|
# Python packages
|
2019-04-10 00:34:41 +00:00
|
|
|
packages="$packages python27 py27-ipython py27-pip py27-six py27-tox py27-flake8 py27-virtualenv"
|
|
|
|
packages="$packages python37 py37-ipython py37-pip py37-six py37-tox py37-flake8 py37-virtualenv"
|
|
|
|
# Macvim with ruby and python support
|
|
|
|
# sudo_package 'macvim +ruby +python27'
|
|
|
|
# Vim with ruby and python support
|
|
|
|
packages="$packages vim +ruby +python27 +python37"
|
|
|
|
# Newer version of git with completion
|
|
|
|
packages="$packages git +bash_completion"
|
|
|
|
# Neovim with python plugins
|
|
|
|
packages="$packages neovim py-neovim py27-neovim py37-neovim"
|
2019-11-13 01:59:41 +00:00
|
|
|
|
|
|
|
# Install packages
|
|
|
|
sudo_package "$packages"
|
|
|
|
|
|
|
|
# Select defaults
|
2017-10-13 18:49:21 +00:00
|
|
|
sudo port select --set python python27
|
2017-11-29 22:05:13 +00:00
|
|
|
sudo port select --set python2 python27
|
2019-04-08 17:59:14 +00:00
|
|
|
sudo port select --set python3 python37
|
2017-11-29 22:05:13 +00:00
|
|
|
sudo port select --set ipython py27-ipython
|
|
|
|
sudo port select --set ipython2 py27-ipython
|
2019-04-08 17:59:14 +00:00
|
|
|
sudo port select --set ipython3 py37-ipython
|
2017-10-13 18:49:21 +00:00
|
|
|
sudo port select --set pip pip27
|
2019-11-13 01:59:41 +00:00
|
|
|
sudo port select --set pip2 pip27
|
|
|
|
sudo port select --set pip3 pip37
|
|
|
|
# Use py3 versions for utilities
|
|
|
|
sudo port select --set tox tox37
|
|
|
|
sudo port select --set flake8 flake8-37
|
|
|
|
sudo port select --set virtualenv virtualenv37
|
2013-08-08 03:23:13 +00:00
|
|
|
;;
|
|
|
|
"apt-get")
|
|
|
|
if [ -n "$(apt-cache policy silversearcher-ag)" ] ; then
|
2019-04-10 00:34:41 +00:00
|
|
|
packages="$packages silversearcher-ag"
|
2013-08-08 03:23:13 +00:00
|
|
|
fi
|
2019-04-10 00:34:41 +00:00
|
|
|
packages="$packages build-essential vim golang-go"
|
|
|
|
# Neovim with python plugins
|
|
|
|
packages="$packages neovim python-neovim python3-neovim"
|
|
|
|
# Python packages
|
|
|
|
packages="$packages python python-ipython python-pip python-six python-tox python-flake8 python-virtualenv"
|
|
|
|
packages="$packages python3 python3-ipython python3-pip python3-six python3-flake8 python3-virtualenv python3-venv"
|
2019-11-13 01:59:41 +00:00
|
|
|
# No python3-tox for ubuntu
|
|
|
|
sudo pip3 install tox
|
|
|
|
|
|
|
|
sudo_package "$packages"
|
2013-08-08 03:23:13 +00:00
|
|
|
;;
|
|
|
|
esac
|