[oe-commits] Martin Jansa : Add bbfiles for gtk-theme-neo and icon-theme-neo

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


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

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

Add bbfiles for gtk-theme-neo and icon-theme-neo

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

---

 recipes/shr/gtk-theme-neo_git.bb                   |   15 +++++++++
 recipes/shr/gtk-theme.inc                          |   31 ++++++++++++++++++++
 recipes/shr/gtk-theme/gtkrc.gtk-theme-neo          |    3 ++
 .../shr/gtk-theme/gtkrc.shr-theme-gtk-e17lookalike |    3 ++
 recipes/shr/icon-theme-neo_git.bb                  |   27 +++++++++++++++++
 recipes/shr/shr-theme-gtk-e17lookalike_git.bb      |    6 ++--
 recipes/shr/shr-theme-gtk.inc                      |   17 -----------
 7 files changed, 82 insertions(+), 20 deletions(-)

diff --git a/recipes/shr/gtk-theme-neo_git.bb b/recipes/shr/gtk-theme-neo_git.bb
new file mode 100644
index 0000000..1e6d1c9
--- /dev/null
+++ b/recipes/shr/gtk-theme-neo_git.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "nEo GTK theme - a very fast, high contrast GTK theme"
+HOMEPAGE = "http://jmccloud.jm.funpic.de"
+AUTHOR = "Jesus McCloud <bernd.pruenster at gmail.com"
+RDEPENDS += "icon-theme-neo"
+RRECOMMENDS = "elementary-theme-neo e-wm-theme-illume-neo libframeworkd-phonegui-efl-theme-neo etk-theme-neo gpe-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/gtk/${PN}/"
+
+require gtk-theme.inc
diff --git a/recipes/shr/gtk-theme.inc b/recipes/shr/gtk-theme.inc
new file mode 100644
index 0000000..c2c1907
--- /dev/null
+++ b/recipes/shr/gtk-theme.inc
@@ -0,0 +1,31 @@
+RPROVIDES_${PN} += "virtual/theme-gtk"
+RDEPENDS = "gtk+"
+SECTION = "gtk"
+
+inherit update-alternatives
+
+SRC_URI += "file://gtk-theme/gtkrc.${PN}"
+
+do_install() {
+	install -d "${D}${datadir}/themes/${PN}/gtk-2.0"
+	cp -r "${S}/" "${D}${datadir}/themes/${PN}/gtk-2.0"
+        install -d ${D}${sysconfdir}/gtk-2.0/
+        install -m 0644 ${WORKDIR}/gtk-theme/gtkrc.${PN} ${D}${sysconfdir}/gtk-2.0/gtkrc.${PN}
+}
+
+FILES_${PN} = "${datadir}/themes/${PN}/ \
+               ${sysconfdir}/gtk-2.0/gtkrc.${PN} \
+              "
+
+ALTERNATIVE_NAME = "gtk-theme"
+ALTERNATIVE_LINK = "${sysconfdir}/gtk-2.0/gtkrc"
+ALTERNATIVE_PATH = "${sysconfdir}/gtk-2.0/gtkrc.${PN}"
+
+pkg_postinst() {
+        if [[ -e /etc/gtk-2.0/gtkrc && ! -h /etc/gtk-2.0/gtkrc ]] ; then
+                echo "Removing file /etc/gtk-2.0/gtkrc, will be replaced with link managed by update-alternatives"
+                echo "Press enter to continue"
+                read
+                rm -f /etc/gtk-2.0/gtkrc
+        fi
+}
diff --git a/recipes/shr/gtk-theme/gtkrc.gtk-theme-neo b/recipes/shr/gtk-theme/gtkrc.gtk-theme-neo
new file mode 100644
index 0000000..c27c4c4
--- /dev/null
+++ b/recipes/shr/gtk-theme/gtkrc.gtk-theme-neo
@@ -0,0 +1,3 @@
+gtk-font-name = "Sans 5"
+gtk-theme-name = "gtk-theme-neo"
+gtk-icon-theme-name = "nEo"
diff --git a/recipes/shr/gtk-theme/gtkrc.shr-theme-gtk-e17lookalike b/recipes/shr/gtk-theme/gtkrc.shr-theme-gtk-e17lookalike
new file mode 100644
index 0000000..1602654
--- /dev/null
+++ b/recipes/shr/gtk-theme/gtkrc.shr-theme-gtk-e17lookalike
@@ -0,0 +1,3 @@
+gtk-font-name = "Sans 5"
+gtk-theme-name = "theme-qad-neo"
+gtk-icon-theme-name = "nEo"
diff --git a/recipes/shr/icon-theme-neo_git.bb b/recipes/shr/icon-theme-neo_git.bb
new file mode 100644
index 0000000..0db84de
--- /dev/null
+++ b/recipes/shr/icon-theme-neo_git.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "nEo icon theme - a high contrast icon theme which looks especially well when using all the other nEo themes"
+SECTION = "e/utils"
+HOMEPAGE = "http://jmccloud.jm.funpic.de"
+AUTHOR = "Jesus McCloud <bernd.pruenster at gmail.com"
+RDEPENDS = "e-wm"
+RRECOMMENDS = "elementary-theme-neo e-wm-theme-illume-neo gtk-theme-neo libframeworkd-phonegui-efl-theme-neo etk-theme-neo gpe-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/icons/icon-theme-neo"
+
+do_install() {
+        install -d ${D}${datadir}/icons/
+        install -d ${D}${datadir}/icons/nEo/
+        cp -r ${S}/* "${D}${datadir}/icons/nEo/"
+}
+
+FILES_${PN} = "${datadir}/icons/nEo/"
+
+pkg_postinst() {
+        echo "To activate this theme select it under ICON THEME in the LOOK tab of enlightenment settings"
+        echo "Restart enlightenment for the changes to take affect"
+}
diff --git a/recipes/shr/shr-theme-gtk-e17lookalike_git.bb b/recipes/shr/shr-theme-gtk-e17lookalike_git.bb
index 6f498ff..d98ea27 100644
--- a/recipes/shr/shr-theme-gtk-e17lookalike_git.bb
+++ b/recipes/shr/shr-theme-gtk-e17lookalike_git.bb
@@ -1,10 +1,10 @@
 DESCRIPTION = "A gtk theme that looks like e17"
-SECTION = "x11/data"
 LICENSE = "MIT BSD"
-PV = "0.1-gitr${SRCPV}"
+PV = "0.1.1-gitr${SRCPV}"
 PR = "r2"
 
 SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master"
+
 S = "${WORKDIR}/git/gtk/${PN}"
 
-require shr-theme-gtk.inc
+require gtk-theme.inc
diff --git a/recipes/shr/shr-theme-gtk.inc b/recipes/shr/shr-theme-gtk.inc
deleted file mode 100644
index d02a92e..0000000
--- a/recipes/shr/shr-theme-gtk.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-RPROVIDES_${PN} += "virtual/shr-theme-gtk"
-
-#inherit update-alternatives
-
-do_install() {
-	install -d "${D}${datadir}/themes/${PN}/gtk-2.0"
-	cp -r ./ "${D}${datadir}/themes/${PN}/gtk-2.0"
-}
-
-
-
-FILES_${PN} = "${datadir}/themes/${PN}"
-
-#ALTERNATIVE_NAME = "shr-theme-gtk"
-#ALTERNATIVE_LINK = "${datadir}/shr-splash/theme"
-#ALTERNATIVE_PATH = "${datadir}/shr-splash/themes/${PN}"
-





More information about the Openembedded-commits mailing list