From cbd04b4c345e03073d0fbfd7d3d0af596ea9daad Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Fri, 25 May 2007 13:31:20 +0000 Subject: gtk-engines: remove hard-coded paths. Closes 2364. * drop versions prior ro 2.6.5 * some cosmetic clean-up * backport solution from 2.7.4 to 2.6.5 and smooth-engine --- packages/gtk-engines/gtk-smooth-engine_0.5.8.bb | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'packages/gtk-engines/gtk-smooth-engine_0.5.8.bb') diff --git a/packages/gtk-engines/gtk-smooth-engine_0.5.8.bb b/packages/gtk-engines/gtk-smooth-engine_0.5.8.bb index 95a8d87d9c..28888c45ba 100644 --- a/packages/gtk-engines/gtk-smooth-engine_0.5.8.bb +++ b/packages/gtk-engines/gtk-smooth-engine_0.5.8.bb @@ -1,11 +1,22 @@ -PR = "r0" -LICENSE = "LGPL" -SECTION = "x11/base" DESCRIPTION = "GTK theme engine Smooth" +SECTION = "x11/base" +PRIORITY = "optional" +LICENSE = "LGPL" DEPENDS = "gtk+" - -FILES_${PN} = "${libdir}/gtk-2.0/2.4.0/engines/libsmooth.so" +PR = "r1" SRC_URI = "${SOURCEFORGE_MIRROR}/smooth-engine/${PN}-${PV}.tar.gz" inherit autotools pkgconfig + +python populate_packages_prepend() { + import os.path + + engines_ver = ['gtk-2.0/', gtkbinver_find(d), '/engines'] + + engines_root = os.path.join(bb.data.getVar('libdir', d, 1), ''.join(engines_ver)) + themes_root = os.path.join(bb.data.getVar('datadir', d, 1), "themes") + + do_split_packages(d, engines_root, '^lib(.*)\.so$', 'gtk-engine-%s', 'GTK %s theme engine', extra_depends='') + do_split_packages(d, themes_root, '(.*)', 'gtk-theme-%s', 'GTK theme %s', allow_dirs=True, extra_depends='') +} -- cgit v1.2.3