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'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-02-25 19:35:03 +00:00
|
|
|
if Hardware.is_64_bit? and not ARGV.build_32_bit?
|
2012-04-17 17:09:39 +00:00
|
|
|
url 'http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.1/1.1.2/riak-1.1.2-osx-x86_64.tar.gz'
|
|
|
|
version '1.1.2-x86_64'
|
|
|
|
sha256 '84ca1068125abcbe9bcab47be3222ffbb7f8bca2125d5b6005af8ec33460a266'
|
2012-02-25 19:35:03 +00:00
|
|
|
else
|
2012-04-17 17:09:39 +00:00
|
|
|
url 'http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.1/1.1.2/riak-1.1.2-osx-i386.tar.gz'
|
|
|
|
version '1.1.2-i386'
|
|
|
|
sha256 'b2d1783aa1cf95870b4902c6770d9e17e272d3f24f49ae593811abe490a5aa91'
|
2012-02-25 19:35:03 +00:00
|
|
|
end
|
2010-10-12 15:43:12 +00:00
|
|
|
|
2012-02-25 19:35:03 +00:00
|
|
|
skip_clean :all
|
2011-10-24 19:35:52 +00:00
|
|
|
|
2012-02-25 19:44:20 +00:00
|
|
|
def options
|
|
|
|
[['--32-bit', 'Build 32-bit only.']]
|
|
|
|
end
|
|
|
|
|
2010-01-12 21:50:19 +00:00
|
|
|
def install
|
2012-02-25 19:35:03 +00:00
|
|
|
libexec.install Dir['*']
|
2010-04-26 17:39:57 +00:00
|
|
|
|
2012-02-25 19:35:03 +00:00
|
|
|
# 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
|
2011-01-12 22:11:17 +00:00
|
|
|
|
2012-02-25 19:35:03 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
2010-01-12 21:50:19 +00:00
|
|
|
end
|
2011-01-12 22:11:17 +00:00
|
|
|
end
|