aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-05 21:01:24 -0800
committerAdam Vandenberg2014-03-07 07:08:52 -0800
commit452d671008db6d61b78e18f25db0c7308b8a24a2 (patch)
tree3f88edbde1fc1ee6ce0a8588bdd6c5185b1f0f54 /Library
parent5cb3b25d4306625d69ce4072fffb3d6cc8f32cab (diff)
downloadbrew-452d671008db6d61b78e18f25db0c7308b8a24a2.tar.bz2
add opt shortcuts to formula
Diffstat (limited to 'Library')
-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.