From 3fc86b3a2899d0fdf28811a4f135bf47eaade1be Mon Sep 17 00:00:00 2001 From: Stephen Lawrence Date: Thu, 6 Nov 2014 18:09:59 +0000 Subject: gtk+: Rename gtk bbappend to use wildcard for minor number Changed as part of the update to YP 1.7 --- common/recipes-gnome/gtk+/gtk+_2.24.%.bbappend | 26 +++++++++++++++++++++++++ common/recipes-gnome/gtk+/gtk+_2.24.22.bbappend | 26 ------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 common/recipes-gnome/gtk+/gtk+_2.24.%.bbappend delete mode 100644 common/recipes-gnome/gtk+/gtk+_2.24.22.bbappend (limited to 'common') diff --git a/common/recipes-gnome/gtk+/gtk+_2.24.%.bbappend b/common/recipes-gnome/gtk+/gtk+_2.24.%.bbappend new file mode 100644 index 0000000..6fc9264 --- /dev/null +++ b/common/recipes-gnome/gtk+/gtk+_2.24.%.bbappend @@ -0,0 +1,26 @@ +PACKAGESPLITFUNCS_prepend += " add_private_libs_packages " + +python add_private_libs_packages () { + import os + import re + + gtk_libdir = d.expand('${libdir}/gtk-2.0/${LIBV}') + immodules_root = os.path.join(gtk_libdir, 'immodules') + printmodules_root = os.path.join(gtk_libdir, 'printbackends'); + + dvar = d.getVar('PKGD', True) + + for dirpath, dirnames, filenames in os.walk(dvar + immodules_root): + for f in filenames: + m = re.match('^im-(.*)\.so$', f) + if m: + immodule = m.group(1) + d.setVar('PRIVATE_LIBS_' + 'gtk-immodule-' + immodule , 'im-' + immodule + '.so') + + for dirpath, dirnames, filenames in os.walk(dvar + printmodules_root): + for f in filenames: + m = re.match('^libprintbackend-(.*)\.so$', f) + if m: + printbackend = m.group(1) + d.setVar('PRIVATE_LIBS_' + 'gtk-printbackend-' + printbackend , 'libprintbackend-' + printbackend + '.so') +} \ No newline at end of file diff --git a/common/recipes-gnome/gtk+/gtk+_2.24.22.bbappend b/common/recipes-gnome/gtk+/gtk+_2.24.22.bbappend deleted file mode 100644 index 6fc9264..0000000 --- a/common/recipes-gnome/gtk+/gtk+_2.24.22.bbappend +++ /dev/null @@ -1,26 +0,0 @@ -PACKAGESPLITFUNCS_prepend += " add_private_libs_packages " - -python add_private_libs_packages () { - import os - import re - - gtk_libdir = d.expand('${libdir}/gtk-2.0/${LIBV}') - immodules_root = os.path.join(gtk_libdir, 'immodules') - printmodules_root = os.path.join(gtk_libdir, 'printbackends'); - - dvar = d.getVar('PKGD', True) - - for dirpath, dirnames, filenames in os.walk(dvar + immodules_root): - for f in filenames: - m = re.match('^im-(.*)\.so$', f) - if m: - immodule = m.group(1) - d.setVar('PRIVATE_LIBS_' + 'gtk-immodule-' + immodule , 'im-' + immodule + '.so') - - for dirpath, dirnames, filenames in os.walk(dvar + printmodules_root): - for f in filenames: - m = re.match('^libprintbackend-(.*)\.so$', f) - if m: - printbackend = m.group(1) - d.setVar('PRIVATE_LIBS_' + 'gtk-printbackend-' + printbackend , 'libprintbackend-' + printbackend + '.so') -} \ No newline at end of file -- cgit 1.2.3-korg