-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenrtm-aist-python-py38.rb
36 lines (32 loc) · 1.42 KB
/
openrtm-aist-python-py38.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
#============================================================
# OpenRTM-aist-Python formula for HomeBrew
#
# Author: Noriaki Ando <[email protected]>
# GitHub: https://github.com/OpenRTM/homebrew-openrtm
#
# This is the formula for OpenRTM-aist (Python) for python3.8.
# To use this formula/bottle, switch python3 into python 3.8.
# $ brew unlink python3 (unlink python 3.X)
# $ brew link [email protected]
#============================================================
class OpenrtmAistPythonPy38 < Formula
desc "OpenRTM-aist: RT-Middleware and OMG RTC implementation in Python implemented by AIST"
homepage "https://openrtm.org"
url "https://github.com/OpenRTM/OpenRTM-aist-Python/releases/download/v1.2.2/OpenRTM-aist-Python-1.2.2.tar.gz"
sha256 "88366dd5d9fefa19ba25cbf42b6d39170ffb65a1fe4c8f48222a13ddbcecfae8"
license "LGPL-2.1"
bottle do
root_url "https://github.com/OpenRTM/homebrew-openrtm/releases/download/1.2.2/"
sha256 cellar: :any, catalina: "8cf12e35e8c9d7e874a5b99f5fe060e9c9ce4195b2f9d009adfb96a71908dde0"
end
depends_on "openrtm/omniorb/omniorbpy-py38"
def install
comp_dir = "#{prefix}/share/openrtm-1.2/components/python3/"
system "/usr/local/opt/[email protected]/bin/python3.8", "setup.py", "build"
system "/usr/local/opt/[email protected]/bin/python3.8", "setup.py", "install", "--prefix=#{prefix}"
FileUtils.chmod_R(0755, comp_dir.to_s)
end
test do
system "rtcprof_python3", "--help"
end
end