diff options
author | David-John Willis <John.Willis@Distant-earth.com> | 2010-02-11 12:14:01 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-02-18 13:41:19 +0100 |
commit | 1186314549afc7b6ad174427eb3fd3f09383a1ae (patch) | |
tree | 9ce0c331cca8663cf430252ea680dc8b95fd24b3 /recipes/xfce-base | |
parent | 27ae9191f50d54132dfff568d1ae9ddea87df957 (diff) |
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).
Diffstat (limited to 'recipes/xfce-base')
-rw-r--r-- | recipes/xfce-base/xfwm4-themes_4.6.0.bb | 25 |
1 files changed, 18 insertions, 7 deletions
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) } |