homebrew-core/Formula/libzzip.rb

25 lines
798 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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