2014-04-28 20:06:51 +00:00
|
|
|
class Nutcracker < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Proxy for memcached and redis"
|
2014-04-28 20:06:51 +00:00
|
|
|
homepage "https://github.com/twitter/twemproxy"
|
2015-03-15 14:49:27 +00:00
|
|
|
url "https://github.com/twitter/twemproxy/archive/v0.4.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "5f417fa3f03ac20fc5e9b36d831df107b00db90795a8155c1e66e2c38248ab13"
|
2015-03-15 14:49:27 +00:00
|
|
|
head "https://github.com/twitter/twemproxy.git"
|
|
|
|
|
2015-03-15 15:12:29 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "369a87e5fc60849e8fb1b40f8df1f57406f7b86fbb7b2b5503b3b1a75fc1ecfd" => :yosemite
|
|
|
|
sha256 "603e6a29b7f3c80680aa811e80e52ddbf5c5b35aa676d363ac79cdd254489d16" => :mavericks
|
|
|
|
sha256 "58e30a2d345c686e6cecb492a8356d9696d9200481c55fabc7460a55ae24e162" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-15 14:49:27 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-04-28 20:06:51 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-15 14:49:27 +00:00
|
|
|
system "autoreconf", "-ivf"
|
2014-04-28 20:06:51 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-03-15 14:49:27 +00:00
|
|
|
system "make", "install"
|
2014-04-28 20:06:51 +00:00
|
|
|
|
|
|
|
(share+"nutcracker").install "conf", "notes", "scripts"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{opt_sbin}/nutcracker", "-V"
|
|
|
|
end
|
|
|
|
end
|