|
1 | 1 | class UutilsFindutils < Formula
|
2 | 2 | desc "Cross-platform Rust rewrite of the GNU findutils"
|
3 | 3 | homepage "https://github.com/uutils/findutils"
|
4 |
| - url "https://github.com/uutils/findutils/archive/refs/tags/0.4.2.tar.gz" |
5 |
| - sha256 "b02fce9219393b47384229b397c7fbe479435ae8ccf8947f4b6cf7ac159d80f9" |
| 4 | + url "https://github.com/uutils/findutils/archive/refs/tags/0.5.0.tar.gz" |
| 5 | + sha256 "609ab3fdbf5a3ec8c3a3f014715d3f930e55a217915871a2861e0567c7be76d5" |
6 | 6 | license "MIT"
|
7 | 7 | head "https://github.com/uutils/findutils.git", branch: "main"
|
8 | 8 |
|
9 | 9 | bottle do
|
10 |
| - rebuild 2 |
11 |
| - sha256 cellar: :any, arm64_sonoma: "c9b20a92a27ec6e59d85ea2c7504c7b6b742a8fbce18584add667691bd8ed3a7" |
12 |
| - sha256 cellar: :any, arm64_ventura: "8be60da1dbce8c62f921e9906b76a9f3384b0f6e7d912a26afd633ac694889a2" |
13 |
| - sha256 cellar: :any, arm64_monterey: "a6a59cb7c7e765c4df4135ddcd8766f676e70d5c08dc004f744e598bfba3481f" |
14 |
| - sha256 cellar: :any, sonoma: "9b65bda73278dfffcb6977d9e5771bb0134050937b1b181bcee4a2308817e9d2" |
15 |
| - sha256 cellar: :any, ventura: "a3bc5fead8a81e9c9cf771ac931f204b4fa258be83a14ffd3648c9e5267784e5" |
16 |
| - sha256 cellar: :any, monterey: "ca68615f9cdca938f9a3d45833207603fd8a2fc9217c86fe0e79857e00c6ed8b" |
17 |
| - sha256 cellar: :any_skip_relocation, x86_64_linux: "c81b5f592d7e87310bbf175f5890e0e18a0177d2c819447021576bf8691f22a6" |
| 10 | + sha256 cellar: :any, arm64_sonoma: "12b5ed3eac76496fa83f17702d24b11780c8c4031ad0b7f533f2d1417cbe59d2" |
| 11 | + sha256 cellar: :any, arm64_ventura: "2efbfd98b7bd2f911537e1678efdebbd220301c5f9a432add77e03a2dd3b06a4" |
| 12 | + sha256 cellar: :any, arm64_monterey: "77f731f7daf405a9c353383908404522b28696f044d1ca4f5b350a7ec2395ffe" |
| 13 | + sha256 cellar: :any, sonoma: "0aa0883840290ac57612e718cb96757bc455f563be3124d01fbd8b86dea6d28e" |
| 14 | + sha256 cellar: :any, ventura: "74aef463704c438d36d16da8673a575e9d154143282fb17644f6b3f8097f312e" |
| 15 | + sha256 cellar: :any, monterey: "53c8dd5b4120465a9befd73b93894d35d5534e2d8d1c44acdfd82df4b167e382" |
| 16 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "786493398d788145040daa91d3f72f1cf53184bb318edb070c8fc88df5fba2a0" |
18 | 17 | end
|
19 | 18 |
|
20 |
| - # Use `llvm@15` to work around build failure with Clang 16 described in |
21 |
| - # https://github.com/rust-lang/rust-bindgen/issues/2312. |
22 |
| - # TODO: Switch back to `uses_from_macos "llvm" => :build` when `bindgen` is |
23 |
| - # updated to 0.62.0 or newer. There is a check in the `install` method. |
24 |
| - depends_on "llvm@15" => :build # for libclang |
25 | 19 | depends_on "pkg-config" => :build
|
26 | 20 | depends_on "rust" => :build
|
27 | 21 | depends_on "oniguruma"
|
28 | 22 |
|
| 23 | + uses_from_macos "llvm" => :build |
| 24 | + |
29 | 25 | def unwanted_bin_link?(cmd)
|
30 | 26 | %w[
|
31 | 27 | testing-commandline
|
32 | 28 | ].include? cmd
|
33 | 29 | end
|
34 | 30 |
|
35 | 31 | def install
|
36 |
| - bindgen_version = Version.new( |
37 |
| - (buildpath/"Cargo.lock").read |
38 |
| - .match(/name = "bindgen"\nversion = "(.*)"/)[1], |
39 |
| - ) |
40 |
| - if bindgen_version >= "0.62.0" |
41 |
| - odie "`bindgen` crate is updated to 0.62.0 or newer! Please remove " \ |
42 |
| - 'this check and try switching to `uses_from_macos "llvm" => :build`.' |
43 |
| - end |
44 |
| - |
45 |
| - # Work around an Xcode 15 linker issue which causes linkage against LLVM's |
46 |
| - # libunwind due to it being present in a library search path. |
47 |
| - ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm@15"].opt_lib |
48 |
| - |
49 |
| - ENV["LIBCLANG_PATH"] = Formula["llvm@15"].opt_lib.to_s |
50 | 32 | ENV["RUSTONIG_DYNAMIC_LIBONIG"] = "1"
|
51 | 33 | ENV["RUSTONIG_SYSTEM_LIBONIG"] = "1"
|
52 | 34 |
|
|
0 commit comments