|
1 | 1 | class Xcbeautify < Formula |
2 | 2 | desc "Little beautifier tool for xcodebuild" |
3 | 3 | homepage "https://github.com/cpisciotta/xcbeautify" |
4 | | - url "https://github.com/cpisciotta/xcbeautify/archive/refs/tags/2.30.1.tar.gz" |
5 | | - sha256 "6cc64ef9167a02b1c097f995941e93d756e27c570006ad6f9e9c83db83ed2603" |
| 4 | + url "https://github.com/cpisciotta/xcbeautify/archive/refs/tags/3.0.0.tar.gz" |
| 5 | + sha256 "de5c61f00adb8cfd56029a113920d5420345cdac4462e8eb3324a154d4765ac6" |
6 | 6 | license "MIT" |
7 | 7 | head "https://github.com/cpisciotta/xcbeautify.git", branch: "main" |
8 | 8 |
|
9 | 9 | bottle do |
10 | | - rebuild 1 |
11 | | - sha256 cellar: :any_skip_relocation, arm64_tahoe: "32b0d648f4c22e916db671283fc156f9e5c05e95c17c10c7a3ae54e18a4e03a9" |
12 | | - sha256 cellar: :any_skip_relocation, arm64_sequoia: "45aa6aae0d7a48a05719aa0bd20a3d49d2eb3b602763dbe7fdb20777c57f998e" |
13 | | - sha256 cellar: :any_skip_relocation, arm64_sonoma: "438d03f0c727ad6afdb8364d56abc2e2d61b17b4bca9d2fecba9b676618f9e9a" |
14 | | - sha256 cellar: :any_skip_relocation, arm64_ventura: "c0b0a8bd11267bec6d150639bdd0a954c663d784f1c1de63e8297a126c01d266" |
15 | | - sha256 cellar: :any_skip_relocation, sonoma: "3b103beb64a4a1c716f761ac978496184e220ede127efc1f44f8084cf62d9b63" |
16 | | - sha256 cellar: :any_skip_relocation, ventura: "d715ace6defcf2422803a14d01623ea3805978a611ba5cc0c9c17d5baaf01ca4" |
17 | | - sha256 cellar: :any_skip_relocation, arm64_linux: "dddc7750570072cb5609cc9bf22e88b5867e71633a2fe70aaf347124e545d532" |
18 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "d81bcec58668fba3b890772640a7d26f456a093379755b548a41bc3e9772f079" |
| 10 | + sha256 cellar: :any_skip_relocation, arm64_tahoe: "1f41771ed89a4c862b243befc8af41bae4522dd6d84f4f0688b6b7d70566c511" |
| 11 | + sha256 cellar: :any_skip_relocation, arm64_sequoia: "03457fe184970c4f780fa8bc01b00c9823a628750586a4e0b85b6f15e3f2743a" |
| 12 | + sha256 cellar: :any_skip_relocation, arm64_linux: "fde9a0a133d0c5d4cc2feff22f107a0893c6c49cedd40ccbc50882503bf03a74" |
| 13 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "1b34fa006a10d84d03bcd5db42f60e7a66a23265723329c5a3bcb1fc5641418a" |
19 | 14 | end |
20 | 15 |
|
21 | | - # needs Swift tools version 5.9.0 |
22 | | - depends_on xcode: ["15.0", :build] |
| 16 | + # needs Swift tools version 6.1.0 |
| 17 | + depends_on xcode: ["16.3", :build] |
23 | 18 |
|
24 | 19 | uses_from_macos "swift" => :build |
25 | 20 | uses_from_macos "libxml2" |
26 | 21 |
|
27 | 22 | def install |
28 | | - args = if OS.mac? |
29 | | - ["--disable-sandbox"] |
| 23 | + if OS.mac? |
| 24 | + args = %w[--disable-sandbox] |
30 | 25 | else |
31 | | - ["--static-swift-stdlib"] |
| 26 | + libxml2_lib = Formula["libxml2"].opt_lib |
| 27 | + args = %W[ |
| 28 | + --static-swift-stdlib |
| 29 | + -Xlinker -L#{libxml2_lib} |
| 30 | + ] |
| 31 | + ENV.prepend_path "LD_LIBRARY_PATH", libxml2_lib |
32 | 32 | end |
33 | 33 | system "swift", "build", *args, "--configuration", "release" |
34 | 34 | bin.install ".build/release/xcbeautify" |
|
0 commit comments