2013-01-31 03:21:18 +00:00
|
|
|
class PyenvVirtualenv < Formula
|
2014-04-21 11:33:21 +00:00
|
|
|
homepage "https://github.com/yyuu/pyenv-virtualenv"
|
2015-01-22 07:53:43 +00:00
|
|
|
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20150119.tar.gz"
|
|
|
|
sha1 "8f91e04fb87b0f05b127a557c08ccbe1b42ef32f"
|
2013-01-31 03:21:18 +00:00
|
|
|
|
2014-04-21 11:33:21 +00:00
|
|
|
head "https://github.com/yyuu/pyenv-virtualenv.git"
|
2013-01-31 03:21:18 +00:00
|
|
|
|
2014-04-21 11:33:21 +00:00
|
|
|
depends_on "pyenv"
|
2013-01-31 03:21:18 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-21 11:33:21 +00:00
|
|
|
ENV["PREFIX"] = prefix
|
2013-01-31 03:21:18 +00:00
|
|
|
system "./install.sh"
|
|
|
|
end
|
2014-06-14 06:06:30 +00:00
|
|
|
|
|
|
|
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
|
2015-01-03 08:51:19 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvs")
|
|
|
|
end
|
2013-01-31 03:21:18 +00:00
|
|
|
end
|