gtranslator/gtranslator-disable-update-db.patch

41 lines
1.5 KiB
Diff

Index: gtranslator-1.9.13/configure.ac
===================================================================
--- gtranslator-1.9.13.orig/configure.ac
+++ gtranslator-1.9.13/configure.ac
@@ -239,6 +239,16 @@ fi
AC_MSG_RESULT($enable_debug)
dnl -------------------------------------------------------------------
+dnl Use update-desktop-database?
+dnl -------------------------------------------------------------------
+
+AC_ARG_ENABLE(update-mimedb,
+ AC_HELP_STRING([--disable-update-mimedb],
+ [disable the update-mime-database after install [default=no]]),,
+ enable_update_mimedb=yes)
+AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
+
+dnl -------------------------------------------------------------------
dnl Get the date for the man-page and substitute it there and anywhere.
dnl -------------------------------------------------------------------
MY_DATE=`date +%Y-%m-%d`
Index: gtranslator-1.9.13/data/desktop/Makefile.am
===================================================================
--- gtranslator-1.9.13.orig/data/desktop/Makefile.am
+++ gtranslator-1.9.13/data/desktop/Makefile.am
@@ -19,6 +19,7 @@ EXTRA_DIST = $(Application_DATA) \
CLEANFILES = $(Application_DATA)
+if ENABLE_UPDATE_MIMEDB
UPDATE_DESKTOP = \
if [ -f $(Applicationdir)/defaults.list ] ; then \
if which update-desktop-database>/dev/null 2>&1 ; then \
@@ -31,4 +32,6 @@ install-data-hook:
uninstall-hook:
$(UPDATE_DESKTOP)
+endif
+
-include $(top_srcdir)/git.mk