diff options
| author | Alex Leighton | 2015-02-07 19:17:52 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-08 12:24:28 +0000 |
| commit | 0ec3542e573d4d2c9cef516e05c8f0ab5ba969dc (patch) | |
| tree | 86915e571e26bf4062712648e1ab4e2ef8047eb5 /Library/Formula | |
| parent | a17b3b3e72f391f506ddeedf1542608207200538 (diff) | |
| download | homebrew-0ec3542e573d4d2c9cef516e05c8f0ab5ba969dc.tar.bz2 | |
gdbm: add with-libgdbm-compat to build ndbm header
Closes #36640.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gdbm.rb | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Library/Formula/gdbm.rb b/Library/Formula/gdbm.rb index 30bfd85ad..94b812e74 100644 --- a/Library/Formula/gdbm.rb +++ b/Library/Formula/gdbm.rb @@ -1,7 +1,7 @@ class Gdbm < Formula - homepage "http://www.gnu.org/software/gdbm/" - url "http://ftpmirror.gnu.org/gdbm/gdbm-1.11.tar.gz" - mirror "http://ftp.gnu.org/gnu/gdbm/gdbm-1.11.tar.gz" + homepage "https://www.gnu.org/software/gdbm/" + url "https://ftpmirror.gnu.org/gdbm/gdbm-1.11.tar.gz" + mirror "https://ftp.gnu.org/gnu/gdbm/gdbm-1.11.tar.gz" sha1 "ce433d0f192c21d41089458ca5c8294efe9806b4" bottle do @@ -13,12 +13,20 @@ class Gdbm < Formula end option :universal + option "with-libgdbm-compat", "Build libgdbm_compat, a compatibility layer which provides UNIX-like dbm and ndbm interfaces." def install ENV.universal_binary if build.universal? - system "./configure", "--disable-dependency-tracking", - "--disable-silent-rules", - "--prefix=#{prefix}" + + args = %W[ + --disable-dependency-tracking + --disable-silent-rules + --prefix=#{prefix} + ] + + args << "--enable-libgdbm-compat" if build.with? "libgdbm-compat" + + system "./configure", *args system "make", "install" end |
