diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-02-02 09:16:47 -0600 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-02-03 11:48:48 -0800 |
commit | 8a52fda62fb9e51f51e2504b617890ee9fe8b73a (patch) | |
tree | 649012e5e14d740c62a233818693925213f3ea8a /meta/classes/package.bbclass | |
parent | 282a828f3dc373d8f1397827ebbe1be1c54f2d2a (diff) | |
download | poky-8a52fda62fb9e51f51e2504b617890ee9fe8b73a.tar.gz |
bitbake.conf & package.bbclass: Use default SUMMARY and DESCRIPTION
A new default SUMMARY and DESCRIPTION was defined for any package that
previously did not contain one. This value is based on the original
SUMMARY_${PN} value.
The new default SUMMARY and DESCRIPTION is used as a basis for all of
the automatic summary and descriptions for the various package splits,
include ${PN}, ${PN}-dbg, ${PN}-dev, ${PN}-doc, and locales.
A recipe may also override any of the automatic summaries by simply
specifying the value.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index bdc5d93f0b..e64e4419fc 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -289,6 +289,8 @@ python package_do_split_locales() { | |||
289 | if mainpkg.find('-dev'): | 289 | if mainpkg.find('-dev'): |
290 | mainpkg = mainpkg.replace('-dev', '') | 290 | mainpkg = mainpkg.replace('-dev', '') |
291 | 291 | ||
292 | summary = bb.data.getVar('SUMMARY', d, True) or pn | ||
293 | description = bb.data.getVar('DESCRIPTION', d, True) or "" | ||
292 | for l in locales: | 294 | for l in locales: |
293 | ln = legitimize_package_name(l) | 295 | ln = legitimize_package_name(l) |
294 | pkg = pn + '-locale-' + ln | 296 | pkg = pn + '-locale-' + ln |
@@ -296,7 +298,8 @@ python package_do_split_locales() { | |||
296 | bb.data.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l), d) | 298 | bb.data.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l), d) |
297 | bb.data.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (mainpkg, ln), d) | 299 | bb.data.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (mainpkg, ln), d) |
298 | bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d) | 300 | bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d) |
299 | bb.data.setVar('DESCRIPTION_' + pkg, '%s translation for %s' % (l, pn), d) | 301 | bb.data.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l), d) |
302 | bb.data.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l), d) | ||
300 | 303 | ||
301 | bb.data.setVar('PACKAGES', ' '.join(packages), d) | 304 | bb.data.setVar('PACKAGES', ' '.join(packages), d) |
302 | 305 | ||