diff options
| author | Jack Nagel | 2013-03-18 15:35:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-18 15:36:56 -0500 |
| commit | 6f7865c0dd7295e6b7f71fbd2423aa25b1108576 (patch) | |
| tree | 5919df056f5fd381b7dbca2cdebc7da22e9f8bd7 /Library/Formula | |
| parent | d0c53172072c1ce8092fc4fef5a76e62ad6e2917 (diff) | |
| download | homebrew-6f7865c0dd7295e6b7f71fbd2423aa25b1108576.tar.bz2 | |
couchdb: depend on homebrew/versions/erlang-r15
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/couchdb.rb | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb index 5e9e08167..990bf7e5d 100644 --- a/Library/Formula/couchdb.rb +++ b/Library/Formula/couchdb.rb @@ -1,35 +1,5 @@ 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' @@ -37,11 +7,10 @@ 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' - depends_on 'erlang' + depends_on 'homebrew/versions/erlang-r15' depends_on 'curl' if MacOS.version == :leopard def install |
