diff options
| author | Jack Nagel | 2014-08-11 17:48:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-11 17:48:30 -0500 |
| commit | 0b468c528c9207b2e43455f02e3042080abd19ca (patch) | |
| tree | 0ca17872fa64f3e7dcca270e70b6d719a56cd947 | |
| parent | 1455d83dd8bb7b2a7fbd946eb4dd757c060b06a6 (diff) | |
| download | brew-0b468c528c9207b2e43455f02e3042080abd19ca.tar.bz2 | |
Allow build to be set externally
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
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 |
