From 8d0907545442b3e0e7636b27ab01164549519228 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Fri, 9 Sep 2016 18:56:39 +0200 Subject: python bbappend: use version wildcard Signed-off-by: Max Krummenacher Acked-by: Stefan Agner --- recipes-devtools/python/python_2.7.%.bbappend | 19 +++++++++++++++++++ recipes-devtools/python/python_2.7.9.bbappend | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 recipes-devtools/python/python_2.7.%.bbappend delete mode 100644 recipes-devtools/python/python_2.7.9.bbappend (limited to 'recipes-devtools') diff --git a/recipes-devtools/python/python_2.7.%.bbappend b/recipes-devtools/python/python_2.7.%.bbappend new file mode 100644 index 0000000..28e5d9e --- /dev/null +++ b/recipes-devtools/python/python_2.7.%.bbappend @@ -0,0 +1,19 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/python:" + +SRC_URI_remove = "file://avoid_warning_about_tkinter.patch" + +PACKAGECONFIG ?= "" + +PACKAGECONFIG[tkinter] = ",,tk" +PACKAGECONFIG_remove_class-native = "tkinter" +PACKAGECONFIG_remove_class-nativesdk = "tkinter" +RDEPENDS_${PN}-tkinter_append += "${@bb.utils.contains('PACKAGECONFIG', 'tkinter', 'tcl tk', '', d)}" +SRC_URI += " \ + ${@bb.utils.contains('PACKAGECONFIG', 'tkinter', '', 'file://dont_build_tkinter.patch', d)} \ +" +python __anonymous() { + if not 'openembedded-layer' in d.getVar('BBFILE_COLLECTIONS', True): + if 'tkinter' in d.getVar('PACKAGECONFIG', True): + bb.error('Python PACKAGECONFIG tkinter requires tk provided by' \ + 'meta-oe layer but the layer is not available.') +} diff --git a/recipes-devtools/python/python_2.7.9.bbappend b/recipes-devtools/python/python_2.7.9.bbappend deleted file mode 100644 index 28e5d9e..0000000 --- a/recipes-devtools/python/python_2.7.9.bbappend +++ /dev/null @@ -1,19 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/python:" - -SRC_URI_remove = "file://avoid_warning_about_tkinter.patch" - -PACKAGECONFIG ?= "" - -PACKAGECONFIG[tkinter] = ",,tk" -PACKAGECONFIG_remove_class-native = "tkinter" -PACKAGECONFIG_remove_class-nativesdk = "tkinter" -RDEPENDS_${PN}-tkinter_append += "${@bb.utils.contains('PACKAGECONFIG', 'tkinter', 'tcl tk', '', d)}" -SRC_URI += " \ - ${@bb.utils.contains('PACKAGECONFIG', 'tkinter', '', 'file://dont_build_tkinter.patch', d)} \ -" -python __anonymous() { - if not 'openembedded-layer' in d.getVar('BBFILE_COLLECTIONS', True): - if 'tkinter' in d.getVar('PACKAGECONFIG', True): - bb.error('Python PACKAGECONFIG tkinter requires tk provided by' \ - 'meta-oe layer but the layer is not available.') -} -- cgit v1.2.3