diff options
Diffstat (limited to 'yocto-poky/meta/recipes-sato/sato-icon-theme')
-rw-r--r-- | yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme/0001-Inherit-the-GNOME-icon-theme.patch | 31 | ||||
-rw-r--r-- | yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb | 40 |
2 files changed, 71 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme/0001-Inherit-the-GNOME-icon-theme.patch b/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme/0001-Inherit-the-GNOME-icon-theme.patch new file mode 100644 index 000000000..2c176ee90 --- /dev/null +++ b/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme/0001-Inherit-the-GNOME-icon-theme.patch @@ -0,0 +1,31 @@ +From b9f02989310a3c920589f1aa646bcbf16b2572a0 Mon Sep 17 00:00:00 2001 +From: Ross Burton <ross.burton@intel.com> +Date: Wed, 13 Jun 2012 11:07:33 +0100 +Subject: [PATCH] Inherit the GNOME icon theme + +If the GNOME icon theme isn't installed this is a no-op, but if it is then +you'll get fallback from Sato to GNOME for icons that are not in Sato. + +As applications that use the full GNOME icon theme depend on gnome-icon-theme, +this just works. + +Upstream-Status: Backport +--- + index.theme | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/index.theme b/index.theme +index c4b03a7..688fbbf 100644 +--- a/index.theme ++++ b/index.theme +@@ -1,6 +1,7 @@ + [Icon Theme] + Name=Sato + Comment=Sato icon theme ++Inherits=Adwaita + + Directories=16x16/apps,16x16/status,16x16/stock,16x16/places,16x16/mimetypes,16x16/devices,16x16/actions,22x22/apps,22x22/status,22x22/stock,22x22/places,22x22/mimetypes,22x22/devices,22x22/actions,32x32/apps,32x32/status,32x32/stock,32x32/places,32x32/mimetypes,32x32/devices,32x32/actions,48x48/apps,48x48/status,48x48/stock,48x48/places,48x48/mimetypes,48x48/devices,48x48/actions,64x64/apps,64x64/status,64x64/stock,64x64/places,64x64/mimetypes,64x64/devices,64x64/actions, + +-- +1.7.10 + diff --git a/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb b/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb new file mode 100644 index 000000000..ced735f00 --- /dev/null +++ b/yocto-poky/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb @@ -0,0 +1,40 @@ +SUMMARY = "Sato icon theme" +HOMEPAGE = "http://www.o-hand.com" +BUGTRACKER = "http://bugzilla.yoctoproject.org/" + +LICENSE = "CC-BY-SA-3.0" +LIC_FILES_CHKSUM = "file://COPYING;md5=56a830bbe6e4697fe6cbbae01bb7c2b2" +SECTION = "x11" + +PR = "r6" + +DEPENDS = "icon-naming-utils-native libxml-simple-perl-native" + +SRC_URI = "http://pokylinux.org/releases/sato/${BPN}-${PV}.tar.gz \ + file://0001-Inherit-the-GNOME-icon-theme.patch" + +SRC_URI[md5sum] = "86a847f3128a43a9cf23b7029a656f50" +SRC_URI[sha256sum] = "0b0a2807a6a96918ac799a86094ec3e8e2c892be0fd679a4232c2a77f2f61732" + +inherit autotools pkgconfig allarch gtk-icon-cache perlnative + +# The configure script uses pkg-config to find native binaries to execute, so +# tell it to use our pkg-config-native wrapper. +export PKG_CONFIG = "pkg-config-native" + +FILES_${PN} += "${datadir}/icons/Sato" + +do_install_append() { + find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s preferences-system.png {}/apps/preferences-desktop.png \; + find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s file-manager.png {}/apps/system-file-manager.png \; + find ${D}${datadir}/icons/Sato/ -maxdepth 1 -type d -exec ln -s ../apps/terminal.png {}/places/computer.png \; +} + +# Explictly setting "Sato" as the default icon theme to avoid flickering from +# the desktop and settings daemon racing. This shouldn't be done here but in the sato image +pkg_postinst_${PN} () { + mkdir -p $D/etc/gtk-2.0 + + grep -s -q -e ^gtk-icon-theme-name.*\"Sato\" $D/etc/gtk-2.0/gtkrc || \ + echo 'gtk-icon-theme-name = "Sato"' >> $D/etc/gtk-2.0/gtkrc +} |