blob: afe3d9d3c3ea555fbee2696c160ee4c197262650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | 
require "formula"
class PyenvVirtualenv < Formula
  homepage "https://github.com/yyuu/pyenv-virtualenv"
  url "https://github.com/yyuu/pyenv-virtualenv/archive/v20141106.tar.gz"
  sha1 "5410f16c3ebb611fe7e0e9f5c808b80902201b25"
  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
end
  |