From 12a05b660c12d2be2efd44db7372159ab62bd4fd Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 31 Mar 2010 12:19:58 +0100 Subject: gettext enhancements: Make it easier to use the right gettext This patch adds a check to insane to ensure that gettext exists in the dependancy list when it is used in the configure.[ac|in] Further we enhance the gettext class to enable easy addition of the required gettext dependancies by inheriting the gettext class. Signed-off-by: Joshua Lock --- classes/gettext.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'classes/gettext.bbclass') diff --git a/classes/gettext.bbclass b/classes/gettext.bbclass index b2ff2849fa..a40e74f819 100644 --- a/classes/gettext.bbclass +++ b/classes/gettext.bbclass @@ -1,4 +1,3 @@ -DEPENDS =+ "gettext-native" def gettext_after_parse(d): # Remove the NLS bits if USE_NLS is no. if bb.data.getVar('USE_NLS', d, 1) == 'no': @@ -12,5 +11,7 @@ python () { gettext_after_parse(d) } -DEPENDS =+ "gettext-native" +DEPENDS_GETTEXT = "gettext gettext-native" + +DEPENDS =+ "${DEPENDS_GETTEXT}" EXTRA_OECONF += "--enable-nls" -- cgit v1.2.3