homebrew-core/Formula/whitedb.rb
2019-12-13 16:53:43 +01:00

33 lines
1.3 KiB
Ruby

class Whitedb < Formula
desc "Lightweight in-memory NoSQL database library"
homepage "https://www.whitedb.org/"
url "https://www.whitedb.org/whitedb-0.7.3.tar.gz"
sha256 "10c4ccd754ed2d53dbdef9ec16c88c732aa73d923fc0ee114e7e3a78a812849d"
bottle do
cellar :any
sha256 "9ec140c350c8233dcbd67def0607eb1cdb764fd3f14ac57ac3901eeeda554e0f" => :catalina
sha256 "05673924ef2226616618002bcbcee6241db8f1ce34339ff38785fd4fe82cda43" => :mojave
sha256 "3dc724386650bbbf608c4742d954c338e1927427e4c4f1a9c0d6255cc8deee5d" => :high_sierra
sha256 "44639bc83668def2e81b68318dbdb5347f9262937ddb6cfdfd7303aae1ce05a6" => :sierra
sha256 "c0f4e666e9cc755bbff0711a1494c9705928a34a565701147bae31793f505163" => :el_capitan
sha256 "0fa38dca524c08f51fa724fb49df5a3ebdde46a3251b2a282d5343b36c4c249f" => :yosemite
sha256 "ba756975f0dbdfa4259a5a4271414765644b0abe8c771d0c091238909f0968d2" => :mavericks
end
def install
# https://github.com/priitj/whitedb/issues/15
ENV.append "CFLAGS", "-std=gnu89"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/wgdb", "create", "512k"
system "#{bin}/wgdb", "add", "42"
system "#{bin}/wgdb", "select", "1"
system "#{bin}/wgdb", "free"
end
end