[oe-commits] David-John Willis : 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).

git version control git at git.openembedded.org
Thu Feb 18 12:42:42 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 1186314549afc7b6ad174427eb3fd3f09383a1ae
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1186314549afc7b6ad174427eb3fd3f09383a1ae

Author: David-John Willis <John.Willis at Distant-earth.com>
Date:   Thu Feb 11 12:14:01 2010 +0000

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).

---

 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 e3c86fb..92f1a1a 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)
 }





More information about the Openembedded-commits mailing list