[oe-commits] Martin Jansa : Add bbfiles for gpe-theme-neo and modify gpe-icons to install to subdirectory .

git version control git at git.openembedded.org
Fri Sep 18 08:47:13 UTC 2009


Module: openembedded.git
Branch: shr/import
Commit: 358609c6b7526e25148f753bbb1535b28ff90ea3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=358609c6b7526e25148f753bbb1535b28ff90ea3

Author: Martin Jansa <martin.jansa at gmail.com>
Date:   Thu Sep 17 21:14:23 2009 +0000

Add bbfiles for gpe-theme-neo and modify gpe-icons to install to subdirectory.

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/gpe-icons/gpe-icons.inc        |   18 ++++++++++++++++++
 recipes/gpe-icons/gpe-icons_0.25.bb    |   11 ++++++-----
 recipes/gpe-icons/gpe-theme-neo_git.bb |   25 +++++++++++++++++++++++++
 3 files changed, 49 insertions(+), 5 deletions(-)

diff --git a/recipes/gpe-icons/gpe-icons.inc b/recipes/gpe-icons/gpe-icons.inc
new file mode 100644
index 0000000..d99801b
--- /dev/null
+++ b/recipes/gpe-icons/gpe-icons.inc
@@ -0,0 +1,18 @@
+SECTION = "gpe"
+RDEPENDS += "gdk-pixbuf-loader-png"
+
+inherit update-alternatives
+
+ALTERNATIVE_NAME = "gpe-pixmaps"
+ALTERNATIVE_LINK = "${datadir}/gpe/pixmaps"
+ALTERNATIVE_PATH = "${datadir}/gpe/pixmaps.${PN}"
+ALTERNATIVE_PRIORITY ?= 1
+
+pkg_postinst() {
+        if [[ -e /usr/share/gpe/pixmaps && ! -h /usr/share/gpe/pixmaps ]] ; then
+                echo "Removing old /usr/share/gpe/pixmaps directory. Will be replaced with link managed by update-alternatives"
+                echo "Press enter to continue"
+                read
+                rm -rf /usr/share/gpe/pixmaps
+        fi
+}
diff --git a/recipes/gpe-icons/gpe-icons_0.25.bb b/recipes/gpe-icons/gpe-icons_0.25.bb
index 6276e95..fbae07f 100644
--- a/recipes/gpe-icons/gpe-icons_0.25.bb
+++ b/recipes/gpe-icons/gpe-icons_0.25.bb
@@ -1,15 +1,16 @@
 DESCRIPTION = "Common icons for GPE"
 LICENSE = "GPL"
-SECTION = "gpe"
-
-RDEPENDS = "gdk-pixbuf-loader-png"
-
 
 inherit gpe
 
-PR = "r1"
+PR = "r2"
 
 #only icons present in the package
 PACKAGE_ARCH = "all"
 FILES_${PN} = "${datadir}/gpe"
 
+do_configure_prepend() {
+        sed -i "s|^\$(DESTDIR)\$(PREFIX)/share/gpe/pixmaps/|$(DESTDIR)$(PREFIX)/share/gpe/pixmaps.${PN}/|g" Makefile
+}
+
+require gpe-icons.inc
diff --git a/recipes/gpe-icons/gpe-theme-neo_git.bb b/recipes/gpe-icons/gpe-theme-neo_git.bb
new file mode 100644
index 0000000..0299581
--- /dev/null
+++ b/recipes/gpe-icons/gpe-theme-neo_git.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "nEo GPE theme - a very fast, high contrast GPE theme"
+SECTION = "gpe"
+HOMEPAGE = "http://jmccloud.jm.funpic.de"
+AUTHOR = "Jesus McCloud <bernd.pruenster at gmail.com"
+RDEPENDS = "gdk-pixbuf-loader-png gpe-filemanager gpe-sketchbook"
+RRECOMMENDS = "elementary-theme-neo e-wm-theme-illume-neo gtk-theme-neo libframeworkd-phonegui-efl-theme-neo etk-theme-neo icon-theme-neo"
+LICENSE = "unknown"
+
+PV = "0.2-${EFL_SRCREV}-gitr${SRCPV}"
+PR = "r1"
+
+SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master"
+
+S = "${WORKDIR}/git/gpe/theme-neo/pixmaps"
+
+require gpe-icons.inc
+
+do_install() {
+        install -d ${D}${datadir}/gpe/
+        install -d ${D}${datadir}/gpe/pixmaps.${PN}/
+        cp -r ${S}/* "${D}${datadir}/gpe/pixmaps.${PN}/"
+}
+
+FILES_${PN} = "${datadir}/gpe/pixmaps.${PN}/"
+





More information about the Openembedded-commits mailing list