2011-03-10 05:11:03 +00:00
|
|
|
class Cdb < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Create and read constant databases"
|
2016-01-30 16:11:22 +00:00
|
|
|
homepage "https://cr.yp.to/cdb.html"
|
|
|
|
url "https://cr.yp.to/cdb/cdb-0.75.tar.gz"
|
2015-03-25 21:18:39 +00:00
|
|
|
sha256 "1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"
|
2010-08-29 14:27:35 +00:00
|
|
|
|
2015-03-27 13:41:41 +00:00
|
|
|
bottle do
|
2015-10-09 04:18:14 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-28 20:06:50 +00:00
|
|
|
rebuild 2
|
|
|
|
sha256 "16b08929c8c42feeb2df4eaed5b46967eca487aaa20585dc5869ba44a28f0fe8" => :sierra
|
2016-01-30 22:46:33 +00:00
|
|
|
sha256 "ac5a34c222875d86113275127632fe02ccc15c0332c7719cdac8321aa0f83bc4" => :el_capitan
|
|
|
|
sha256 "4181f08e221e9cebd1cb9f7dd0082fef86d8f8571831491464340b68be238186" => :yosemite
|
|
|
|
sha256 "e0be7db3074bc27f430c2b7536b4f3676cafc9d7e574971cdb592340be0fec06" => :mavericks
|
2015-03-27 13:41:41 +00:00
|
|
|
end
|
|
|
|
|
2010-08-29 14:27:35 +00:00
|
|
|
def install
|
2010-09-07 21:34:39 +00:00
|
|
|
inreplace "conf-home", "/usr/local", prefix
|
2015-03-25 21:18:39 +00:00
|
|
|
system "make", "setup"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
record = "+4,8:test->homebrew\n\n"
|
|
|
|
pipe_output("#{bin}/cdbmake db dbtmp", record, 0)
|
|
|
|
assert File.exist? "db"
|
|
|
|
assert_equal(record,
|
2015-10-09 04:35:10 +00:00
|
|
|
pipe_output("#{bin}/cdbdump", (testpath/"db").binread, 0))
|
2010-08-29 14:27:35 +00:00
|
|
|
end
|
|
|
|
end
|