gdbm: use options dsl

This commit is contained in:
Adam Vandenberg 2012-08-08 22:35:31 -07:00
parent ecdf91f881
commit c3a021b742

View file

@ -6,12 +6,10 @@ class Gdbm < Formula
mirror 'http://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz'
md5 '88770493c2559dc80b561293e39d3570'
def options
[["--universal", "Build a universal binary."]]
end
option :universal
def install
ENV.universal_binary if ARGV.build_universal?
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",