compat/formula_specialities: cleanup style.
This commit is contained in:
parent
b3e423fc7c
commit
e107c86aec
@ -1,15 +1,13 @@
|
|||||||
# Base classes for specialized types of formulae.
|
|
||||||
|
|
||||||
# See chcase for an example
|
|
||||||
class ScriptFileFormula < Formula
|
class ScriptFileFormula < Formula
|
||||||
def install
|
def install
|
||||||
|
odeprecated "ScriptFileFormula#install", "Formula#install"
|
||||||
bin.install Dir["*"]
|
bin.install Dir["*"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# See browser for an example
|
|
||||||
class GithubGistFormula < ScriptFileFormula
|
class GithubGistFormula < ScriptFileFormula
|
||||||
def self.url(val)
|
def self.url(val)
|
||||||
|
odeprecated "GithubGistFormula.url", "Formula.url"
|
||||||
super
|
super
|
||||||
version File.basename(File.dirname(val))[0, 6]
|
version File.basename(File.dirname(val))[0, 6]
|
||||||
end
|
end
|
||||||
@ -21,6 +19,8 @@ class AmazonWebServicesFormula < Formula
|
|||||||
# Use this method to peform a standard install for Java-based tools,
|
# Use this method to peform a standard install for Java-based tools,
|
||||||
# keeping the .jars out of HOMEBREW_PREFIX/lib
|
# keeping the .jars out of HOMEBREW_PREFIX/lib
|
||||||
def install
|
def install
|
||||||
|
odeprecated "AmazonWebServicesFormula#install", "Formula#install"
|
||||||
|
|
||||||
rm Dir["bin/*.cmd"] # Remove Windows versions
|
rm Dir["bin/*.cmd"] # Remove Windows versions
|
||||||
libexec.install Dir["*"]
|
libexec.install Dir["*"]
|
||||||
bin.install_symlink Dir["#{libexec}/bin/*"] - ["#{libexec}/bin/service"]
|
bin.install_symlink Dir["#{libexec}/bin/*"] - ["#{libexec}/bin/service"]
|
||||||
@ -29,6 +29,8 @@ class AmazonWebServicesFormula < Formula
|
|||||||
|
|
||||||
# Use this method to generate standard caveats.
|
# Use this method to generate standard caveats.
|
||||||
def standard_instructions(home_name, home_value = libexec)
|
def standard_instructions(home_name, home_value = libexec)
|
||||||
|
odeprecated "AmazonWebServicesFormula#standard_instructions", "Formula#caveats"
|
||||||
|
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
Before you can use these tools you must export some variables to your $SHELL.
|
Before you can use these tools you must export some variables to your $SHELL.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user