forked from rock-core/package_set
-
Notifications
You must be signed in to change notification settings - Fork 0
/
02master.autobuild
28 lines (24 loc) · 1.21 KB
/
02master.autobuild
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
in_flavor 'master' do
cmake_package 'tools/orogen_metadata' do |pkg|
Autoproj.env_add_path 'OROGEN_PLUGIN_PATH', File.join(pkg.prefix, 'share', 'orogen', 'plugins')
pkg.remove_obsolete_installed_file('share', 'orogen', 'plugins', 'metadata_plugin.rb')
pkg.remove_obsolete_installed_file('share', 'typelib', 'ruby', 'metadata_typelib.rb')
end
ruby_package 'tools/oropy_bridge' do |pkg|
def pkg.update_environment
super
Autoproj.env_add_path 'PYTHONPATH', File.join(srcdir, 'python')
Autoproj.env_add_path 'RUBYLIB', File.join(srcdir, 'ruby', 'lib')
Autoproj.env_add_path 'PATH', File.join(srcdir, 'bin')
end
pkg.post_import do
if !system('python -c "import msgpack" 2> /dev/null')
puts "\x1b[31mmsgpack-python is needed for the oropy_bridge - install manually\x1b[0m"
puts " [apt-get install python-pip]"
puts " pip install --user msgpack-python"
end
end
end
remove_from_default 'tools/oropy_bridge'
end
add_packages_to_flavors 'master' => ['orogen', 'rtt', 'utilmm', 'utilrb', 'typelib', 'rtt_typelib', 'tools/metaruby', 'ocl', 'log4cpp']