Patchwork [meta-xfce,V2,1/3] xfce-app.bbclass: just set SRC_URI commmon to most xfce-apps

login
register
mail settings
Submitter Andreas Müller
Date Oct. 30, 2011, 11:47 a.m.
Message ID <1319975241-10849-2-git-send-email-schnitzeltony@gmx.de>
Download mbox | patch
Permalink /patch/14039/
State Accepted
Headers show

Comments

Andreas Müller - Oct. 30, 2011, 11:47 a.m.
* build tested with source download for xfce4-notifyd and xfce4-screenshooter
* run tested on overo

Signed-off-by: Andreas Müller <schnitzeltony@gmx.de>
---
 meta-xfce/classes/xfce-app.bbclass                 |    4 ++++
 .../xfce4-notifyd/xfce4-notifyd_0.2.2.bb           |    5 +----
 .../xfce4-screenshooter_1.8.0.bb                   |    7 +------
 3 files changed, 6 insertions(+), 10 deletions(-)
 create mode 100644 meta-xfce/classes/xfce-app.bbclass

Patch

diff --git a/meta-xfce/classes/xfce-app.bbclass b/meta-xfce/classes/xfce-app.bbclass
new file mode 100644
index 0000000..c60ad3d
--- /dev/null
+++ b/meta-xfce/classes/xfce-app.bbclass
@@ -0,0 +1,4 @@ 
+inherit xfce
+
+SRC_URI = "http://archive.xfce.org/src/apps/${BPN}/${@'${PV}'[0:3]}/${BPN}-${PV}.tar.bz2"
+
diff --git a/meta-xfce/recipes-apps/xfce4-notifyd/xfce4-notifyd_0.2.2.bb b/meta-xfce/recipes-apps/xfce4-notifyd/xfce4-notifyd_0.2.2.bb
index 4fea1de..0ee6da3 100644
--- a/meta-xfce/recipes-apps/xfce4-notifyd/xfce4-notifyd_0.2.2.bb
+++ b/meta-xfce/recipes-apps/xfce4-notifyd/xfce4-notifyd_0.2.2.bb
@@ -6,10 +6,7 @@  DEPENDS = "libxfce4util libxfce4ui xfconf gtk+ dbus dbus-glib"
 
 PR = "r0"
 
-inherit xfce
-
-# SRC_URI must follow inherited one
-SRC_URI = "http://archive.xfce.org/src/apps/${PN}/${@'${PV}'[0:3]}/${PN}-${PV}.tar.bz2"
+inherit xfce-app
 
 FILES_${PN} += " \
     ${libdir}/xfce4/notifyd \
diff --git a/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.8.0.bb b/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.8.0.bb
index ef409c1..2362b8a 100644
--- a/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.8.0.bb
+++ b/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.8.0.bb
@@ -7,12 +7,7 @@  DEPENDS = "xfce4-panel libxfce4util libxfce4ui gdk-pixbuf gtk+ glib-2.0 libsoup-
 
 PR = "r0"
 
-inherit xfce
-
-# SRC_URI must follow inherited one
-# decoded to e.g. http://archive.xfce.org/src/apps/xfce4-screenshooter/1.8/xfce4-screenshooter-1.8.0.tar.bz2
-SRC_URI = "http://archive.xfce.org/src/apps/${PN}/${@'${PV}'[0:3]}/${PN}-${PV}.tar.bz2 \
-"
+inherit xfce-app
 
 FILES_${PN} += "${datadir}/xfce4/panel-plugins/*"
 FILES_${PN}-dbg += "${libexecdir}/xfce4/panel-plugins/.debug"