sdb 0.10.1

Closes Homebrew/homebrew#50440.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
David Holm 2016-03-26 17:06:29 +01:00 committed by Mike McQuaid
parent 448950dea2
commit 532979357e

20
Formula/sdb.rb Normal file
View file

@ -0,0 +1,20 @@
class Sdb < Formula
desc "Ondisk/memory hashtable based on CDB."
homepage "https://github.com/radare/sdb"
url "http://www.radare.org/get/sdb-0.10.1.tar.gz"
sha256 "dc17ce4bc6c2a5f2e63a404c3444d7ce4992c735e0ab04c93eb03ef8d965b3fa"
depends_on "pkg-config" => :build
depends_on "vala" => :build
depends_on "glib"
def install
system "make"
system "make", "install", "PREFIX=#{prefix}"
end
test do
system bin/"sdb", testpath/"d", "hello=world"
assert_equal "world", shell_output("#{bin}/sdb #{testpath}/d hello").strip
end
end