diff options
| author | Adam Vandenberg | 2010-04-30 14:35:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-30 14:35:34 -0700 |
| commit | 7d7693e3a1aed9bae16a818de0d480916eda1ee4 (patch) | |
| tree | 83db5377488b0c0cbc04dd1d9e10e827c873046b /Library/Formula | |
| parent | 667dea077dad166526f93f16950a2dce668b0db0 (diff) | |
| download | homebrew-7d7693e3a1aed9bae16a818de0d480916eda1ee4.tar.bz2 | |
Add HEAD (1.3.x) to redis.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/redis.rb | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb index 3b707d6f6..2a3cd2f4a 100644 --- a/Library/Formula/redis.rb +++ b/Library/Formula/redis.rb @@ -2,18 +2,23 @@ require 'formula' class Redis <Formula url 'http://redis.googlecode.com/files/redis-1.2.6.tar.gz' + head 'git://github.com/antirez/redis.git' homepage 'http://code.google.com/p/redis/' sha1 'c71aef0b3f31acb66353d86ba57dd321b541043f' def install + ENV.gcc_4_2 # Breaks with LLVM + system "make" + + %w( redis-benchmark redis-cli redis-server redis-stat redis-check-dump ).each { |p| + # Some of these commands are only in 1.2.x, some only in head + bin.install p rescue nil + } + %w( run db/redis log ).each do |path| (var+path).mkpath end - ENV.gcc_4_2 - system "make" - bin.install %w( redis-benchmark redis-cli redis-server redis-stat ) - # Fix up default conf file to match our paths inreplace "redis.conf" do |s| s.gsub! "/var/run/redis.pid", "#{var}/run/redis.pid" @@ -24,6 +29,12 @@ class Redis <Formula end def caveats - "To start redis: $ redis-server #{etc}/redis.conf" + <<-EOS.undent + To start redis: + redis-server #{etc}/redis.conf + + To access the server: + redis-client + EOS end end |
