[oe-commits] Otavio Salvador : xfce4-panel: split plugins in multiple packages

GIT User account git at amethyst.openembedded.net
Fri Oct 17 17:11:40 UTC 2008


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

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sat Oct 11 14:09:37 2008 -0300

xfce4-panel: split plugins in multiple packages

---

 packages/xfce/xfce4-panel_4.4.2.bb |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/packages/xfce/xfce4-panel_4.4.2.bb b/packages/xfce/xfce4-panel_4.4.2.bb
index dadc413..2fd0877 100644
--- a/packages/xfce/xfce4-panel_4.4.2.bb
+++ b/packages/xfce/xfce4-panel_4.4.2.bb
@@ -19,8 +19,19 @@ do_install() {
     oe_runmake DESTDIR=${D} install
 }
 
-PACKAGES += "${PN}-plugins ${PN}-mcs-plugins"
-FILES_${PN}-plugins += "${libdir}/xfce4/panel-plugins/*.so* \
-                        ${datadir}/xfce4/panel-plugins/*.desktop"
+python populate_packages_prepend() {
+	plugin_dir = bb.data.expand('${libdir}/xfce4/panel-plugins/', d)
+	plugin_name = bb.data.expand('${PN}-plugin-%s', d)
+	do_split_packages(d, plugin_dir, '^lib(.*).so$', plugin_name,
+	                  '${PN} plugin for %s', extra_depends='', prepend=True,
+	                  aux_files_pattern=['${datadir}/xfce4/panel-plugins/%s.desktop',
+	                                     '${sysconfdir}/xdg/xfce/panel/%s-*',
+	                                     '${datadir}/icons/hicolor/48x48/apps/*-%s.png',
+	                                     '${bindir}/*%s*'])
+}
+
+PACKAGES += "${PN}-mcs-plugins"
+PACKAGES_DYNAMIC = "${PN}-plugin-*"
+
 FILES_${PN}-mcs-plugins += "${libdir}/xfce4/mcs-plugins/"
 FILES_${PN}-dbg += "${libdir}/xfce4/mcs-plugins/.debug"





More information about the Openembedded-commits mailing list