From: David-John Willis Date: Thu, 11 Feb 2010 12:14:01 +0000 (+0000) Subject: xfwm4-themes 4.6.0: Refactor recipe to clean up the production of the theme packages... X-Git-Tag: Release-2010-05/1~491^2~190 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1186314549afc7b6ad174427eb3fd3f09383a1ae;p=openembedded.git xfwm4-themes 4.6.0: Refactor recipe to clean up the production of the theme packages and make sure that xfwm4-themes is a valid meta package that depends on all the individual themes (over 80 of them). --- diff --git a/recipes/xfce-base/xfwm4-themes_4.6.0.bb b/recipes/xfce-base/xfwm4-themes_4.6.0.bb index e3c86fbcc4..92f1a1a786 100644 --- a/recipes/xfce-base/xfwm4-themes_4.6.0.bb +++ b/recipes/xfce-base/xfwm4-themes_4.6.0.bb @@ -1,8 +1,7 @@ # xfwm4-themes OE build file -DESCRIPTION="Xfce4 Window Manager Themes" SECTION = "x11/wm" -PR = "r2" +PR = "r3" DEPENDS = "xfwm4 libglade libxml2" RDEPENDS = "xfwm4 libglade libxml2" @@ -11,12 +10,24 @@ inherit xfce46 SRC_URI = "http://mocha.xfce.org/archive/src/art/xfwm4-themes/4.6/xfwm4-themes-${PV}.tar.bz2" -# No ${PN} for this one -PACKAGES="" - PACKAGES_DYNAMIC = "xfwm4-theme-*" python populate_packages_prepend () { - themedir = bb.data.expand('${datadir}/xfwm4/themes', d) - do_split_packages(d, themedir, '^(.*)', 'xfwm4-theme-%s', 'XFWM4 theme %s', allow_dirs=True) + themedir = bb.data.expand('${datadir}/themes', d) + do_split_packages(d, themedir, '^(.*)', 'xfwm4-theme-%s', 'Xfce4 Window Manager theme - %s', allow_dirs=True) + + metapkg = "xfwm4-themes" + bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d) + bb.data.setVar('FILES_' + metapkg, "", d) + blacklist = [ 'xfwm4-themes', 'xfwm4-themes-dev', 'xfwm4-themes-doc', 'xfwm4-themes-dbg', 'xfwm4-themes-static', 'xfwm4-themes-locale' ] + recipe_rdepends = bb.data.getVar('RDEPENDS', d, 1).split() + metapkg_rdepends = [] + packages = bb.data.getVar('PACKAGES', d, 1).split() + for pkg in packages[1:]: + if not pkg in blacklist and not pkg in metapkg_rdepends: + bb.data.setVar('RDEPENDS_' + pkg, ' '.join(recipe_rdepends), d) + metapkg_rdepends.append(pkg) + metapkg_rdepends.extend(recipe_rdepends) + bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) + bb.data.setVar('DESCRIPTION_' + metapkg, 'Xfce4 Window Manager extra themes - Meta package', d) }