diff --git a/Formula/ignition-gazebo6.rb b/Formula/ignition-gazebo6.rb index 7366a914e..6366cc0b6 100644 --- a/Formula/ignition-gazebo6.rb +++ b/Formula/ignition-gazebo6.rb @@ -4,7 +4,7 @@ class IgnitionGazebo6 < Formula url "https://osrf-distributions.s3.amazonaws.com/ign-gazebo/releases/ignition-gazebo6-6.16.0.tar.bz2" sha256 "1e61148e8b49a5a20f4cac1e116ce5c4d8de3718a1d26e41a1cec394ce5ea9e4" license "Apache-2.0" - revision 1 + revision 2 head "https://github.com/gazebosim/gz-sim.git", branch: "ign-gazebo6" @@ -44,11 +44,15 @@ def install cmake_args = std_cmake_args cmake_args << "-DBUILD_TESTING=OFF" cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}" + cmake_args << "-DPython3_EXECUTABLE=#{which("python3")}" mkdir "build" do system "cmake", "..", *cmake_args system "make", "install" end + + (lib/"python3.11/site-packages").install Dir[lib/"python/*"] + rmdir prefix/"lib/python" end test do @@ -134,5 +138,7 @@ def install # check for Xcode frameworks in bottle cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}" system cmd_not_grep_xcode + # check python import + system Formula["python@3.11"].opt_bin/"python3.11", "-c", "import ignition.gazebo" end end diff --git a/Formula/ignition-math6.rb b/Formula/ignition-math6.rb index 19fa3b875..4a9ab8337 100644 --- a/Formula/ignition-math6.rb +++ b/Formula/ignition-math6.rb @@ -4,6 +4,7 @@ class IgnitionMath6 < Formula url "https://osrf-distributions.s3.amazonaws.com/ign-math/releases/ignition-math6-6.15.1.tar.bz2" sha256 "a9e96a4e28d7d92d4d054cdae7cef28f1d8397b72433398bfc68855956531170" license "Apache-2.0" + revision 1 head "https://github.com/gazebosim/gz-math.git", branch: "ign-math6" @@ -25,12 +26,16 @@ def install cmake_args = std_cmake_args cmake_args << "-DBUILD_TESTING=OFF" cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpath}" + cmake_args << "-DPython3_EXECUTABLE=#{which("python3")}" # Use build folder mkdir "build" do system "cmake", "..", *cmake_args system "make", "install" end + + (lib/"python3.11/site-packages").install Dir[lib/"python/*"] + rmdir prefix/"lib/python" end test do @@ -67,5 +72,7 @@ def install # check for Xcode frameworks in bottle cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}" system cmd_not_grep_xcode + # check python import + system Formula["python@3.11"].opt_bin/"python3.11", "-c", "import ignition.math" end end