summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-qt/qt4')
-rw-r--r--meta/recipes-qt/qt4/qt4.inc22
1 files changed, 11 insertions, 11 deletions
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index 4d719138ca..2e70bd91e2 100644
--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -257,17 +257,17 @@ do_compile() {
257} 257}
258 258
259python populate_packages_prepend() { 259python populate_packages_prepend() {
260 translation_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/translations/', d) 260 translation_dir = d.expand('${datadir}/${QT_DIR_NAME}/translations/')
261 translation_name = bb.data.expand('${QT_BASE_NAME}-translation-%s', d) 261 translation_name = d.expand('${QT_BASE_NAME}-translation-%s')
262 do_split_packages(d, translation_dir, '^(assistant|designer|linguist|qt|qtconfig|qvfb)_(.*)\.qm$', translation_name, '${PN} translation for %s', extra_depends='' ) 262 do_split_packages(d, translation_dir, '^(assistant|designer|linguist|qt|qtconfig|qvfb)_(.*)\.qm$', translation_name, '${PN} translation for %s', extra_depends='' )
263 263
264 phrasebook_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/', d) 264 phrasebook_dir = d.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/')
265 phrasebook_name = bb.data.expand('${QT_BASE_NAME}-phrasebook-%s', d) 265 phrasebook_name = d.expand('${QT_BASE_NAME}-phrasebook-%s')
266 import os; 266 import os;
267 if os.path.exists("%s%s" % (bb.data.expand('${D}',d), phrasebook_dir)): 267 if os.path.exists("%s%s" % (d.expand('${D}'), phrasebook_dir)):
268 do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' ) 268 do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' )
269 else: 269 else:
270 bb.note("The path does not exist:", bb.data.expand('${D}', d), phrasebook_dir) 270 bb.note("The path does not exist:", d.expand('${D}'), phrasebook_dir)
271 271
272 # Package all the plugins and their -dbg version and create a meta package 272 # Package all the plugins and their -dbg version and create a meta package
273 def qtopia_split(path, name, glob): 273 def qtopia_split(path, name, glob):
@@ -275,17 +275,17 @@ python populate_packages_prepend() {
275 Split the package into a normal and -dbg package and then add the 275 Split the package into a normal and -dbg package and then add the
276 new packages to the meta package. 276 new packages to the meta package.
277 """ 277 """
278 plugin_dir = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/' % path, d) 278 plugin_dir = d.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/' % path)
279 if not os.path.exists("%s%s" % (bb.data.expand('${D}',d), plugin_dir)): 279 if not os.path.exists("%s%s" % (d.expand('${D}'), plugin_dir)):
280 bb.note("The path does not exist:", bb.data.expand('${D}', d), plugin_dir) 280 bb.note("The path does not exist:", d.expand('${D}'), plugin_dir)
281 return 281 return
282 282
283 plugin_name = bb.data.expand('${QT_BASE_NAME}-plugin-%s-%%s' % name, d) 283 plugin_name = d.expand('${QT_BASE_NAME}-plugin-%s-%%s' % name)
284 dev_packages = [] 284 dev_packages = []
285 dev_hook = lambda file,pkg,b,c,d:dev_packages.append((file,pkg)) 285 dev_hook = lambda file,pkg,b,c,d:dev_packages.append((file,pkg))
286 do_split_packages(d, plugin_dir, glob, plugin_name, '${PN} %s for %%s' % name, extra_depends='', hook=dev_hook) 286 do_split_packages(d, plugin_dir, glob, plugin_name, '${PN} %s for %%s' % name, extra_depends='', hook=dev_hook)
287 # Create a -dbg package as well 287 # Create a -dbg package as well
288 plugin_dir_dbg = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/.debug' % path, d) 288 plugin_dir_dbg = d.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/.debug' % path)
289 packages = d.getVar('PACKAGES') 289 packages = d.getVar('PACKAGES')
290 for (file,package) in dev_packages: 290 for (file,package) in dev_packages:
291 packages = "%s %s-dbg" % (packages, package) 291 packages = "%s %s-dbg" % (packages, package)