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

This commit is contained in:
Mathias Meyer 2009-10-14 18:38:51 +02:00 committed by Max Howell
parent 9269a91eba
commit 37bfe6b568

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