aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
authorMike McQuaid2013-05-10 13:35:38 +0100
committerMike McQuaid2013-05-10 13:37:41 +0100
commit92ccfc548e0c635d9d3a7b18f033eb3160285f23 (patch)
treeffa158475cdcab3749cfaefb6ed75c75e72d7582 /Library/Homebrew/requirements
parentba93e6d3630c6007290567f160a9a16bc17253c5 (diff)
downloadbrew-92ccfc548e0c635d9d3a7b18f033eb3160285f23.tar.bz2
Allow requirements to specify a default formula.
This allows default resolution of requirements without user intervention. Closes Homebrew/homebrew#19627.
Diffstat (limited to 'Library/Homebrew/requirements')
-rw-r--r--Library/Homebrew/requirements/mpi_dependency.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/mpi_dependency.rb b/Library/Homebrew/requirements/mpi_dependency.rb
index b51efc303..e83f7d80c 100644
--- a/Library/Homebrew/requirements/mpi_dependency.rb
+++ b/Library/Homebrew/requirements/mpi_dependency.rb
@@ -9,6 +9,8 @@ class MPIDependency < Requirement
fatal true
+ default_formula 'open-mpi'
+
env :userpaths
def initialize *lang_list