aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-05 21:01:24 -0800
committerAdam Vandenberg2014-03-07 07:08:52 -0800
commit4f3188bcef0dd96f9b010d199d903b02ed929295 (patch)
tree9317530f9ff33f637ae0b367eecf2bdd22d2c6c0
parente8b4a7880534aa85992428f91c6daaf9b21b244b (diff)
downloadhomebrew-4f3188bcef0dd96f9b010d199d903b02ed929295.tar.bz2
add opt shortcuts to formula
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 43a67079d..e6e46ecb5 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -224,6 +224,13 @@ class Formula
Pathname.new("#{HOMEBREW_PREFIX}/opt/#{name}")
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.
# Defaults to true so overridden version does not have to check if bottles
# are supported.