aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_support.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-02-28 22:14:59 +0000
committerMike McQuaid2013-03-01 17:49:09 +0000
commit20c0ddc40100b08f26d274c550ab0051d9831d21 (patch)
tree830de4cde08dc822678bc48b9b607baf48c27d1c /Library/Homebrew/formula_support.rb
parent22aec1d0d97ee20fdc31e2df278378fe17f9d07f (diff)
downloadbrew-20c0ddc40100b08f26d274c550ab0051d9831d21.tar.bz2
Add non-/usr/local bottles support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
-rw-r--r--Library/Homebrew/formula_support.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index c9355d641..3cd221129 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -79,13 +79,14 @@ end
class Bottle < SoftwareSpec
attr_writer :url
- attr_reader :revision, :root_url
+ attr_reader :revision, :root_url, :cellar
# TODO: Can be removed when all bottles migrated to underscored cat symbols.
attr_reader :cat_without_underscores
def initialize
super
@revision = 0
+ @cellar = '/usr/local/Cellar'
@cat_without_underscores = false
end
@@ -117,6 +118,10 @@ class Bottle < SoftwareSpec
val.nil? ? @root_url : @root_url = val
end
+ def cellar val=nil
+ val.nil? ? @cellar : @cellar = val
+ end
+
def revision val=nil
val.nil? ? @revision : @revision = val
end