sparkey 0.2.0

This commit is contained in:
Jon Tai 2014-03-26 02:24:46 -07:00 committed by Mike McQuaid
parent b7fa0129a2
commit 5be8ab238d

28
Formula/sparkey.rb Normal file
View file

@ -0,0 +1,28 @@
require "formula"
class Sparkey < Formula
homepage "https://github.com/spotify/sparkey/"
url "https://github.com/spotify/sparkey/archive/sparkey-0.2.0.tar.gz"
sha1 "1b7dca2410dffb55d96b8e6eef384830b7d96553"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "snappy" => :build
def install
system "autoreconf", "--install"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "sparkey createlog -c snappy test.spl"
system "echo foo.bar | sparkey appendlog -d . test.spl"
system "sparkey writehash test.spl"
system "sparkey get test.spi foo | grep ^bar$"
end
end