8c739c7c81
pyenv-virtualenv is a pyenv plugin which allows users to manage Python's virtualenv as a version of pyenv. Closes Homebrew/homebrew#20675. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
17 lines
457 B
Ruby
17 lines
457 B
Ruby
require 'formula'
|
|
|
|
class PyenvVirtualenv < Formula
|
|
homepage 'https://github.com/yyuu/pyenv-virtualenv'
|
|
url 'https://github.com/yyuu/pyenv-virtualenv/archive/v20130622.tar.gz'
|
|
sha1 '2e27b3b76931e6f0eecc4bccb3166d1abc130393'
|
|
|
|
head 'https://github.com/yyuu/pyenv-virtualenv.git'
|
|
|
|
depends_on 'pyenv'
|
|
|
|
def install
|
|
ENV['PREFIX'] = prefix
|
|
system "./install.sh"
|
|
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/pyenv/plugins/#{name}"
|
|
end
|
|
end
|