- enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
- do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True)
- do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
- do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
- do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/\.debug/', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
- def parseControlFile(dir, d, package):
- import os
- #ac3lipsync is renamed since 20091121 to audiosync.. but rename in cvs is not possible without lost of revision history..
- #so the foldername is still ac3lipsync
- if package == 'audiosync':
- package = 'ac3lipsync'
- src = open(dir + "/" + package.split('-')[-1] + "/CONTROL/control").read()
- for line in src.splitlines():
- name, value = line.strip().split(': ', 1)
- if name == 'Description':
- d.setVar('DESCRIPTION_' + package, value)
- elif name == 'Depends':
- d.setVar('RDEPENDS_' + package, ' '.join(value.split(', ')))
- elif name == 'Replaces':
- d.setVar('RREPLACES_' + package, ' '.join(value.split(', ')))
- elif name == 'Conflicts':
- d.setVar('RCONFLICTS_' + package, ' '.join(value.split(', ')))
- srcdir = d.getVar('S', True)
- for package in d.getVar('PACKAGES', True).split():
- if package.startswith('enigma2-plugin-') and not package.endswith('-dev') and not package.endswith('-dbg') and not package.endswith('-staticdev'):
- parseControlFile(srcdir, d, package)
+ enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
+ do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True)
+ do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
+ do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
+ do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/\.debug/', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
+ def parseControlFile(dir, d, package):
+ import os
+ #ac3lipsync is renamed since 20091121 to audiosync.. but rename in cvs is not possible without lost of revision history..
+ #so the foldername is still ac3lipsync
+ if package == 'audiosync':
+ package = 'ac3lipsync'
+ src = open(dir + "/" + package.split('-')[-1] + "/CONTROL/control").read()
+ for line in src.splitlines():
+ name, value = line.strip().split(': ', 1)
+ if name == 'Description':
+ d.setVar('DESCRIPTION_' + package, value)
+ elif name == 'Depends':
+ rdepends = []
+ for depend in value.split(','):
+ depend = depend.strip()
+ if depend.startswith('enigma2') and not depend.startswith('enigma2-'):
+ rdepends.append('enigma2')
+ else:
+ rdepends.append(depend)
+ d.setVar('RDEPENDS_' + package, ' '.join(rdepends))
+ elif name == 'Replaces':
+ d.setVar('RREPLACES_' + package, ' '.join(value.split(', ')))
+ elif name == 'Conflicts':
+ d.setVar('RCONFLICTS_' + package, ' '.join(value.split(', ')))
+ srcdir = d.getVar('S', True)
+ for package in d.getVar('PACKAGES', True).split():
+ if package.startswith('enigma2-plugin-') and not package.endswith('-dev') and not package.endswith('-dbg') and not package.endswith('-staticdev'):
+ parseControlFile(srcdir, d, package)