homebrew-core/Formula/riak.rb
Matt Heitzenroder 1ee63424f1 riak bugs addressed, moved to version .10.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-27 09:00:01 -07:00

33 lines
914 B
Ruby

require 'formula'
class Riak <Formula
depends_on 'erlang'
url 'http://downloads.basho.com/riak/riak-0.10/riak-0.10.1.tar.gz'
homepage 'http://riak.basho.com'
md5 'ec9ba12c3573af5ce8f6b33f56227252'
skip_clean 'libexec/log'
skip_clean 'libexec/log/sasl'
skip_clean 'libexec/data'
skip_clean 'libexec/data/dets'
skip_clean 'libexec/data/ring'
def install
ENV.deparallelize
system "make all rel"
%w(riak riak-admin).each do |file|
inreplace "rel/riak/bin/#{file}", /^RUNNER_SCRIPT_DIR.+$/, ""
inreplace "rel/riak/bin/#{file}", /^RUNNER_BASE_DIR=.+$/, "RUNNER_BASE_DIR=#{libexec}"
end
# Install most files to private libexec, and link in the binaries.
libexec.install Dir["rel/riak/*"]
bin.mkpath
ln_s libexec+'bin/riak', bin
ln_s libexec+'bin/riak-admin', bin
(prefix + 'data/ring').mkpath
(prefix + 'data/dets').mkpath
end
end