2014-04-21 11:33:21 +00:00
|
|
|
require "formula"
|
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"
|
2014-07-05 08:30:31 +00:00
|
|
|
url "https://github.com/yyuu/pyenv-virtualenv/archive/v20140705.tar.gz"
|
|
|
|
sha1 "78e90aee72a783dfd9722c55e2271b08688fb408"
|
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
|
2013-01-31 03:21:18 +00:00
|
|
|
end
|