add opt shortcuts to formula

This commit is contained in:
Adam Vandenberg 2014-03-05 21:01:24 -08:00
parent 5cb3b25d43
commit 452d671008

View File

@ -224,6 +224,13 @@ class Formula
Pathname.new("#{HOMEBREW_PREFIX}/opt/#{name}") Pathname.new("#{HOMEBREW_PREFIX}/opt/#{name}")
end end
def opt_bin; opt_prefix+'bin' end
def opt_include; opt_prefix+'include' end
def opt_lib; opt_prefix+'lib' end
def opt_libexec; opt_prefix+'libexec' end
def opt_sbin; opt_prefix+'sbin' end
def opt_share; opt_prefix+'share' end
# 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.