aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-11 17:48:30 -0500
committerJack Nagel2014-08-11 17:48:30 -0500
commit800051d65ea23f1431517c5b780003ba40a4a562 (patch)
tree578b77dd8f17f8f2b8a64e5bfd404a0c07cb6816 /Library/Homebrew/formula.rb
parent7446162e59fe548a0fde735d25b9913f8fa2ad4a (diff)
downloadhomebrew-800051d65ea23f1431517c5b780003ba40a4a562.tar.bz2
Allow build to be set externally
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7ca927313..b1f3df267 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -25,6 +25,7 @@ class Formula
attr_reader :buildpath, :testpath
attr_accessor :local_bottle_path
+ attr_accessor :build
def initialize(name, path, spec)
@name = name
@@ -38,6 +39,7 @@ class Formula
@active_spec = determine_active_spec(spec)
validate_attributes :url, :name, :version
@pkg_version = PkgVersion.new(version, revision)
+ @build = active_spec.build
@pin = FormulaPin.new(self)
end
@@ -109,10 +111,6 @@ class Formula
active_spec.option_defined?(name)
end
- def build
- active_spec.build
- end
-
# if the dir is there, but it's empty we consider it not installed
def installed?
(dir = installed_prefix).directory? && dir.children.length > 0