shr-theme-gtk-e17lookalike: rename to gtk-theme-e17lookalike, simplify shr gtk-themes...
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 2 Mar 2011 13:41:30 +0000 (14:41 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Wed, 2 Mar 2011 13:55:57 +0000 (14:55 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/shr/gtk-theme-e17lookalike/gtkrc [moved from recipes/shr/gtk-theme/gtkrc.shr-theme-gtk-e17lookalike with 59% similarity]
recipes/shr/gtk-theme-e17lookalike_git.bb [moved from recipes/shr/shr-theme-gtk-e17lookalike_git.bb with 80% similarity]
recipes/shr/gtk-theme-neo/gtkrc [moved from recipes/shr/gtk-theme/gtkrc.gtk-theme-neo with 100% similarity]
recipes/shr/gtk-theme-neo_git.bb
recipes/shr/gtk-theme.inc
recipes/tasks/task-shr-minimal.bb

@@ -1,3 +1,3 @@
 gtk-font-name = "Sans 5"
-gtk-theme-name = "shr-theme-gtk-e17lookalike"
+gtk-theme-name = "gtk-theme-e17lookalike"
 gtk-icon-theme-name = "openmoko-standard"
similarity index 80%
rename from recipes/shr/shr-theme-gtk-e17lookalike_git.bb
rename to recipes/shr/gtk-theme-e17lookalike_git.bb
index 388e2c2..6396518 100644 (file)
@@ -1,8 +1,8 @@
 DESCRIPTION = "A gtk theme that looks like e17"
 LICENSE = "MIT BSD"
-SRCREV = "1cc80e26a4558dfc2268b349d9a1f468e515bcfb"
+SRCREV = "5c01117b97ab823b5dd298c08759093a81ac5456"
 PV = "0.1.1+gitr${SRCPV}"
-PR = "r6"
+PR = "r7"
 PACKAGE_ARCH = "all"
 
 SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master"
index c5f1875..627352b 100644 (file)
@@ -3,11 +3,12 @@ HOMEPAGE = "http://jmccloud.jm.funpic.de"
 AUTHOR = "Jesus McCloud <bernd.pruenster@gmail.com"
 RDEPENDS_${PN} += "icon-theme-neo"
 RSUGGESTS_${PN} = "elementary-theme-neo e-wm-theme-illume-neo gpe-theme-neo icon-theme-neo"
+PACKAGE_ARCH = "all"
 LICENSE = "unknown"
 
 SRCREV = "f847105c5ef5d488a4bce0c0a85d572c3509d56f"
 PV = "0.3+gitr${SRCPV}"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "git://git.shr-project.org/repo/shr-themes.git;protocol=http;branch=master"
 
index bc985c0..70a4364 100644 (file)
@@ -2,32 +2,23 @@ RPROVIDES_${PN} += "virtual/theme-gtk"
 RDEPENDS_${PN} = "gtk+"
 SECTION = "gtk"
 
-inherit update-alternatives
-
-SRC_URI += "file://gtk-theme/gtkrc.${PN}"
+SRC_URI += "file://gtkrc"
 
 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}
+        install -m 0644 ${WORKDIR}/gtkrc ${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}"
+PACKAGES += "${PN}-gtkrc"
+FILES_${PN} = "${datadir}/themes/${PN}/"
+FILES_${PN}-gtkrc = "${sysconfdir}/gtk-2.0/gtkrc.${PN}"
+RDEPENDS_${PN} += "${PN}-gtkrc"
 
-pkg_postinst() {
-        if [[ -e ${ALTERNATIVE_LINK} && ! -h ${ALTERNATIVE_LINK} ]] ; then
-                echo "warn: ${ALTERNATIVE_LINK} exists and it's not a link!"
-                echo "warn: It will be replaced with link managed by update-alternatives"
-                echo "warn: Moving ${ALTERNATIVE_LINK} to ${ALTERNATIVE_LINK}.old."
-                echo "warn: It should be empty but probably isn't!"
-                echo "warn: Check what's left there and remove it manually."
-                mv -f ${ALTERNATIVE_LINK} ${ALTERNATIVE_LINK}.old
-        fi
+pkg_postinst_${PN}-gtkrc () {
+        update-alternatives --install ${sysconfdir}/gtk-2.0/gtkrc gtk-theme ${sysconfdir}/gtk-2.0/gtkrc.${PN} 10
+}
+pkg_prerm_${PN}-gtkrc () {
+        update-alternatives --remove gtk-theme ${sysconfdir}/gtk-2.0/gtkrc.${PN}
 }
index a3377cc..c3c8f97 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "SHR Lite Image Feed"
-PR = "r38"
+PR = "r39"
 PV = "2.0"
 LICENSE = "GPL"
 
@@ -138,7 +138,7 @@ RDEPENDS_${PN}-apps = "\
 
 
 RDEPENDS_${PN}-gtk = "\
-  shr-theme-gtk-e17lookalike \
+  gtk-theme-e17lookalike \
   vala-terminal \
   pyphonelog \
   matchbox-keyboard-im \