diff options
| author | Adam Vandenberg | 2014-03-05 21:01:24 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-07 07:08:52 -0800 |
| commit | 452d671008db6d61b78e18f25db0c7308b8a24a2 (patch) | |
| tree | 3f88edbde1fc1ee6ce0a8588bdd6c5185b1f0f54 /Library | |
| parent | 5cb3b25d4306625d69ce4072fffb3d6cc8f32cab (diff) | |
| download | brew-452d671008db6d61b78e18f25db0c7308b8a24a2.tar.bz2 | |
add opt shortcuts to formula
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 |
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. |
