diff options
| author | Mike McQuaid | 2013-05-10 13:35:38 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-10 13:37:41 +0100 |
| commit | 2d9329f14eaac22dd0e2411e31295dd9acf6d1c5 (patch) | |
| tree | 2fc7c19abb862f1e93022ae6c2a30d2164b14222 /Library/Formula | |
| parent | 849942f9fd8028de0ed99c3c740fb33e28cf84ea (diff) | |
| download | homebrew-2d9329f14eaac22dd0e2411e31295dd9acf6d1c5.tar.bz2 | |
Allow requirements to specify a default formula.
This allows default resolution of requirements without user intervention.
Closes #19627.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/elixir.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/mu.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/mysql-connector-odbc.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/shocco.rb | 1 | ||||
| -rw-r--r-- | Library/Formula/signing-party.rb | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/elixir.rb b/Library/Formula/elixir.rb index 74b133d91..c129bac14 100644 --- a/Library/Formula/elixir.rb +++ b/Library/Formula/elixir.rb @@ -2,6 +2,7 @@ require 'formula' class ErlangInstalled < Requirement fatal true + default_formula 'erlang' satisfy { which 'erl' } diff --git a/Library/Formula/mu.rb b/Library/Formula/mu.rb index 9b50c5ea3..2d9d18f9a 100644 --- a/Library/Formula/mu.rb +++ b/Library/Formula/mu.rb @@ -3,6 +3,7 @@ require 'formula' class Emacs23Installed < Requirement fatal true env :userpaths + default_formula 'emacs' satisfy do `emacs --version 2>/dev/null` =~ /^GNU Emacs (\d{2})/ diff --git a/Library/Formula/mysql-connector-odbc.rb b/Library/Formula/mysql-connector-odbc.rb index 06a7ed6d9..6bbbe3a7c 100644 --- a/Library/Formula/mysql-connector-odbc.rb +++ b/Library/Formula/mysql-connector-odbc.rb @@ -2,6 +2,7 @@ require 'formula' class MySqlInstalled < Requirement fatal true + default_formula 'mysql' satisfy { which 'mysql_config' } diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb index bd6959517..c30df7b24 100644 --- a/Library/Formula/shocco.rb +++ b/Library/Formula/shocco.rb @@ -10,6 +10,7 @@ end class MarkdownProvider < Requirement fatal true + default_formula 'markdown' satisfy { which 'markdown' } diff --git a/Library/Formula/signing-party.rb b/Library/Formula/signing-party.rb index dfa02fae5..ecbb8c6b7 100644 --- a/Library/Formula/signing-party.rb +++ b/Library/Formula/signing-party.rb @@ -2,6 +2,7 @@ require 'formula' class GnupgInstalled < Requirement fatal true + default_formula 'gnupg2' satisfy { which('gpg') || which('gpg2') } |
