diff options
| author | Jan Lehnardt | 2013-03-17 20:07:52 +0100 |
|---|---|---|
| committer | Samuel John | 2013-03-18 12:42:04 +0100 |
| commit | 16ed21a4dba7409db5e2711bb8473bd4a83a79b4 (patch) | |
| tree | 59ee3535c43d46a006f784e4fb29fd836a364d1a /Library/Formula | |
| parent | 5da30fa1f9976669fe8e75c4a047309d7f5c8845 (diff) | |
| download | homebrew-16ed21a4dba7409db5e2711bb8473bd4a83a79b4.tar.bz2 | |
chouchdb: Needs Erlang <= R15B, print workaround.
Adds an Requirement for Erlang not greater than R15B.
Closes #18548.
Signed-off-by: Samuel John <github@SamuelJohn.de>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/couchdb.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb index 250e2a169..5e9e08167 100644 --- a/Library/Formula/couchdb.rb +++ b/Library/Formula/couchdb.rb @@ -1,5 +1,35 @@ require 'formula' +class Erlang16Incompat < Requirement + fatal true + + def version + Formula.factory('erlang').version + end + + satisfy do + version =~ /R(\d{2})B/ + $1.to_i > 15 + end + + def message; <<-EOS.undent + Erlang <= R15B03-1 is required to install. + + You have a erlang version #{version} + + The work-around is: + + brew unlink erlang + cd #{HOMEBREW_REPOSITORY} + git checkout 168742f Library/Formula/erlang.rb + brew install erlang + brew install couchdb + + EOS + end +end + + class Couchdb < Formula homepage "http://couchdb.apache.org/" url 'http://www.apache.org/dyn/closer.cgi?path=/couchdb/1.2.1/apache-couchdb-1.2.1.tar.gz' @@ -7,6 +37,7 @@ class Couchdb < Formula head 'http://git-wip-us.apache.org/repos/asf/couchdb.git' + depends_on Erlang16Incompat depends_on 'help2man' => :build depends_on 'spidermonkey' depends_on 'icu4c' |
