2010-10-13 15:27:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class RiakSearch <Formula
|
2011-01-24 18:57:18 +00:00
|
|
|
url 'http://downloads.basho.com/riak-search/riak-search-0.14/riak_search-0.14.0-osx-i386.tar.gz'
|
2010-10-13 15:27:00 +00:00
|
|
|
homepage 'http://riak.basho.com'
|
2011-01-24 18:57:18 +00:00
|
|
|
md5 'afb34fdedd1899a972e47050888e18b9'
|
|
|
|
version '0.14.0'
|
2010-10-13 15:27:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
%w(riaksearch riaksearch-admin search-cmd).each do |file|
|
|
|
|
inreplace "bin/#{file}", /^RUNNER_BASE_DIR=.+$/, "RUNNER_BASE_DIR=#{libexec}"
|
|
|
|
end
|
|
|
|
|
|
|
|
# Install most files to private libexec, and link in the binaries.
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
|
|
|
|
bin.mkpath
|
|
|
|
ln_s libexec+'bin/riaksearch', bin
|
|
|
|
ln_s libexec+'bin/riaksearch-admin', bin
|
|
|
|
ln_s libexec+'bin/search-cmd', bin
|
|
|
|
|
|
|
|
(prefix + 'data/ring').mkpath
|
|
|
|
(prefix + 'data/dets').mkpath
|
|
|
|
end
|
|
|
|
end
|