Skip to content

Commit

Permalink
xclogparser 0.2.40
Browse files Browse the repository at this point in the history
xclogparser: add version patch

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Dec 17, 2024
1 parent 08b6625 commit cbad058
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions Formula/x/xclogparser.rb
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
Expand All @@ -18,9 +18,30 @@ 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 warning on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle xclogparser` failed on macOS Sequoia (15) on Apple Silicon!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle xclogparser` failed on macOS Sonoma (14) on Apple Silicon!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle xclogparser` failed on macOS Ventura (13) on Apple Silicon!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle xclogparser` failed on Linux!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew install --verbose --formula --build-bottle xclogparser` failed on macOS Ventura (13)!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A

Check failure on line 29 in Formula/x/xclogparser.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew install --verbose --formula --build-bottle xclogparser` failed on macOS Sonoma (14)!

::error::An exception occurred within a child process:%0A Errno::ENOENT: No such file or directory @ rb_sysopen - Sources/system-zlib/include/module.modulemap%0A
system "swift", "build", "-c", "release", "--disable-sandbox"
zlib_include = Formula["zlib"].opt_include

# Patch module.modulemap to use the Linuxbrew zlib include path
# upstream pr to support homebrew zlib, https://github.com/1024jp/GzipSwift/pull/71
inreplace "Sources/system-zlib/include/module.modulemap" do |s|
s.gsub! "/usr/include/zlib.h", "#{zlib_include}/zlib.h"
s.gsub! "/usr/include/zconf.h", "#{zlib_include}/zconf.h"
end

args = if OS.mac?
["--disable-sandbox"]
else
["--static-swift-stdlib"]
end
system "swift", "build", *args, "--configuration", "release"
bin.install ".build/release/xclogparser"
end

Expand Down

0 comments on commit cbad058

Please sign in to comment.