redis: style nits

- The doc directory no longer exists, and was triggering a warning
   about a no-op install.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-04-15 22:27:51 -05:00
parent 54d267786a
commit 33f08f67b3

View file

@ -17,14 +17,11 @@ class Redis < Formula
ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
# Head and stable have different code layouts
src = File.exists?('src/Makefile') ? 'src' : '.'
src = (buildpath/'src/Makefile').exist? ? buildpath/'src' : buildpath
system "make -C #{src}"
%w( redis-benchmark redis-cli redis-server redis-check-dump redis-check-aof ).each { |p|
bin.install "#{src}/#{p}" rescue nil
}
%w( run db/redis log ).each { |p| (var+p).mkpath }
%w[benchmark cli server check-dump check-aof].each { |p| bin.install src/"redis-#{p}" }
%w[run db/redis log].each { |p| (var+p).mkpath }
# Fix up default conf file to match our paths
inreplace "redis.conf" do |s|
@ -33,7 +30,6 @@ class Redis < Formula
s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1"
end
doc.install Dir["doc/*"]
etc.install "redis.conf"
plist_path.write startup_plist
plist_path.chmod 0644