File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ class Sdformat15 < Formula
4
4
url "https://osrf-distributions.s3.amazonaws.com/sdformat/releases/sdformat-15.3.0.tar.bz2"
5
5
sha256 "4855c95dcc53652e564f1c71d47d7e7ee73218efd8a99f2fa98207d175ee7c61"
6
6
license "Apache-2.0"
7
+ revision 1
7
8
8
9
head "https://github.com/gazebosim/sdformat.git" , branch : "sdf15"
9
10
10
11
bottle do
11
12
root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation"
12
- sha256 sonoma : "40de3113ad2cea2b09c36a7a169e8aee910407959d450bc7113cdb108f27e354 "
13
- sha256 ventura : "567c889281f63403739df481cbdeaf0787e80676a1a3b07cd63ed0ee34db2743 "
13
+ sha256 sonoma : "642eb6ea1a7eb99e705169366cacac94d8ca80c4876b9779589728808bebfefd "
14
+ sha256 ventura : "c81e9d2f4a39bc187b85efe9bec0e9abd16079166247829bc47d4e3c3da4b75c "
14
15
end
15
16
16
17
depends_on "cmake" => [ :build , :test ]
@@ -38,9 +39,13 @@ def python_cmake_arg(python = Formula["python@3.13"])
38
39
end
39
40
40
41
def install
42
+ rpaths = [
43
+ rpath ,
44
+ rpath ( source : libexec /"gz/sdformat15" , target : lib ) ,
45
+ ]
41
46
cmake_args = std_cmake_args
42
47
cmake_args << "-DBUILD_TESTING=Off"
43
- cmake_args << "-DCMAKE_INSTALL_RPATH=#{ rpath } "
48
+ cmake_args << "-DCMAKE_INSTALL_RPATH=#{ rpaths . join ( ";" ) } "
44
49
45
50
# first build without python bindings
46
51
mkdir "build" do
@@ -62,6 +67,7 @@ def install
62
67
end
63
68
64
69
test do
70
+ system libexec /"gz/sdformat15/gz-sdformat-sdf"
65
71
( testpath /"test.cpp" ) . write <<-EOS
66
72
#include <iostream>
67
73
#include "sdf/sdf.hh"
You can’t perform that action at this time.
0 commit comments