class PyenvVirtualenv < Formula desc "Pyenv plugin to manage virtualenv" homepage "https://github.com/pyenv/pyenv-virtualenv" url "https://github.com/pyenv/pyenv-virtualenv/archive/v1.1.1.tar.gz" sha256 "8589805444bc6be2746d2cf1ea76fb47fd43783d3d80e4955604b758189ca510" version_scheme 1 head "https://github.com/pyenv/pyenv-virtualenv.git" bottle :unneeded depends_on "pyenv" def install ENV["PREFIX"] = prefix system "./install.sh" end def caveats; <<-EOS.undent To enable auto-activation add to your profile: if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi EOS end test do shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvs") end end