-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xclogparser: add version patch Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
08b6625
commit 7ebee47
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class Xclogparser < Formula | ||
desc "Tool to parse the SLF serialization format used by Xcode" | ||
homepage "https://github.com/MobileNativeFoundation/XCLogParser" | ||
url "https://github.com/MobileNativeFoundation/XCLogParser/archive/refs/tags/v0.2.39.tar.gz" | ||
sha256 "b225891b94bbdb549ddbc9ffe838ad87f73ef7cc79934e3e23969bb1220eafd9" | ||
url "https://github.com/MobileNativeFoundation/XCLogParser/archive/refs/tags/v0.2.40.tar.gz" | ||
sha256 "b8bd40342ab3918c00ccc174e929a05de2a3cd196dff9ae3ef3dc8a21e0413b7" | ||
license "Apache-2.0" | ||
|
||
bottle do | ||
|
@@ -18,9 +18,21 @@ class Xclogparser < Formula | |
depends_on xcode: "13.0" | ||
|
||
uses_from_macos "swift" | ||
uses_from_macos "zlib" | ||
|
||
# version patch, upstream pr ref, https://github.com/MobileNativeFoundation/XCLogParser/pull/223 | ||
patch do | ||
url "https://github.com/MobileNativeFoundation/XCLogParser/commit/430107e1e6ec9d54ddaa301d64596c7311f7c966.patch?full_index=1" | ||
sha256 "5a4613af2ead387887e508032673d4fbb9afbf66fd919e9b16cf42b5b453218d" | ||
end | ||
|
||
def install | ||
Check failure on line 29 in Formula/x/xclogparser.rb GitHub Actions / Linux`brew install --verbose --formula --build-bottle xclogparser` failed on Linux!
|
||
system "swift", "build", "-c", "release", "--disable-sandbox" | ||
args = if OS.mac? | ||
["--disable-sandbox"] | ||
else | ||
["--static-swift-stdlib", "-Xcc", "-I#{Formula["zlib"].opt_include}"] | ||
end | ||
system "swift", "build", *args, "--configuration", "release" | ||
bin.install ".build/release/xclogparser" | ||
end | ||
|
||
|