mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
recipes: convert tabs to 4 spaces in populate_packages
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
@@ -29,8 +29,8 @@ EXTRA_OECONF = "\
|
||||
# enable pulse again when pulseaudio >= 0.9.11 is the default in OE
|
||||
|
||||
python populate_packages_prepend() {
|
||||
plugindir = bb.data.expand('${libdir}/${P}/', d)
|
||||
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
|
||||
plugindir = bb.data.expand('${libdir}/${P}/', d)
|
||||
do_split_packages(d, plugindir, '^libcanberra-(.*)\.so$', 'libcanberra-%s', '%s support library', extra_depends='' )
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-gtk"
|
||||
|
||||
@@ -16,8 +16,8 @@ FILES_orc-examples = "${libdir}/orc/*"
|
||||
FILES_${PN} = "${bindir}/*"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
libdir = bb.data.expand('${libdir}', d)
|
||||
do_split_packages(d, libdir, '^lib(.*)\.so\.*', 'lib%s', 'ORC %s library', extra_depends='', allow_links=True)
|
||||
libdir = bb.data.expand('${libdir}', d)
|
||||
do_split_packages(d, libdir, '^lib(.*)\.so\.*', 'lib%s', 'ORC %s library', extra_depends='', allow_links=True)
|
||||
}
|
||||
|
||||
do_compile_prepend_virtclass-native () {
|
||||
|
||||
@@ -23,9 +23,9 @@ PACKAGES =+ "${PN}-core ${PN}-lxde ${PN}-gnome"
|
||||
PACKAGES_DYNAMIC += "${PN}-theme-*"
|
||||
|
||||
python populate_packages_prepend() {
|
||||
theme_dir = bb.data.expand('${datadir}/themes/', d)
|
||||
theme_name = bb.data.expand('${PN}-theme-%s', d)
|
||||
do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True)
|
||||
theme_dir = bb.data.expand('${datadir}/themes/', d)
|
||||
theme_name = bb.data.expand('${PN}-theme-%s', d)
|
||||
do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True)
|
||||
}
|
||||
|
||||
RDEPENDS_${PN} += "${PN}-core"
|
||||
|
||||
@@ -9,8 +9,8 @@ SRC_URI = "http://osdn.dl.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-${PV}
|
||||
S = "${WORKDIR}/mplus-TESTFLIGHT-${PV}"
|
||||
|
||||
python populate_packages_prepend() {
|
||||
plugindir = bb.data.expand('${datadir}/fonts/ttf-mplus/', d)
|
||||
do_split_packages(d, plugindir, '^(.*)\.ttf$', 'ttf-%s', 'TTF Font %s', extra_depends = "ttf-common")
|
||||
plugindir = bb.data.expand('${datadir}/fonts/ttf-mplus/', d)
|
||||
do_split_packages(d, plugindir, '^(.*)\.ttf$', 'ttf-%s', 'TTF Font %s', extra_depends = "ttf-common")
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
DESCRIPTION = "The GNU Compact Disc Input and Control library (libcdio) contains a library for CD-ROM and CD image access."
|
||||
ESCRIPTION = "The GNU Compact Disc Input and Control library (libcdio) contains a library for CD-ROM and CD image access."
|
||||
HOMEPAGE = "http://www.gnu.org/software/libcdio/"
|
||||
SECTION = "libs"
|
||||
|
||||
@@ -22,7 +22,7 @@ FILES_${PN} = "${libdir}/${PN}${SOLIB}"
|
||||
FILES_${PN}-utils = "${bindir}/*"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
glibdir = bb.data.expand('${libdir}', d)
|
||||
do_split_packages(d, glibdir, '^lib(.*)\.so\..*', 'lib%s', 'gstreamer %s library', extra_depends='', allow_links=True)
|
||||
glibdir = bb.data.expand('${libdir}', d)
|
||||
do_split_packages(d, glibdir, '^lib(.*)\.so\..*', 'lib%s', 'gstreamer %s library', extra_depends='', allow_links=True)
|
||||
}
|
||||
|
||||
|
||||
@@ -26,25 +26,25 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
|
||||
PACKAGES_DYNAMIC = "libfreerdp-plugin-*"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
freerdp_root = bb.data.expand('${libdir}/freerdp', d)
|
||||
freerdp_root = bb.data.expand('${libdir}/freerdp', d)
|
||||
|
||||
do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-audin')
|
||||
do_split_packages(d, freerdp_root, '^(audin_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-audin')
|
||||
|
||||
do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
|
||||
do_split_packages(d, freerdp_root, '^(rdpsnd_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-rdpsnd')
|
||||
|
||||
do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-tsmf')
|
||||
do_split_packages(d, freerdp_root, '^(tsmf_.*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='libfreerdp-plugin-tsmf')
|
||||
|
||||
do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
do_split_packages(d, freerdp_root, '^([^-]*)\.so$',
|
||||
output_pattern='libfreerdp-plugin-%s',
|
||||
description='FreeRDP plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
}
|
||||
|
||||
@@ -39,23 +39,23 @@ TARGET_CC_ARCH += "-I${S}/include "
|
||||
PACKAGES += "${PN}-apps python-opencv"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
cv_libdir = bb.data.expand('${libdir}', d)
|
||||
cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True)
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True)
|
||||
cv_libdir = bb.data.expand('${libdir}', d)
|
||||
cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev', allow_links=True)
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'OpenCV %s development package', extra_depends='${PN}-dev')
|
||||
do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'OpenCV %s library', extra_depends='', allow_links=True)
|
||||
|
||||
pn = bb.data.getVar('PN', d, 1)
|
||||
metapkg = pn + '-dev'
|
||||
bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d)
|
||||
blacklist = [ metapkg ]
|
||||
metapkg_rdepends = [ ]
|
||||
packages = bb.data.getVar('PACKAGES', d, 1).split()
|
||||
for pkg in packages[1:]:
|
||||
if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'):
|
||||
metapkg_rdepends.append(pkg)
|
||||
bb.data.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
|
||||
pn = bb.data.getVar('PN', d, 1)
|
||||
metapkg = pn + '-dev'
|
||||
bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d)
|
||||
blacklist = [ metapkg ]
|
||||
metapkg_rdepends = [ ]
|
||||
packages = bb.data.getVar('PACKAGES', d, 1).split()
|
||||
for pkg in packages[1:]:
|
||||
if not pkg in blacklist and not pkg in metapkg_rdepends and pkg.endswith('-dev'):
|
||||
metapkg_rdepends.append(pkg)
|
||||
bb.data.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
|
||||
}
|
||||
|
||||
FILES_${PN} = ""
|
||||
|
||||
@@ -59,32 +59,32 @@ FILES_${PN}-dev += "${libdir}/${PN}/*.la"
|
||||
PACKAGES_DYNAMIC = "libpurple-protocol-* libpurple-plugin-* pidgin-plugin-* finch-plugin-*"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
pidgroot = bb.data.expand('${libdir}/pidgin', d)
|
||||
purple = bb.data.expand('${libdir}/purple-2', d)
|
||||
finch = bb.data.expand('${libdir}/finch', d)
|
||||
pidgroot = bb.data.expand('${libdir}/pidgin', d)
|
||||
purple = bb.data.expand('${libdir}/purple-2', d)
|
||||
finch = bb.data.expand('${libdir}/finch', d)
|
||||
|
||||
do_split_packages(d, pidgroot, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='pidgin-plugin-%s',
|
||||
description='Pidgin plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
do_split_packages(d, pidgroot, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='pidgin-plugin-%s',
|
||||
description='Pidgin plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
|
||||
do_split_packages(d, purple, '^lib(.*)\.so$',
|
||||
output_pattern='libpurple-protocol-%s',
|
||||
description='Libpurple protocol plugin for %s',
|
||||
prepend=True, extra_depends='')
|
||||
do_split_packages(d, purple, '^lib(.*)\.so$',
|
||||
output_pattern='libpurple-protocol-%s',
|
||||
description='Libpurple protocol plugin for %s',
|
||||
prepend=True, extra_depends='')
|
||||
|
||||
do_split_packages(d, purple, '^(ssl-.*)\.so$',
|
||||
output_pattern='libpurple-plugin-%s',
|
||||
description='libpurple plugin %s',
|
||||
prepend=True, extra_depends='libpurple-plugin-ssl')
|
||||
do_split_packages(d, purple, '^(ssl-.*)\.so$',
|
||||
output_pattern='libpurple-plugin-%s',
|
||||
description='libpurple plugin %s',
|
||||
prepend=True, extra_depends='libpurple-plugin-ssl')
|
||||
|
||||
do_split_packages(d, purple, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='libpurple-plugin-%s',
|
||||
description='libpurple plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
do_split_packages(d, purple, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='libpurple-plugin-%s',
|
||||
description='libpurple plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
|
||||
do_split_packages(d, finch, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='finch-plugin-%s',
|
||||
description='Finch plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
do_split_packages(d, finch, '^([^l][^i][^b].*)\.so$',
|
||||
output_pattern='finch-plugin-%s',
|
||||
description='Finch plugin %s',
|
||||
prepend=True, extra_depends='')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user