aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyenv-virtualenvwrapper.rb
blob: e8d53da4326f78d6987152267c7e1b82c4bf595f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class PyenvVirtualenvwrapper < Formula
  homepage 'https://github.com/yyuu/pyenv-virtualenvwrapper'
  url 'https://github.com/yyuu/pyenv-virtualenvwrapper/archive/v20140122.tar.gz'
  sha1 '7233865730c207d6e6660db906be19b88cb3ca3b'

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

  depends_on 'pyenv'

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

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