From abdc998fb6b84bf3814528a219e04aca0907ea24 Mon Sep 17 00:00:00 2001 From: Angel Pizarro Date: Fri, 26 Mar 2010 15:18:11 +0000 Subject: Removed patches from couchdb folmula, in favor of configure flags, with locations from the erlnag and spidermokey formulas Signed-off-by: Adam Vandenberg --- Library/Formula/couchdb.rb | 54 ++++++++++------------------------------------ 1 file changed, 11 insertions(+), 43 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/couchdb.rb b/Library/Formula/couchdb.rb index 0c37d7459..e0b6c4b1d 100644 --- a/Library/Formula/couchdb.rb +++ b/Library/Formula/couchdb.rb @@ -1,20 +1,25 @@ require 'formula' class Couchdb "tags/0.10.1"} depends_on 'spidermonkey' depends_on 'icu4c' depends_on 'erlang' - def patches; DATA end - def install + erlang = Formula.factory "erlang" + js = Formula.factory "spidermonkey" + system "./bootstrap" if File.exists? "bootstrap" system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", - "--sysconfdir=#{etc}" + "--sysconfdir=#{etc}", + "--with-erlang=#{erlang.prefix}/lib/erlang/usr/include", + "--with-js-include=#{js.prefix}/include", + "--with-js-lib=#{js.prefix}/lib" system "make" system "make install" @@ -23,40 +28,3 @@ class Couchdb