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-harmonic: new formula #2326

Merged
merged 5 commits into from
Aug 9, 2023
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: 0 additions & 1 deletion Aliases/gz-harmonic

This file was deleted.

55 changes: 55 additions & 0 deletions Formula/gz-harmonic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
class GzGarden < Formula
include Language::Python::Virtualenv

desc "Collection of gazebo simulation software"
homepage "https://github.com/gazebosim/gz-garden"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
homepage "https://github.com/gazebosim/gz-garden"
homepage "https://github.com/gazebosim/gz-harmonic"

url "https://github.com/gazebosim/gz-harmonic.git", branch: "main"
version "0.999.999~0~20230728"
license "Apache-2.0"

head "https://github.com/gazebosim/gz-garden.git", branch: "main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
head "https://github.com/gazebosim/gz-garden.git", branch: "main"
head "https://github.com/gazebosim/gz-harmonic.git", branch: "main"


depends_on "cmake" => :build
depends_on "[email protected]" => [:build, :test]

depends_on "gz-cmake3"
depends_on "gz-common5"
depends_on "gz-fuel-tools8"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gz-fuel-tools9

depends_on "gz-gui7"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gz-gui8

depends_on "gz-launch7"
depends_on "gz-math7"
depends_on "gz-msgs9"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gz-msgs10

depends_on "gz-physics7"
depends_on "gz-plugin2"
depends_on "gz-rendering7"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gz-rendering8

depends_on "gz-sensors8"
depends_on "gz-sim8"
depends_on "gz-tools2"
depends_on "gz-transport12"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gz-transport13

depends_on "gz-utils2"
depends_on macos: :mojave # c++17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this line can be removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends_on "pkg-config"
depends_on "sdformat14"

resource "PyYAML" do
url "https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz"
sha256 "b8eac752c5e14d3eca0e6dd9199cd627518cb5ec06add0de9d32baeee6fe645d"
end

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end

venv = virtualenv_create(libexec, Formula["[email protected]"].opt_libexec/"bin/python")
%w[PyYAML vcstool].each do |pkg|
venv.pip_install pkg
end
end

test do
yaml_file = share/"gz/gz-garden/gazebodistro/collection-garden.yaml"
system libexec/"bin/vcs", "validate", "--input", yaml_file
end
end