diff options
| author | Jon Tai | 2014-03-26 02:24:46 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-26 16:46:46 +0000 |
| commit | aa9bacd5f2da5e620a210e0f08d95c9956731916 (patch) | |
| tree | 8ba3edd214de094cdf121a3b95983e2bfbc3d3ad /Library/Formula | |
| parent | ea3cb66d6923e81c7f083183b80b63364d2418c6 (diff) | |
| download | homebrew-aa9bacd5f2da5e620a210e0f08d95c9956731916.tar.bz2 | |
sparkey 0.2.0
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sparkey.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/sparkey.rb b/Library/Formula/sparkey.rb new file mode 100644 index 000000000..416c2f5d5 --- /dev/null +++ b/Library/Formula/sparkey.rb @@ -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 |
