From d9be6bf24034d974d74db134e6ad452169ee5348 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 24 Oct 2024 20:31:17 -0400 Subject: [PATCH 1/2] log4cplus 2.1.2 autobump: add log4cplus Signed-off-by: Rui Chen log4cplus: update build and test Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/l/log4cplus.rb | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/autobump.txt b/.github/autobump.txt index 195f387b8852..42c75d9907ad 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -1710,6 +1710,7 @@ lndir localai localstack locust +log4cplus log4cxx logdy logrotate diff --git a/Formula/l/log4cplus.rb b/Formula/l/log4cplus.rb index f4620a2d338b..0da375563d02 100644 --- a/Formula/l/log4cplus.rb +++ b/Formula/l/log4cplus.rb @@ -1,8 +1,8 @@ class Log4cplus < Formula desc "Logging Framework for C++" homepage "https://sourceforge.net/p/log4cplus/wiki/Home/" - url "https://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/2.1.1/log4cplus-2.1.1.tar.xz" - sha256 "a1d8e67a207f90a9dd4f82b28a1f3ac6dead5a80c2bed071277a9e865698a82b" + url "https://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/2.1.2/log4cplus-2.1.2.tar.xz" + sha256 "fbdabb4ef734fe1cc62169b23f0b480cc39127ac7b09b810a9c1229490d67e9e" license all_of: ["Apache-2.0", "BSD-2-Clause"] livecheck do @@ -21,16 +21,17 @@ class Log4cplus < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "fcece8684fc7a7537ede4ed961dbf7642d6fafe260210ece0ad155bf0621ee1b" end + depends_on "pkg-config" => [:build, :test] + def install ENV.cxx11 - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" + system "./configure", *std_configure_args.reject { |s| s["--disable-debug"] } system "make", "install" end test do # https://github.com/log4cplus/log4cplus/blob/65e4c3/docs/examples.md - (testpath/"test.cpp").write <<~EOS + (testpath/"test.cpp").write <<~CPP #include #include #include @@ -47,9 +48,10 @@ def install LOG4CPLUS_WARN(logger, LOG4CPLUS_TEXT("Hello, World!")); return 0; } - EOS - system ENV.cxx, "-std=c++11", "-I#{include}", "-L#{lib}", - "test.cpp", "-o", "test", "-llog4cplus" + CPP + + pkg_config_flags = shell_output("pkg-config --cflags --libs log4cplus").chomp.split + system ENV.cxx, "-std=c++11", "-o", "test", "test.cpp", *pkg_config_flags assert_match "Hello, World!", shell_output("./test") end end From 1fdc373c1ef8a59408324da22d5be19817ad6b5b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 25 Oct 2024 07:23:22 +0000 Subject: [PATCH 2/2] log4cplus: update 2.1.2 bottle. --- Formula/l/log4cplus.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Formula/l/log4cplus.rb b/Formula/l/log4cplus.rb index 0da375563d02..80048d83b73c 100644 --- a/Formula/l/log4cplus.rb +++ b/Formula/l/log4cplus.rb @@ -11,14 +11,12 @@ class Log4cplus < Formula end bottle do - sha256 cellar: :any, arm64_sequoia: "0c8f6c4ca96257a9deceb1dbb47c5957fb5cc977718a5424e2598563942c15ad" - sha256 cellar: :any, arm64_sonoma: "4ddfdeb6e15d5f1574b231af82c36026d1cf71febace1c1ffaf88ad8313f0395" - sha256 cellar: :any, arm64_ventura: "32be0936cf139beb9fe91fc99c94970099d052b9dd29d6f6c67e3269de3142a9" - sha256 cellar: :any, arm64_monterey: "fa920ab9e524159f4b435a2c911e721568e1ec70eb0cb3532ab582883a5a3ceb" - sha256 cellar: :any, sonoma: "22a32b40fddc514edb3e1e64f7d184e420116c940c7f34a044cb3ba729955bbc" - sha256 cellar: :any, ventura: "585325a99b63b4323932e9811196b496fc3426516ef7728243773a41bdcf08c7" - sha256 cellar: :any, monterey: "6fb4f1b70586607de4741f45793c6b0a3770c77e2824818448653b0c474d4d28" - sha256 cellar: :any_skip_relocation, x86_64_linux: "fcece8684fc7a7537ede4ed961dbf7642d6fafe260210ece0ad155bf0621ee1b" + sha256 cellar: :any, arm64_sequoia: "c2330f21e0b3c6f379e155d8270f758067c67d5086bad74350dd6841114f70ac" + sha256 cellar: :any, arm64_sonoma: "8035d145371eff042f792dc7a2627c9b67a3f20530fb2f66e07e7b4bd25eeb93" + sha256 cellar: :any, arm64_ventura: "b60bac8e9aaf34f6b81055d7ebc3578462e1e144855e1e3d416e54fa87346fab" + sha256 cellar: :any, sonoma: "b3cbcf75711ecb77bbf59942f30e8e6767105753b5363cc8cd8ca5d13201314b" + sha256 cellar: :any, ventura: "7c62fc3ea51cc81fae1f97f5649898fdb567667b67d99fd419347e237b636fcf" + sha256 cellar: :any_skip_relocation, x86_64_linux: "038cc5359e99cc5e80a899304e02f22c54156539c5b3db4e03516982ebdb3c12" end depends_on "pkg-config" => [:build, :test]