/app-text/gtranslator/files/gtranslator-1.9.13-desktop-database.patch

https://github.com/1000timesdead/portage · Patch · 53 lines · 47 code · 6 blank · 0 comment · 0 complexity · 9ee2b8b4fed1b0cc604ee447d0edf537 MD5 · raw file

  1. From e4ecdf31c9f53ea95fe803b5d25a892c5e72279d Mon Sep 17 00:00:00 2001
  2. From: Ignacio Casal Quinteiro <icq@gnome.org>
  3. Date: Sat, 06 Nov 2010 11:36:18 +0000
  4. Subject: Remove call to update-desktop-database. Fixes bug #628726.
  5. ---
  6. diff --git a/data/desktop/Makefile.am b/data/desktop/Makefile.am
  7. index 313cb9f..3812f9a 100644
  8. --- a/data/desktop/Makefile.am
  9. +++ b/data/desktop/Makefile.am
  10. @@ -1,34 +1,14 @@
  11. SUBDIRS = icons
  12. -##
  13. -## the dirs where all the DATA should go ..
  14. -##
  15. -Applicationdir = $(datadir)/applications
  16. -
  17. -##
  18. -## and the DATA
  19. -##
  20. -Application_predata = gtranslator.desktop.in
  21. -Application_DATA = $(Application_predata:.desktop.in=.desktop)
  22. -
  23. +desktopdir = $(datadir)/applications
  24. +desktop_in_files = gtranslator.desktop.in
  25. +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
  26. @INTLTOOL_DESKTOP_RULE@
  27. -EXTRA_DIST = $(Application_DATA) \
  28. - $(Applicationicon_DATA) \
  29. - $(Application_predata)
  30. -
  31. -CLEANFILES = $(Application_DATA)
  32. +EXTRA_DIST = $(desktop_in_files)
  33. -UPDATE_DESKTOP = \
  34. - if [ -f $(Applicationdir)/defaults.list ] ; then \
  35. - if which update-desktop-database>/dev/null 2>&1 ; then \
  36. - update-desktop-database $(Applicationdir); \
  37. - fi \
  38. - fi
  39. +CLEANFILES = $(desktop_DATA)
  40. -install-data-hook:
  41. - $(UPDATE_DESKTOP)
  42. +DISTCLEANFILES = $(desktop_DATA)
  43. -uninstall-hook:
  44. - $(UPDATE_DESKTOP)
  45. -include $(top_srcdir)/git.mk
  46. --
  47. cgit v0.8.3.1