@@ -2,22 +2,20 @@ class Swiftlint < Formula
22 desc "Tool to enforce Swift style and conventions"
33 homepage "https://github.com/realm/SwiftLint"
44 url "https://github.com/realm/SwiftLint.git" ,
5- tag : "0.61.0 " ,
6- revision : "cc6fbaf355caf9ebe02c1b631a8edaa6df9145c5 "
5+ tag : "0.62.1 " ,
6+ revision : "57dba9819eb3e2b25daf71a06eb414fda7e43078 "
77 license "MIT"
88 head "https://github.com/realm/SwiftLint.git" , branch : "main"
99
1010 no_autobump! because : :bumped_by_upstream
1111
1212 bottle do
13- sha256 cellar : :any_skip_relocation , arm64_tahoe : "f33b770513e12ed36ebb72e3812c8f45817c6fce39ef9bdedeb10a752d66fdc5"
14- sha256 cellar : :any_skip_relocation , arm64_sequoia : "4cac8a981bfeaa142813a7a3adc6334ed26efdaed6e6affc985a9ff47528487e"
15- sha256 cellar : :any_skip_relocation , arm64_sonoma : "34d8e5a9d66fefa9b415f1262586689be516b0ea54d8da45848555bf591dd72c"
16- sha256 cellar : :any , arm64_ventura : "d1abea2e22df0547b7ec21cfc90f8e8944421decfab6da7629e9a04a0fc8bd47"
17- sha256 cellar : :any_skip_relocation , sonoma : "8d476c377c7bda7b059ab3ebd5333d6010d62dc8c6a798ad2dcfefa4a03de13c"
18- sha256 cellar : :any , ventura : "18b7fdea8c79e9d301a19283f74351df655bc7f06945973cfe29cd78b4e33acc"
19- sha256 cellar : :any_skip_relocation , arm64_linux : "f248613371743e23145518694bde0d1183a5699a061157121fc68c200aeaa0ab"
20- sha256 cellar : :any_skip_relocation , x86_64_linux : "77136311e7954b0c8c50642de7f74a62050450dfb6ab46285105a13306ff816b"
13+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "645d718d3023ab095d464a9d4dab8b9d0d8c48376cdf2988ee34a3adb7ac5524"
14+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "81c68edee38e9e0ad01f2dc2be03737ca8aa421743de4cade528e21186853132"
15+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "68de57bd124178bf18323115007cdbf0ba1e2ec582a562a2126cc7e0e7ad5342"
16+ sha256 cellar : :any_skip_relocation , sonoma : "936a29b2f5854e35ced48b76a28793960f355893e25b21c1c3ba75ee97b442ea"
17+ sha256 cellar : :any_skip_relocation , arm64_linux : "6b5741f76bec584ab893f5a0736c43dc7aec73da6b0dc39db4908483c08818d9"
18+ sha256 cellar : :any_skip_relocation , x86_64_linux : "e924c70b57a9ab2cbad3eede28af82be6dce46db240fe4189a7cb6501d14ac2e"
2119 end
2220
2321 depends_on macos : :ventura
@@ -28,10 +26,16 @@ class Swiftlint < Formula
2826 uses_from_macos "libxml2"
2927
3028 def install
31- args = if OS . mac?
32- [ "--disable-sandbox" ]
29+ if OS . mac?
30+ args = [ "--disable-sandbox" ]
3331 else
34- [ "--static-swift-stdlib" ]
32+ libxml2_lib = Formula [ "libxml2" ] . opt_lib
33+ args = [
34+ "--static-swift-stdlib" ,
35+ "-Xlinker" , "-L#{ Formula [ "curl" ] . opt_lib } " ,
36+ "-Xlinker" , "-L#{ libxml2_lib } "
37+ ]
38+ ENV . prepend_path "LD_LIBRARY_PATH" , libxml2_lib
3539 end
3640 system "swift" , "build" , *args , "--configuration" , "release" , "--product" , "swiftlint"
3741 bin . install ".build/release/swiftlint"
0 commit comments