aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyenv-virtualenv.rb
diff options
context:
space:
mode:
authorYamashita Yuu2013-01-31 12:21:18 +0900
committerAdam Vandenberg2013-08-05 11:12:32 -0700
commit62a816997ec36edd5e230a367122923eb8e8c0da (patch)
tree81c635b3d03b76f708bea546c4de2b3418bbea2d /Library/Formula/pyenv-virtualenv.rb
parent31f453ffbf91775e24186cf2f8c75679d2981333 (diff)
downloadhomebrew-62a816997ec36edd5e230a367122923eb8e8c0da.tar.bz2
pyenv-virtualenv 20130622
pyenv-virtualenv is a pyenv plugin which allows users to manage Python's virtualenv as a version of pyenv. Closes #20675. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/pyenv-virtualenv.rb')
-rw-r--r--Library/Formula/pyenv-virtualenv.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/pyenv-virtualenv.rb b/Library/Formula/pyenv-virtualenv.rb
new file mode 100644
index 000000000..7c972d281
--- /dev/null
+++ b/Library/Formula/pyenv-virtualenv.rb
@@ -0,0 +1,17 @@
+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