2009-09-01 14:17:44 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
|
|
|
class Couchdb <Formula
|
|
|
|
@url='http://apache.multihomed.net/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz'
|
|
|
|
@homepage='http://couchdb.apache.org/'
|
|
|
|
@md5='9583efae5adfb3f9043e970fef825561'
|
|
|
|
|
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-04 15:08:28 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}"
|
2009-09-01 14:17:44 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2009-09-07 03:26:56 +00:00
|
|
|
|
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
|