minizip-ng 3.0.1 (renamed from minizip2)

- fix test

Closes #73488.

Co-authored-by: rui <rui@chenrui.dev>
Co-authored-by: Seeker <meaningseeking@protonmail.com>
Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
master
Carlo Cabrera 2021-02-11 05:43:12 +00:00
parent f925caa10d
commit 413a97e9bd
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 7 additions and 12 deletions

View File

@ -1,16 +1,10 @@
class Minizip2 < Formula
class MinizipNg < Formula
desc "Zip file manipulation library with minizip 1.x compatibility layer"
homepage "https://github.com/nmoinvaz/minizip"
url "https://github.com/nmoinvaz/minizip/archive/2.10.6.tar.gz"
sha256 "c2889690b1a1f55898d37d3fb51f05183a4861fb7d53ab702c6a5777bf232b75"
homepage "https://github.com/zlib-ng/minizip-ng"
url "https://github.com/zlib-ng/minizip-ng/archive/3.0.1.tar.gz"
sha256 "96c95b274dd535984ce0e87691691388f2b976106e8cf8d527b15da552ac94e4"
license "Zlib"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "5f5969b8323a391996b022af84e1eee37653367bee7e753ee7810d5e603ca4e7"
sha256 cellar: :any_skip_relocation, big_sur: "22ef440bea17e14161ab0234e300eb962bf5f45bed7354ce496c955c106d91da"
sha256 cellar: :any_skip_relocation, catalina: "535b3e0e48e6d4d4f498802dac216a60661045869e87c6671d7ad821838f9240"
sha256 cellar: :any_skip_relocation, mojave: "e473a772186ca62e789f0164f2c8733091c828cda07096c182fa1b7361d4e064"
end
head "https://github.com/zlib-ng/minizip-ng.git", branch: "dev"
depends_on "cmake" => :build
depends_on "pkg-config" => :build
@ -46,7 +40,7 @@ class Minizip2 < Formula
}
EOS
system ENV.cc, "test.c", "-I#{include}", "-L#{lib}",
"-lminizip", "-lz", "-lbz2", "-liconv",
"-lminizip", "-lz", "-lbz2", "-liconv", "-lcompression",
"-L#{Formula["zstd"].opt_lib}", "-lzstd", "-llzma",
"-framework", "CoreFoundation", "-framework", "Security", "-o", "test"
system "./test"

View File

@ -81,6 +81,7 @@
"lua51": "lua@5.1",
"mat": "mat2",
"maven32": "maven@3.2",
"minizip2": "minizip-ng",
"mkl-dnn": "onednn",
"mobile-shell": "mosh",
"mongo-c": "mongo-c-driver",