homebrew-core/Formula/riak.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

32 lines
840 B
Ruby

require 'formula'
class Riak <Formula
url 'http://downloads.basho.com/riak/riak-0.12/riak-0.12.0.tar.gz'
homepage 'http://riak.basho.com'
md5 'b5bbc7aaf115bc6ba518137b733ad8a2'
skip_clean 'libexec/log'
skip_clean 'libexec/log/sasl'
skip_clean 'libexec/data'
skip_clean 'libexec/data/dets'
skip_clean 'libexec/data/ring'
depends_on 'erlang'
def install
ENV.deparallelize
system "make all rel"
%w(riak riak-admin).each do |file|
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