homebrew-core/Formula/riak.rb

32 lines
939 B
Ruby
Raw Normal View History

2010-01-12 21:50:19 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Riak < Formula
2011-10-21 03:41:52 +00:00
homepage 'http://wiki.basho.com/Riak.html'
if Hardware.is_64_bit? and not build.build_32_bit?
url 'http://s3.amazonaws.com/downloads.basho.com/riak/1.3/1.3.0/osx/10.6/riak-1.3.0-osx-x86_64.tar.gz'
version '1.3.0-x86_64'
sha256 '912d724393253583b23df70b695eb6fb56838e3d35eeef8a2fb5360acf55bff9'
else
url 'http://s3.amazonaws.com/downloads.basho.com/riak/1.3/1.3.0/osx/10.6/riak-1.3.0-osx-i386.tar.gz'
version '1.3.0-i386'
sha256 '278454d8d0a08602b6b0c3d3c6e1d9f051fe2115f4c439663cc4b5ac65bdf2c5'
end
2010-10-12 15:43:12 +00:00
2013-01-09 05:32:45 +00:00
skip_clean 'libexec'
option '32-bit'
2012-02-25 19:44:20 +00:00
2010-01-12 21:50:19 +00:00
def install
libexec.install Dir['*']
# The scripts don't dereference symlinks correctly.
# Help them find stuff in libexec. - @adamv
inreplace Dir["#{libexec}/bin/*"] do |s|
s.change_make_var! "RUNNER_SCRIPT_DIR", "#{libexec}/bin"
end
bin.install_symlink Dir["#{libexec}/bin/*"]
2010-01-12 21:50:19 +00:00
end
end