forked from corlab/homebrew-formulas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orocos-kdl.rb
27 lines (24 loc) · 904 Bytes
/
orocos-kdl.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
class OrocosKdl < Formula
homepage "http://www.orocos.org/kdl"
url "https://github.com/orocos/orocos_kinematics_dynamics.git"
head "https://github.com/orocos/orocos_kinematics_dynamics.git"
depends_on "eigen"
depends_on "cmake" => :build
depends_on "cppunit" => :build
depends_on "boost" => :build
def install
cd "orocos_kdl" do
# Removes solvertest from orocos-kdl, as per
# http://www.orocos.org/forum/rtt/rtt-dev/bug-1043-new-errors-underlying-ik-solver-are-not-correctly-processed
inreplace "tests/CMakeLists.txt", "ADD_TEST(solvertest solvertest)", "" if build.head?
mkdir "build" do
args = std_cmake_args
#args << "-DENABLE_TESTS=ON" if build.with? "check"
system "cmake", "..", *args
system "make"
#system "make", "check" if build.with? "check"
system "make", "install"
end
end
end
end