2011-03-10 05:11:03 +00:00
|
|
|
class Gdbm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GNU database manager"
|
2015-02-08 03:17:52 +00:00
|
|
|
homepage "https://www.gnu.org/software/gdbm/"
|
2015-06-05 22:59:19 +00:00
|
|
|
url "http://ftpmirror.gnu.org/gdbm/gdbm-1.11.tar.gz"
|
2015-02-08 03:17:52 +00:00
|
|
|
mirror "https://ftp.gnu.org/gnu/gdbm/gdbm-1.11.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3"
|
2009-12-05 01:52:02 +00:00
|
|
|
|
2014-02-22 22:42:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-08 05:16:15 +00:00
|
|
|
revision 2
|
2015-09-13 10:03:54 +00:00
|
|
|
sha256 "59868f18b7b88e9c47cfd802435618881ac8858408d3ebfb009803db0c415a32" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "1ad0aacc00881d05f8f894d8d117e4e0b8b5f5afc15a37a3f7c735c040ef0c5a" => :yosemite
|
|
|
|
sha256 "440dc9069280d474af52847f18dbcdbb10813a237522f650fcbe6c63dae784dc" => :mavericks
|
|
|
|
sha256 "bf77827fb3e51ed8691ed357014343f72587cbd2dd7248922ac8f70117e4c5e8" => :mountain_lion
|
2014-02-22 22:42:44 +00:00
|
|
|
end
|
|
|
|
|
2012-08-09 05:35:31 +00:00
|
|
|
option :universal
|
2015-02-08 03:17:52 +00:00
|
|
|
option "with-libgdbm-compat", "Build libgdbm_compat, a compatibility layer which provides UNIX-like dbm and ndbm interfaces."
|
2012-06-19 15:59:44 +00:00
|
|
|
|
2009-12-05 01:52:02 +00:00
|
|
|
def install
|
2012-08-09 05:35:31 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2015-02-08 03:17:52 +00:00
|
|
|
|
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--enable-libgdbm-compat" if build.with? "libgdbm-compat"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2014-11-01 15:31:44 +00:00
|
|
|
system "make", "install"
|
2009-12-05 01:52:02 +00:00
|
|
|
end
|
2015-01-04 08:46:34 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
pipe_output("#{bin}/gdbmtool --norc --newdb test", "store 1 2\nquit\n")
|
|
|
|
assert File.exist?("test")
|
|
|
|
assert_match /2/, pipe_output("#{bin}/gdbmtool --norc test", "fetch 1\nquit\n")
|
|
|
|
end
|
2009-12-05 01:52:02 +00:00
|
|
|
end
|