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

gz-launch7: depend on gz-sim8 and gz-gui8 #2130

Merged
merged 2 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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: 0 additions & 1 deletion Aliases/gz-launch7

This file was deleted.

43 changes: 43 additions & 0 deletions Formula/gz-launch7.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class GzLaunch7 < Formula
desc "Launch libraries for robotics applications"
homepage "https://github.com/gazebosim/gz-launch"
url "https://github.com/gazebosim/gz-launch.git"
version "7.999.999~0~20221117"
license "Apache-2.0"

head "https://github.com/gazebosim/gz-launch.git", branch: "main"

depends_on "cmake" => :build
depends_on "pkg-config" => :build

depends_on "ffmpeg"
depends_on "gz-cmake3"
depends_on "gz-common5"
depends_on "gz-gui8"
depends_on "gz-msgs9"
depends_on "gz-plugin2"
depends_on "gz-sim8"
depends_on "gz-tools2"
depends_on "gz-transport12"
depends_on "qt@5"
depends_on "tinyxml2"

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
ENV["GZ_CONFIG_PATH"] = "#{opt_share}/gz"
system "gz", "launch", "--versions"
# check for Xcode frameworks in bottle
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
end
end