forked from osrf/homebrew-simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgazebo7.rb
71 lines (60 loc) · 2.39 KB
/
gazebo7.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
class Gazebo7 < Formula
desc "Gazebo robot simulator"
homepage "http://gazebosim.org"
url "http://gazebosim.org/distributions/gazebo/releases/gazebo-7.4.0.tar.bz2"
sha256 "a033b2273383f16e5dd5b5bfe597551dc3618b98e64abecfa8a41bdddd6542f7"
revision 2
head "https://bitbucket.org/osrf/gazebo", :branch => "gazebo7", :using => :hg
bottle do
root_url "http://gazebosim.org/distributions/gazebo/releases"
sha256 "7e486be831a6b9b87518ae06c0e20e5f5fc14fc23e4310871c405535bf4a4132" => :el_capitan
sha256 "1847f8d393b26942aafbe9c51e4f811a21f91e63158efed299e7a67c19068769" => :yosemite
end
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "boost"
depends_on "doxygen"
depends_on "freeimage"
depends_on "ignition-math2"
depends_on "ignition-transport"
depends_on "libtar"
depends_on "ogre"
depends_on "protobuf"
depends_on "protobuf-c"
depends_on "qt"
depends_on "sdformat4"
depends_on "tbb"
depends_on "tinyxml"
depends_on "tinyxml2"
depends_on "bullet" => [:recommended, "with-shared", "with-double-precision"]
depends_on "dartsim/dart/dartsim4" => [:optional, "core-only"]
depends_on "ffmpeg" => :optional
depends_on "gdal" => :optional
depends_on "gts" => :optional
depends_on "player" => :optional
depends_on "simbody" => :recommended
conflicts_with "gazebo1", :because => "Differing version of the same formula"
conflicts_with "gazebo2", :because => "Differing version of the same formula"
conflicts_with "gazebo3", :because => "Differing version of the same formula"
conflicts_with "gazebo4", :because => "Differing version of the same formula"
conflicts_with "gazebo5", :because => "Differing version of the same formula"
conflicts_with "gazebo6", :because => "Differing version of the same formula"
conflicts_with "gazebo8", :because => "Differing version of the same formula"
patch do
# Fix build when homebrew python is installed
url "https://gist.githubusercontent.com/scpeters/9199370/raw/afe595587e38737c537124a3652db99de026c272/brew_python_fix.patch"
sha256 "c4774f64c490fa03236564312bd24a8630963762e25d98d072e747f0412df18e"
end
def install
ENV.m64
cmake_args = std_cmake_args
cmake_args << "-DENABLE_TESTS_COMPILATION:BOOL=False"
mkdir "build" do
system "cmake", "..", *cmake_args
system "make", "install"
end
end
test do
system "#{bin}/gz", "sdf"
end
end