f8cb08a69f
Closes Homebrew/homebrew#36127. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
24 lines
636 B
Ruby
24 lines
636 B
Ruby
class PyenvVirtualenv < Formula
|
|
homepage "https://github.com/yyuu/pyenv-virtualenv"
|
|
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20150119.tar.gz"
|
|
sha1 "8f91e04fb87b0f05b127a557c08ccbe1b42ef32f"
|
|
|
|
head "https://github.com/yyuu/pyenv-virtualenv.git"
|
|
|
|
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
|