diff options
| author | Angel Pizarro | 2010-03-26 15:18:11 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-26 23:08:59 -0700 |
| commit | abdc998fb6b84bf3814528a219e04aca0907ea24 (patch) | |
| tree | 37d7a545c363974a8f191e0305ec1ecf90b1610a /Library | |
| parent | 6c92cb65aff1321a4af416e2de005076fe603f90 (diff) | |
| download | homebrew-abdc998fb6b84bf3814528a219e04aca0907ea24.tar.bz2 | |
Removed patches from couchdb folmula, in favor of configure flags, with locations from the erlnag and spidermokey formulas
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/couchdb.rb | 54 |
1 files changed, 11 insertions, 43 deletions
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 <Formula - @url='http://apache.abdaal.com/couchdb/0.10.1/apache-couchdb-0.10.1.tar.gz' - @homepage='http://couchdb.apache.org/' - @md5='a34dae8bf402299e378d7e8c13b7ba46' + url 'git://github.com/apache/couchdb.git' + homepage='http://couchdb.apache.org/' + version "0.10.1" + @specs = {:tag => "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 <Formula (var+'log'+'couchdb').mkpath end end - - -# this patch because couchdb doesn't try to find where spidermonkey or erlang -# are installed it just adds a bunch of paths and hopes for the best. However -# for users who install Homebrew somewhere that is non standard, this breaks -__END__ -diff --git a/configure b/configure -index edb6438..472cd2c 100755 ---- a/configure -+++ b/configure -@@ -11240,10 +11240,7 @@ if test "${with_erlang+set}" = set; then : - - else - -- ERLANG_FLAGS="-I${libdir}/erlang/usr/include" -- ERLANG_FLAGS="$ERLANG_FLAGS -I/usr/lib/erlang/usr/include" -- ERLANG_FLAGS="$ERLANG_FLAGS -I/usr/local/lib/erlang/usr/include" -- ERLANG_FLAGS="$ERLANG_FLAGS -I/opt/local/lib/erlang/usr/include" -+ ERLANG_FLAGS="-I$(dirname $(dirname $(which erl)))/lib/erlang/usr/include" - - fi - -@@ -11257,13 +11257,7 @@ if test "${with_js_include+set}" = set; then : - - else - -- JS_FLAGS="-I/usr/include" -- JS_FLAGS="$JS_FLAGS -I/usr/include/js" -- JS_FLAGS="$JS_FLAGS -I/usr/include/mozjs" -- JS_FLAGS="$JS_FLAGS -I/usr/local/include" -- JS_FLAGS="$JS_FLAGS -I/opt/local/include" -- JS_FLAGS="$JS_FLAGS -I/usr/local/include/js" -- JS_FLAGS="$JS_FLAGS -I/opt/local/include/js" -+ JS_FLAGS="-I`js-config --includedir`/js" - - fi - |
