forked from swrede/homebrew-formulas
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrsb-python.rb
More file actions
28 lines (23 loc) · 831 Bytes
/
rsb-python.rb
File metadata and controls
28 lines (23 loc) · 831 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 RsbPython < Formula
homepage 'https://toolkit.cit-ec.uni-bielefeld.de/components/generic/robotics-service-bus'
url 'https://code.cor-lab.org/git/rsb.git.python', :using => :git, :branch => '0.17'
version '0.17'
head 'https://code.cor-lab.org/git/rsb.git.python', :using => :git
option :universal
depends_on 'spread-python'
depends_on 'python@2'
depends_on 'rsc'
depends_on 'rsb-protocol'
depends_on 'protobuf' => '--with-python'
include Language::Python::Virtualenv
def install
ENV.universal_binary if build.universal?
venv = virtualenv_create(libexec)
system 'python2 setup.py proto --protocolroot=/usr/local/share/rsbprotocol0.17'
system 'python2', *Language::Python.setup_install_args(prefix)
end
def test
system "python2 -c \"import rsb\""
end
end