diff options
| author | Adam Vandenberg | 2014-05-19 21:02:42 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-19 21:02:42 -0700 |
| commit | f1b05fca6c90b2304ee220747ce8b491743936ce (patch) | |
| tree | 4d1d52c7367a79bd1aee4a4aa60246af2c3bfeb8 /Library | |
| parent | f06536a15f65aea9cec0d693739bd2f1ae9e9dea (diff) | |
| download | homebrew-f1b05fca6c90b2304ee220747ce8b491743936ce.tar.bz2 | |
pyenv: style
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pyenv.rb | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Library/Formula/pyenv.rb b/Library/Formula/pyenv.rb index 2a19f6fce..d113bb105 100644 --- a/Library/Formula/pyenv.rb +++ b/Library/Formula/pyenv.rb @@ -1,22 +1,21 @@ -require 'formula' +require "formula" class Pyenv < Formula - homepage 'https://github.com/yyuu/pyenv' - url 'https://github.com/yyuu/pyenv/archive/v0.4.0-20140520.tar.gz' - sha1 '92586a9ed9a224872f9b0498dac16ead338fbbbc' + homepage "https://github.com/yyuu/pyenv" + head "https://github.com/yyuu/pyenv.git" + url "https://github.com/yyuu/pyenv/archive/v0.4.0-20140520.tar.gz" + sha1 "92586a9ed9a224872f9b0498dac16ead338fbbbc" - head 'https://github.com/yyuu/pyenv.git' - - depends_on 'autoconf' => [:recommended, :run] - depends_on 'pkg-config' => [:recommended, :run] + depends_on "autoconf" => [:recommended, :run] + depends_on "pkg-config" => [:recommended, :run] def install - inreplace 'libexec/pyenv', '/usr/local', HOMEBREW_PREFIX - prefix.install "LICENSE", "README.md", "bin", "completions", "libexec" + inreplace "libexec/pyenv", "/usr/local", HOMEBREW_PREFIX + prefix.install "bin", "completions", "libexec" prefix.install "plugins" => "default-plugins" var_lib = "#{HOMEBREW_PREFIX}/var/lib/pyenv" - ['plugins', 'versions'].each do |dir| + %w[plugins versions].each do |dir| var_dir = "#{var_lib}/#{dir}" mkdir_p var_dir ln_sf var_dir, "#{prefix}/#{dir}" @@ -24,7 +23,7 @@ class Pyenv < Formula rm_f "#{var_lib}/plugins/python-build" ln_sf "#{prefix}/default-plugins/python-build", "#{var_lib}/plugins/python-build" - ["pyenv-install", "pyenv-uninstall", "python-build"].each do |cmd| + %w[pyenv-install pyenv-uninstall python-build].each do |cmd| bin.install_symlink "#{prefix}/default-plugins/python-build/bin/#{cmd}" end end |
