tags 536480 + patch
thanks

Please find attached a minimal patch based on gnome-icon-theme (2.24.0-4) against the package found at <mentors.debian.org>. I have tested it and it successfully changed my start-here icon back to the default, i.e. the Debian swirl icon, while retaining the gnome-colors icon as an alternative.

Cheers,
Fabian

--
Dipl.-Phys. Fabian Greffrath

Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum

Telefon: +49 (0)234 / 32-26334
Fax:     +49 (0)234 / 32-14227
E-Mail:  greffr...@leat.ruhr-uni-bochum.de
diff -u gnome-colors-5.1.1/debian/rules gnome-colors-5.1.1/debian/rules
--- gnome-colors-5.1.1/debian/rules
+++ gnome-colors-5.1.1/debian/rules
@@ -9,0 +10,6 @@
+
+binary-install/gnome-colors-common ::
+	for ICON in `find debian/gnome-colors-common -type f -name 'start-here.*'`; \
+		do mv -f $$ICON `echo $$ICON | sed 's:start-here:gnome-colors:'`; \
+		ln -sf `echo $$ICON | sed 's:^.*/usr/share/icons/gnome-colors-common/:/usr/share/icons/gnome/:'` $$ICON; \
+	done
diff -u gnome-colors-5.1.1/debian/control gnome-colors-5.1.1/debian/control
--- gnome-colors-5.1.1/debian/control
+++ gnome-colors-5.1.1/debian/control
@@ -39,7 +39,7 @@
 
 Package: gnome-colors-common
 Architecture: all
-Depends: gnome-icon-theme,
+Depends: gnome-icon-theme (>= 2.24.0-4),
          ${misc:Depends}
 Description: common icons for all GNOME-Colors icon themes
  GNOME-Colors is a set of GNOME icon themes, with some inspiration from
diff -u gnome-colors-5.1.1/debian/changelog gnome-colors-5.1.1/debian/changelog
--- gnome-colors-5.1.1/debian/changelog
+++ gnome-colors-5.1.1/debian/changelog
@@ -1,3 +1,16 @@
+gnome-colors (5.1.1-1.1) unstable; urgency=low
+
+  * debian/control:
+    + Make gnome-colors-common depend on gnome-icon-theme (>= 2.24.0-4).
+  * debian/rules:
+    + Rename all start-here icons in gnome-colors-common to gnome-colors.
+    + Symlink all start-here icons to the ones in gnome-icon-theme,
+      which are managed by update-alternatives (Closes: #536480).
+  * debian/gnome-colors-common.{prerm,postinst}:
+    + Register gnome-colors as an alternative for the start-here icon.
+
+ -- Fabian Greffrath <fab...@debian-unofficial.org>  Mon, 13 Jul 2009 10:32:27 +0200
+
 gnome-colors (5.1.1-1) unstable; urgency=low
 
   * New upstream release.
only in patch2:
unchanged:
--- gnome-colors-5.1.1.orig/debian/gnome-colors-common.postinst
+++ gnome-colors-5.1.1/debian/gnome-colors-common.postinst
@@ -0,0 +1,16 @@
+#! /bin/sh
+set -e
+
+SIZES=$(ls /usr/share/icons/gnome-colors-common/*/places | sed -rn 's,^.*/([0-9]+)x[0-9]+/.*$,\1,p')
+
+( while read name prio; do
+    command="update-alternatives --install /usr/share/icons/gnome/scalable/places/start-here.svg start-here.svg /usr/share/icons/gnome-colors-common/scalable/places/$name.svg $prio"
+    for s in $SIZES; do
+      command="$command --slave /usr/share/icons/gnome/${s}x${s}/places/start-here.png start-here-${s}.png /usr/share/icons/gnome-colors-common/${s}x${s}/places/$name.png"
+    done
+    $command
+  done ) << EOF
+gnome-colors 20
+EOF
+
+#DEBHELPER#
only in patch2:
unchanged:
--- gnome-colors-5.1.1.orig/debian/gnome-colors-common.prerm
+++ gnome-colors-5.1.1/debian/gnome-colors-common.prerm
@@ -0,0 +1,11 @@
+#! /bin/sh
+set -e
+
+if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
+  for name in gnome-colors; do
+    update-alternatives --remove start-here.svg /usr/share/icons/gnome-colors-common/scalable/places/$name.svg
+  done
+  rm -f /usr/share/icons/gnome-colors-common/icon-theme.cache
+fi
+
+#DEBHELPER#

Reply via email to