Package: ekiga
Version: 2.0.12-1
Severity: minor
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch jaunty

Hello,

currently the ekiga package ships a lot of GNOME help images which are
in translation directories, but are not actually translated, just
copies of the English variant. This makes the package much bigger than
necessary.

Attached patch uses fdupes to find those files during build and
replaces them with symlinks.

It has been tested in Ubuntu for several months without any problems.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
diff -u ekiga-2.0.12/debian/rules ekiga-2.0.12/debian/rules
--- ekiga-2.0.12/debian/rules
+++ ekiga-2.0.12/debian/rules
@@ -98,6 +114,22 @@
 	dh_gconf
 	dh_link
 	dh_compress
+	: # symlink identical Gnome help files within packages
+	for p in $$(dh_listpackages); do \
+	  if [ -d debian/$$p/usr/share/gnome/help ]; then \
+	    (cd debian/$$p && LC_ALL=C fdupes -r1nq usr/share/gnome/help \
+	    | while read s; do \
+		set -- $$(echo $$s | tr ' ' '\n' | sort); \
+		f=$$1; shift; \
+		for d; do \
+		  echo "symlinking duplicate Gnome help file $$d to $$f"; \
+		  rm $$d; ln -s /$$f $$d; \
+		done; \
+	      done; \
+	    ); \
+	  dh_link -p$$p; \
+	  fi; \
+	done
 	dh_fixperms
 	dh_installdeb
 	dh_shlibdeps
diff -u ekiga-2.0.12/debian/control ekiga-2.0.12/debian/control
--- ekiga-2.0.12/debian/control.in
+++ ekiga-2.0.12/debian/control.in
@@ -23,6 +23,7 @@
                libavahi-client-dev (>= 0.6.0),
                libavahi-glib-dev (>= 0.6.0),
                libebook1.2-dev,
+               fdupes,
                gnome-common,
                automake1.9,
                autoconf

Attachment: signature.asc
Description: Digital signature

Reply via email to