formula: cinch up formatting

This commit is contained in:
Adam Vandenberg 2013-02-11 20:24:06 -08:00
parent a63fa4356a
commit d71c8beac9

View File

@ -149,9 +149,8 @@ class Formula
def plist_manual; self.class.plist_manual end def plist_manual; self.class.plist_manual end
def plist_startup; self.class.plist_startup end def plist_startup; self.class.plist_startup end
def build # Defined and active build-time options.
self.class.build def build; self.class.build; end
end
def opt_prefix; HOMEBREW_PREFIX/:opt/name end def opt_prefix; HOMEBREW_PREFIX/:opt/name end
@ -168,9 +167,7 @@ class Formula
# Can be overridden to selectively disable bottles from formulae. # Can be overridden to selectively disable bottles from formulae.
# Defaults to true so overridden version does not have to check if bottles # Defaults to true so overridden version does not have to check if bottles
# are supported. # are supported.
def pour_bottle? def pour_bottle?; true end
true
end
# tell the user about any caveats regarding this package, return a string # tell the user about any caveats regarding this package, return a string
def caveats; nil end def caveats; nil end
@ -183,8 +180,7 @@ class Formula
# return a Hash eg. # return a Hash eg.
# { # {
# :p0 => ['http://foo.com/patch1', 'http://foo.com/patch2'], # :p0 => ['http://foo.com/patch1', 'http://foo.com/patch2'],
# :p1 => 'http://bar.com/patch2', # :p1 => 'http://bar.com/patch2'
# :p2 => ['http://moo.com/patch5', 'http://moo.com/patch6']
# } # }
# The final option is to return DATA, then put a diff after __END__. You # The final option is to return DATA, then put a diff after __END__. You
# can still return a Hash with DATA as the value for a patch level key. # can still return a Hash with DATA as the value for a patch level key.
@ -589,7 +585,6 @@ public
def fetch def fetch
# Ensure the cache exists # Ensure the cache exists
HOMEBREW_CACHE.mkpath HOMEBREW_CACHE.mkpath
return @downloader.fetch, @downloader return @downloader.fetch, @downloader
end end