From fd1517e2b51a170f2427122c6b95396db251d827 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 10 Aug 2022 14:35:29 +0100 Subject: classes: Update classes to match new bitbake class scope functionality Move classes to classes-global or classes-recipe as appropriate to take advantage of new bitbake functionality to check class scope/usage. (From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045) Signed-off-by: Richard Purdie --- meta/classes/gettext.bbclass | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 meta/classes/gettext.bbclass (limited to 'meta/classes/gettext.bbclass') diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass deleted file mode 100644 index c313885d52..0000000000 --- a/meta/classes/gettext.bbclass +++ /dev/null @@ -1,28 +0,0 @@ -# -# Copyright OpenEmbedded Contributors -# -# SPDX-License-Identifier: MIT -# - -def gettext_dependencies(d): - if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'): - return "" - if d.getVar('USE_NLS') == 'no': - return "gettext-minimal-native" - return "gettext-native" - -def gettext_oeconf(d): - if d.getVar('USE_NLS') == 'no': - return '--disable-nls' - # Remove the NLS bits if USE_NLS is no or INHIBIT_DEFAULT_DEPS is set - if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'): - return '--disable-nls' - return "--enable-nls" - -BASEDEPENDS:append = " ${@gettext_dependencies(d)}" -EXTRA_OECONF:append = " ${@gettext_oeconf(d)}" - -# Without this, msgfmt from gettext-native will not find ITS files -# provided by target recipes (for example, polkit.its). -GETTEXTDATADIRS:append:class-target = ":${STAGING_DATADIR}/gettext" -export GETTEXTDATADIRS -- cgit v1.2.3-54-g00ecf