A workaround for spidermonkey wonkiness to create a working couchjs binary.

master
Mathias Meyer 2009-10-14 18:38:51 +02:00 committed by Max Howell
parent 9269a91eba
commit 37bfe6b568
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ class Couchdb <Formula
system "make"
system "make install"
couchjs = "#{prefix}/lib/couchdb/bin/couchjs"
system "chmod 755 #{couchjs}"
system "install_name_tool -change Darwin_DBG.OBJ/libjs.dylib #{HOMEBREW_PREFIX}/lib/libjs.dylib #{couchjs}"
(var+'lib'+'couchdb').mkpath
(var+'log'+'couchdb').mkpath
end