riak 2.0.0

Closes Homebrew/homebrew#32063.
This commit is contained in:
Brett Koonce 2014-09-02 19:05:17 -07:00
parent 1ffa3406ae
commit 4d34bd55e6

View file

@ -2,15 +2,9 @@ require "formula"
class Riak < Formula
homepage "http://basho.com/riak/"
url "http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.10/osx/10.8/riak-1.4.10-OSX-x86_64.tar.gz"
version "1.4.10"
sha256 "32f2d4ee89c6b7fd596726e9b385b5d1715a789413b4e7301d0b0da1c4f711e1"
devel do
url "http://s3.amazonaws.com/downloads.basho.com/riak/2.0/2.0.0rc1/osx/10.8/riak-2.0.0rc1-OSX-x86_64.tar.gz"
sha256 "785c93fb98ce2ab21ffc7644756bed95c9ba1eae46283536609fa93b0287909d"
version "2.0.0-rc1"
end
url "http://s3.amazonaws.com/downloads.basho.com/riak/2.0/2.0.0/osx/10.8/riak-2.0.0-OSX-x86_64.tar.gz"
version "2.0.0"
sha256 "08285c5d391d181d81bc8434541a4f63004a9890cb06576e650ba236023dc44c"
depends_on :macos => :mountain_lion
depends_on :arch => :x86_64
@ -26,16 +20,9 @@ class Riak < Formula
s.change_make_var! "RUNNER_BASE_DIR", libexec
s.change_make_var! "RUNNER_LOG_DIR", logdir
end
if build.devel?
inreplace "#{libexec}/etc/riak.conf" do |c|
c.gsub! /(platform_data_dir *=).*$/, "\\1 #{datadir}"
c.gsub! /(platform_log_dir *=).*$/, "\\1 #{logdir}"
end
else
inreplace "#{libexec}/etc/app.config" do |c|
c.gsub! './data', datadir
c.gsub! './log', logdir
end
inreplace "#{libexec}/etc/riak.conf" do |c|
c.gsub! /(platform_data_dir *=).*$/, "\\1 #{datadir}"
c.gsub! /(platform_log_dir *=).*$/, "\\1 #{logdir}"
end
bin.write_exec_script libexec/"bin/riak"
bin.write_exec_script libexec/"bin/riak-admin"