mcrypt: use options DSL

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-12 12:57:18 -05:00
parent 0690f6eed2
commit eca10ac892

View file

@ -5,12 +5,10 @@ class Mcrypt < Formula
homepage 'http://mcrypt.sourceforge.net'
md5 '0821830d930a86a5c69110837c55b7da'
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-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--mandir=#{man}"
system "make install"