minizip: use patch DSL

This commit is contained in:
Jack Nagel 2014-03-19 20:21:14 -05:00
parent f6696ab131
commit ec6c4e074a

View file

@ -4,9 +4,7 @@ class Minizip < Formula
homepage 'http://www.winimage.com/zLibDll/minizip.html'
url 'http://zlib.net/zlib-1.2.8.tar.gz'
sha1 'a4d316c404ff54ca545ea71a27af7dbc29817088'
# version for minizip, not zlib
version '1.1'
version '1.1' # version for minizip, not zlib
option :universal
@ -14,13 +12,11 @@ class Minizip < Formula
depends_on 'automake' => :build
depends_on 'libtool' => :build
def patches
# configure script fails to detect the right compiler when "cc" is
# clang, not gcc.
# see: https://github.com/Homebrew/homebrew-dupes/pull/228
# https://github.com/madler/zlib/pull/54
DATA
end
# configure script fails to detect the right compiler when "cc" is
# clang, not gcc.
# see: https://github.com/Homebrew/homebrew-dupes/pull/228
# https://github.com/madler/zlib/pull/54
patch :DATA
def install
ENV.universal_binary if build.universal?