aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXu Cheng2015-01-03 16:53:42 +0800
committerMike McQuaid2015-01-03 18:41:55 +0000
commit6c4eb48ee6bb083f19f19d2755f67e9c3528938e (patch)
treef17bb5c81e10d9e4222c61a85fc5dc224ee87a97 /Library/Formula
parent2fd017e9e04a35836a711ad0361e70c6775dd878 (diff)
downloadhomebrew-6c4eb48ee6bb083f19f19d2755f67e9c3528938e.tar.bz2
pyenv-virtualenvwrapper: modernize
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyenv-virtualenvwrapper.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/pyenv-virtualenvwrapper.rb b/Library/Formula/pyenv-virtualenvwrapper.rb
index 943877125..76c5fc64e 100644
--- a/Library/Formula/pyenv-virtualenvwrapper.rb
+++ b/Library/Formula/pyenv-virtualenvwrapper.rb
@@ -1,20 +1,18 @@
-require 'formula'
-
class PyenvVirtualenvwrapper < Formula
- homepage 'https://github.com/yyuu/pyenv-virtualenvwrapper'
- url 'https://github.com/yyuu/pyenv-virtualenvwrapper/archive/v20140609.tar.gz'
- sha1 '04c36c836cbf1284f9d3bb5c442f40712022b532'
+ 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'
+ head "https://github.com/yyuu/pyenv-virtualenvwrapper.git"
- depends_on 'pyenv'
+ depends_on "pyenv"
def install
- ENV['PREFIX'] = prefix
+ ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
- system "eval \"$(pyenv init -)\" && pyenv virtualenvwrapper"
+ shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvwrapper")
end
end