2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
|
|
|
class Couchdb <Formula
|
2009-10-14 17:09:11 +00:00
|
|
|
@url='http://apache.multihomed.net/couchdb/0.10.0/apache-couchdb-0.10.0.tar.gz'
|
2009-09-01 14:17:44 +00:00
|
|
|
@homepage='http://couchdb.apache.org/'
|
2009-10-14 17:09:11 +00:00
|
|
|
@md5='227886b5ecbb6bcbbdc538aac4592b0e'
|
2009-09-01 14:17:44 +00:00
|
|
|
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'spidermonkey'
|
|
|
|
depends_on 'icu4c'
|
|
|
|
depends_on 'erlang'
|
2009-09-30 07:08:33 +00:00
|
|
|
|
2009-09-01 14:17:44 +00:00
|
|
|
def install
|
2009-10-14 17:09:11 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--localstatedir=#{var}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--with-erlang=#{HOMEBREW_PREFIX}/lib/erlang/usr/include"
|
2009-09-01 14:17:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2009-09-07 03:26:56 +00:00
|
|
|
|
2009-10-14 16:38:51 +00:00
|
|
|
couchjs = "#{prefix}/lib/couchdb/bin/couchjs"
|
|
|
|
system "chmod 755 #{couchjs}"
|
|
|
|
|
2009-10-04 15:08:28 +00:00
|
|
|
(var+'lib'+'couchdb').mkpath
|
|
|
|
(var+'log'+'couchdb').mkpath
|
2009-09-01 14:17:44 +00:00
|
|
|
end
|
|
|
|
end
|