aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyenv-virtualenvwrapper.rb
blob: 76c5fc64e978dfce2b7ed4be3353608b65da51f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class PyenvVirtualenvwrapper < Formula
  homepage "https://github.com/yyuu/pyenv-virtualenvwrapper"
  url "https://github.com/yyuu/pyenv-virtualenvwrapper/archive/v20140609.tar.gz"
  sha1 "04c36c836cbf1284f9d3bb5c442f40712022b532"

  head "https://github.com/yyuu/pyenv-virtualenvwrapper.git"

  depends_on "pyenv"

  def install
    ENV["PREFIX"] = prefix
    system "./install.sh"
  end

  test do
    shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvwrapper")
  end
end