summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-06-02 13:31:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-12 17:21:53 +0100
commitce110eddfcae154b4a06f006fdda7277894c5a72 (patch)
tree53af33eb7f8e139d49ad6f877c5d8c86a1737a48 /meta/classes
parent07de9dc55cf72dfc5fa30b0f0464454330458c21 (diff)
downloadpoky-ce110eddfcae154b4a06f006fdda7277894c5a72.tar.gz
package: allow setting a section for locale packages
(From OE-Core rev: 521cab0239352e3b4316183c20e63cc06f5ae92b) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0a954ef97f..100f465d9c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -44,6 +44,8 @@ inherit prserv
44PKGD = "${WORKDIR}/package" 44PKGD = "${WORKDIR}/package"
45PKGDEST = "${WORKDIR}/packages-split" 45PKGDEST = "${WORKDIR}/packages-split"
46 46
47LOCALE_SECTION ?= ''
48
47# rpm is used for the per-file dependency identification 49# rpm is used for the per-file dependency identification
48PACKAGE_DEPENDS += "rpm-native" 50PACKAGE_DEPENDS += "rpm-native"
49 51
@@ -401,6 +403,7 @@ python package_do_split_locales() {
401 403
402 summary = bb.data.getVar('SUMMARY', d, True) or pn 404 summary = bb.data.getVar('SUMMARY', d, True) or pn
403 description = bb.data.getVar('DESCRIPTION', d, True) or "" 405 description = bb.data.getVar('DESCRIPTION', d, True) or ""
406 locale_section = bb.data.getVar('LOCALE_SECTION', d, True)
404 for l in locales: 407 for l in locales:
405 ln = legitimize_package_name(l) 408 ln = legitimize_package_name(l)
406 pkg = pn + '-locale-' + ln 409 pkg = pn + '-locale-' + ln
@@ -410,6 +413,8 @@ python package_do_split_locales() {
410 bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d) 413 bb.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d)
411 bb.data.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l), d) 414 bb.data.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l), d)
412 bb.data.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l), d) 415 bb.data.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l), d)
416 if locale_section:
417 bb.data.setVar('SECTION_' + pkg, locale_section, d)
413 418
414 bb.data.setVar('PACKAGES', ' '.join(packages), d) 419 bb.data.setVar('PACKAGES', ' '.join(packages), d)
415 420