homebrew-core/Formula/keydb.rb

33 lines
1.4 KiB
Ruby

class Keydb < Formula
desc "Multithreaded fork of Redis"
homepage "https://keydb.dev"
url "https://github.com/JohnSully/KeyDB/archive/v6.2.0.tar.gz"
sha256 "61a2996c8d56e564930119b115674032d8a1de2b50d67a9c555be6e7975ed567"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "2f7e445ed9f9f4707e12e2dfebfbb339abc24e3abe2380101f960ac730f5a7e9"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6dfcf7a5b5ff5541ef7ddefe4f5571cd9e0e52a6662a001d21b718bee6f4d48d"
sha256 cellar: :any_skip_relocation, monterey: "edfdfc387c388f01925310c85d71aff3cb912e793943ca3b2bb650f1d844e63f"
sha256 cellar: :any_skip_relocation, big_sur: "6a23ffe855a1778880d8dda557da1b993899a83472cfeae29822504812ded307"
sha256 cellar: :any_skip_relocation, catalina: "f14d248e73516c85b53a72285301dac6a43d78fa39606787a127d7e21bda8a0f"
sha256 cellar: :any_skip_relocation, mojave: "22932ae18bbe44f1f580f292ef9aceb379c0774573e6df30be20655a35161392"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6572526b3ffbd3161f8d93c32e1283ae9199286046a25d5b6b03b30074abe906"
end
uses_from_macos "curl"
on_linux do
depends_on "util-linux"
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
output = shell_output("#{bin}/keydb-server --test-memory 2")
assert_match "Your memory passed this test", output
end
end