From 2d52692f6284354b0a5b7950f44607953168233e Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Thu, 12 Oct 2023 18:55:10 +0000 Subject: [PATCH 1/3] Bumps in ionic : ci_matching_branch/bump_ionic_gz-sensors9 Signed-off-by: Ian Chen --- Aliases/gz-sensors9 | 1 - Formula/gz-sensors9.rb | 70 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) delete mode 120000 Aliases/gz-sensors9 create mode 100644 Formula/gz-sensors9.rb diff --git a/Aliases/gz-sensors9 b/Aliases/gz-sensors9 deleted file mode 120000 index d6b08123c..000000000 --- a/Aliases/gz-sensors9 +++ /dev/null @@ -1 +0,0 @@ -../Formula/gz-sensors8.rb \ No newline at end of file diff --git a/Formula/gz-sensors9.rb b/Formula/gz-sensors9.rb new file mode 100644 index 000000000..2a860c70f --- /dev/null +++ b/Formula/gz-sensors9.rb @@ -0,0 +1,70 @@ +class GzSensors9 < Formula + desc "Sensors library for robotics applications" + homepage "https://github.com/gazebosim/gz-sensors" + url "https://github.com/gazebosim/gz-sensors.git", branch: "main" + version "8.999.999-0-20231012" + license "Apache-2.0" + + head "https://github.com/gazebosim/gz-sensors.git", branch: "main" + + depends_on "cmake" => [:build, :test] + depends_on "pkg-config" => [:build, :test] + + depends_on "gz-cmake3" + depends_on "gz-common5" + depends_on "gz-math7" + depends_on "gz-msgs10" + depends_on "gz-rendering8" + depends_on "gz-transport13" + depends_on "protobuf" + depends_on "sdformat14" + + def install + cmake_args = std_cmake_args + cmake_args << "-DBUILD_TESTING=OFF" + cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}" + + mkdir "build" do + system "cmake", "..", *cmake_args + system "make", "install" + end + end + + test do + (testpath/"test.cpp").write <<-EOS + #include + + int main() + { + gz::sensors::Noise noise(gz::sensors::NoiseType::NONE); + + return 0; + } + EOS + (testpath/"CMakeLists.txt").write <<-EOS + cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) + find_package(gz-sensors9 QUIET REQUIRED) + add_executable(test_cmake test.cpp) + target_link_libraries(test_cmake gz-sensors9::gz-sensors9) + EOS + # test building with pkg-config + system "pkg-config", "gz-sensors9" + cflags = `pkg-config --cflags gz-sensors9`.split + ldflags = `pkg-config --libs gz-sensors9`.split + system ENV.cc, "test.cpp", + *cflags, + *ldflags, + "-lc++", + "-o", "test" + system "./test" + # test building with cmake + mkdir "build" do + system "cmake", ".." + system "make" + system "./test_cmake" + end + # check for Xcode frameworks in bottle + cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}" + system cmd_not_grep_xcode + end +end From bc950ee7f8465bec40353d2ebe6a9cc093198194 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Mon, 16 Oct 2023 17:34:33 -0500 Subject: [PATCH 2/3] Bumps in ionic : ci_matching_branch/bump_ionic_gz-sensors9 Signed-off-by: Addisu Z. Taddese --- Formula/gz-sensors9.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/gz-sensors9.rb b/Formula/gz-sensors9.rb index 2a860c70f..6c1221e19 100644 --- a/Formula/gz-sensors9.rb +++ b/Formula/gz-sensors9.rb @@ -2,7 +2,7 @@ class GzSensors9 < Formula desc "Sensors library for robotics applications" homepage "https://github.com/gazebosim/gz-sensors" url "https://github.com/gazebosim/gz-sensors.git", branch: "main" - version "8.999.999-0-20231012" + version "8.999.999-0-20231016" license "Apache-2.0" head "https://github.com/gazebosim/gz-sensors.git", branch: "main" @@ -10,14 +10,14 @@ class GzSensors9 < Formula depends_on "cmake" => [:build, :test] depends_on "pkg-config" => [:build, :test] - depends_on "gz-cmake3" - depends_on "gz-common5" + depends_on "gz-cmake4" + depends_on "gz-common6" depends_on "gz-math7" - depends_on "gz-msgs10" - depends_on "gz-rendering8" - depends_on "gz-transport13" + depends_on "gz-msgs11" + depends_on "gz-rendering9" + depends_on "gz-transport14" depends_on "protobuf" - depends_on "sdformat14" + depends_on "sdformat15" def install cmake_args = std_cmake_args From ceaf95137b9bdecc6389e27f7398364f6037636b Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Mon, 16 Oct 2023 18:04:00 -0500 Subject: [PATCH 3/3] Bumps in ionic : ci_matching_branch/bump_ionic_gz-sensors9 Signed-off-by: Addisu Z. Taddese --- Formula/gz-sensors9.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/gz-sensors9.rb b/Formula/gz-sensors9.rb index 6c1221e19..635cb4cc8 100644 --- a/Formula/gz-sensors9.rb +++ b/Formula/gz-sensors9.rb @@ -12,7 +12,7 @@ class GzSensors9 < Formula depends_on "gz-cmake4" depends_on "gz-common6" - depends_on "gz-math7" + depends_on "gz-math8" depends_on "gz-msgs11" depends_on "gz-rendering9" depends_on "gz-transport14"