forked from swrede/homebrew-formulas
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrst-proto.rb
More file actions
28 lines (22 loc) · 795 Bytes
/
rst-proto.rb
File metadata and controls
28 lines (22 loc) · 795 Bytes
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
require 'formula'
class RstProto < Formula
homepage 'https://toolkit.cit-ec.uni-bielefeld.de/components/generic/robotics-system-types'
url 'https://code.cor-lab.de/git/rst.git.proto.git', :using => :git, :branch => '0.17'
version '0.17'
head 'https://code.cor-lab.de/git/rst.git.proto.git', :using => :git
option :universal
depends_on 'cmake' => :build
depends_on 'rsc'
depends_on 'protobuf'
depends_on 'python'
# FIX-ME this no longer works with brew
#depends_on 'python' => ['google.protobuf' => 'protobuf']
def install
ENV.universal_binary if build.universal?
system "cmake", ".", "-DBUILD_JAVA=OFF", "-DBUILD_MATLAB=OFF", *std_cmake_args
system "make install"
end
def test
system "ls", "/usr/local/share/rst" + version + "/proto/"
end
end