diff options
| author | Mike McQuaid | 2016-07-16 22:15:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-29 21:21:29 -0600 |
| commit | e107c86aecc8f53a254c0e8582a5db87c1bd7fdf (patch) | |
| tree | 836d5ff4a0eeeb0c432936be3c53a7eaeae6c0e7 /Library | |
| parent | b3e423fc7ce7786f44cb4c29060872a1ee4b54c2 (diff) | |
| download | brew-e107c86aecc8f53a254c0e8582a5db87c1bd7fdf.tar.bz2 | |
compat/formula_specialities: cleanup style.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/formula_specialties.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/compat/formula_specialties.rb b/Library/Homebrew/compat/formula_specialties.rb index f082b00d9..f709bcb5b 100644 --- a/Library/Homebrew/compat/formula_specialties.rb +++ b/Library/Homebrew/compat/formula_specialties.rb @@ -1,15 +1,13 @@ -# Base classes for specialized types of formulae. - -# See chcase for an example class ScriptFileFormula < Formula def install + odeprecated "ScriptFileFormula#install", "Formula#install" bin.install Dir["*"] end end -# See browser for an example class GithubGistFormula < ScriptFileFormula def self.url(val) + odeprecated "GithubGistFormula.url", "Formula.url" super version File.basename(File.dirname(val))[0, 6] end @@ -21,6 +19,8 @@ class AmazonWebServicesFormula < Formula # Use this method to peform a standard install for Java-based tools, # keeping the .jars out of HOMEBREW_PREFIX/lib def install + odeprecated "AmazonWebServicesFormula#install", "Formula#install" + rm Dir["bin/*.cmd"] # Remove Windows versions libexec.install Dir["*"] bin.install_symlink Dir["#{libexec}/bin/*"] - ["#{libexec}/bin/service"] @@ -29,6 +29,8 @@ class AmazonWebServicesFormula < Formula # Use this method to generate standard caveats. def standard_instructions(home_name, home_value = libexec) + odeprecated "AmazonWebServicesFormula#standard_instructions", "Formula#caveats" + <<-EOS.undent Before you can use these tools you must export some variables to your $SHELL. |
