homebrew-core/Formula/couchdb.rb

30 lines
836 B
Ruby
Raw Normal View History

require 'formula'
class Couchdb <Formula
2010-08-26 19:15:02 +00:00
url 'git://github.com/apache/couchdb.git', :tag => "1.0.1"
homepage "http://couchdb.apache.org/"
version "1.0.1"
depends_on 'spidermonkey'
depends_on 'icu4c'
depends_on 'erlang'
def install
system "./bootstrap" if File.exists? "bootstrap"
system "./configure", "--prefix=#{prefix}",
"--localstatedir=#{var}",
"--sysconfdir=#{etc}",
2010-06-25 21:45:50 +00:00
"--with-erlang=#{HOMEBREW_PREFIX}/lib/erlang/usr/include",
"--with-js-include=#{HOMEBREW_PREFIX}/include",
"--with-js-lib=#{HOMEBREW_PREFIX}/lib"
system "make"
system "make install"
2010-03-27 05:48:41 +00:00
(lib+'couchdb/bin/couchjs').chmod 0755
(var+'lib/couchdb').mkpath
(var+'log/couchdb').mkpath
end
end