Skip to content

Commit

Permalink
Bumps in ionic : ci_matching_branch/bump_ionic_gz-tools3
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Oct 9, 2023
1 parent b775901 commit f2808ff
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
1 change: 0 additions & 1 deletion Aliases/gz-tools3

This file was deleted.

45 changes: 45 additions & 0 deletions Formula/gz-tools3.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
class GzTools3 < Formula

Check failure on line 1 in Formula/gz-tools3.rb

View workflow job for this annotation

GitHub Actions / test-bot

Formula gazebo9 should also have a conflict declared with gz-tools3

Check failure on line 1 in Formula/gz-tools3.rb

View workflow job for this annotation

GitHub Actions / test-bot

Formula gazebo11 should also have a conflict declared with gz-tools3
desc "Entry point for Gazebo command-line tools"
homepage "https://gazebosim.org"
url "https://github.com/gazebosim/gz-tools.git", branch: "main"
version "2.999.999~0~20231009"
license "Apache-2.0"

head "https://github.com/gazebosim/gz-tools.git", branch: "gz-tools3"

depends_on "cmake" => :build
depends_on "libyaml" => :test
depends_on "ruby" => :test
depends_on "gz-cmake4"

conflicts_with "gazebo9", because: "both install bin/gz"
conflicts_with "gazebo11", because: "both install bin/gz"

def install
inreplace "src/gz.in" do |s|
s.gsub! "@CMAKE_INSTALL_PREFIX@", HOMEBREW_PREFIX
end

# Use build folder
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end

test do
mkdir testpath/"config"
(testpath/"config/test.yaml").write <<~EOS
--- # Test subcommand
format: 1.0.0
library_name: test
library_path: path
library_version: 2.0.0
commands:
- test : Test utility
---
EOS
ENV["GZ_CONFIG_PATH"] = testpath/"config/"
system "#{bin}/gz", "test", "--versions"
end
end

0 comments on commit f2808ff

Please sign in to comment.