homebrew-core/Formula/libzzip.rb
Jack Nagel 4aeff92e35 libzzip: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12 13:01:00 -05:00

24 lines
798 B
Ruby

require 'formula'
class Libzzip < Formula
url 'http://downloads.sourceforge.net/project/zziplib/zziplib13/0.13.61/zziplib-0.13.61.tar.bz2'
homepage 'http://sourceforge.net/projects/zziplib/'
sha1 'c7e526165e674962303d62798963d89524636813'
depends_on 'pkg-config' => :build
option :universal
def install
if build.universal?
ENV.universal_binary
# See: https://sourceforge.net/tracker/?func=detail&aid=3511669&group_id=6389&atid=356389
ENV["ac_cv_sizeof_long"] = "(LONG_BIT/8)"
end
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
ENV.deparallelize # fails without this when a compressed file isn't ready.
system "make check" # runing this after install bypasses DYLD issues.
end
end