diff options
| author | Adam Vandenberg | 2013-08-06 21:03:54 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:32 -0700 | 
| commit | 89e1451b94d10c68899c47652ef0db3ad78c7283 (patch) | |
| tree | 9d43b7bf197bf53a17629335f5846e7509a03bf4 | |
| parent | f522abb6401d0b4ff2f054d4028cf62a6659a954 (diff) | |
| download | homebrew-89e1451b94d10c68899c47652ef0db3ad78c7283.tar.bz2 | |
r: use resource
| -rw-r--r-- | Library/Formula/r.rb | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/r.rb b/Library/Formula/r.rb index bc0b01b9a..8b2dce1d2 100644 --- a/Library/Formula/r.rb +++ b/Library/Formula/r.rb @@ -1,12 +1,5 @@  require 'formula' -class RBashCompletion < Formula -  # This is the same script that Debian packages use. -  url 'http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R', :using => :curl -  version 'r28' -  sha1 'af734b8624b33f2245bf88d6782bea0dc5d829a4' -end -  class R < Formula    homepage 'http://www.r-project.org'    url 'http://cran.r-project.org/src/base/R-3/R-3.0.1.tar.gz' @@ -26,6 +19,13 @@ class R < Formula    depends_on 'valgrind' => :optional    depends_on 'homebrew/science/openblas' if build.with? 'openblas' +  # This is the same script that Debian packages use. +  resource 'completion' do +    url 'http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R', :using => :curl +    version 'r28' +    sha1 'af734b8624b33f2245bf88d6782bea0dc5d829a4' +  end +    def install      args = [        "--prefix=#{prefix}", @@ -60,7 +60,7 @@ class R < Formula      ln_s prefix+"R.framework/Resources/man1/R.1", man1      ln_s prefix+"R.framework/Resources/man1/Rscript.1", man1 -    RBashCompletion.new.brew { bash_completion.install 'R' } +    bash_completion.install resource('completion')      prefix.install 'make-check.log' if build.include? 'test'    end  | 
