summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-10-11 14:09:37 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2008-10-17 14:08:05 -0300
commitd636b77f0b00914dd2e84fe196a6e6cd7570c6e0 (patch)
tree01110919bac5bf1ae3b812fcac4cf6c5b4c41cc2
parent528236fa65537addcb3e62a08ae7cb6db216943e (diff)
xfce4-panel: split plugins in multiple packages
-rw-r--r--packages/xfce/xfce4-panel_4.4.2.bb17
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 dadc413cae..2fd087733e 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"