Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pugixml 1.15 #203956

Merged
merged 2 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2562,6 +2562,7 @@ ptex
ptpython
pueue
pug
pugixml
pulsarctl
pure
pure-ftpd
Expand Down
16 changes: 9 additions & 7 deletions Formula/p/pugixml.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Pugixml < Formula
desc "Light-weight C++ XML processing library"
homepage "https://pugixml.org/"
url "https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz"
sha256 "2f10e276870c64b1db6809050a75e11a897a8d7456c4be5c6b2e35a11168a015"
url "https://github.com/zeux/pugixml/releases/download/v1.15/pugixml-1.15.tar.gz"
sha256 "655ade57fa703fb421c2eb9a0113b5064bddb145d415dd1f88c79353d90d511a"
license "MIT"

livecheck do
Expand All @@ -24,9 +24,12 @@ class Pugixml < Formula
depends_on "cmake" => :build

def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args,
"-DBUILD_SHARED_LIBS=ON",
"-DPUGIXML_BUILD_SHARED_AND_STATIC_LIBS=ON"
args = %w[
-DBUILD_SHARED_LIBS=ON
-DPUGIXML_BUILD_SHARED_AND_STATIC_LIBS=ON
]

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand All @@ -50,8 +53,7 @@ def install
<root>Hello world!</root>
XML

system ENV.cxx, "test.cpp", "-o", "test", "-I#{include}",
"-L#{lib}", "-lpugixml"
system ENV.cxx, "test.cpp", "-o", "test", "-I#{include}", "-L#{lib}", "-lpugixml"
system "./test"
end
end
Loading