homebrew-core/Formula/pyenv-virtualenv.rb
James Kruth cafe9da73c pyenv-virtualenv 20160112
Closes Homebrew/homebrew#48141.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-16 05:49:16 +00:00

26 lines
724 B
Ruby

class PyenvVirtualenv < Formula
desc "Pyenv plugin to manage virtualenv"
homepage "https://github.com/yyuu/pyenv-virtualenv"
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20160112.tar.gz"
sha256 "5a250eefecb55338e6361f6ec3b473d98a270339b14158197b34caf99c64dc8a"
head "https://github.com/yyuu/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