homebrew-core/Formula/twemcache.rb
2019-08-06 07:40:34 +08:00

30 lines
922 B
Ruby

class Twemcache < Formula
desc "Twitter fork of memcached"
homepage "https://github.com/twitter/twemcache"
url "https://github.com/twitter/twemcache/archive/v2.6.3.tar.gz"
sha256 "ab05927f7d930b7935790450172187afedca742ee7963d5db1e62164e7f4c92b"
revision 1
head "https://github.com/twitter/twemcache.git"
bottle do
cellar :any
sha256 "2c7fd2ce03cc16859264882f478137de35ece42a26ad9b10f23d668ddc1883d4" => :mojave
sha256 "9cc173642f9e53b723321a3013f2327b8a712c528c53ac5bd9fd2b9420244fcb" => :high_sierra
sha256 "ec7e5d41f887db3a41d89eadb64d16119a2d86427afd45de92e7a8ca55ce7ef2" => :sierra
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libevent"
def install
system "autoreconf", "-fvi"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system bin/"twemcache", "--help"
end
end