+2005-05-21 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * configure.ac:
+ * data/Makefile.am:
+ * data/evince.desktop.in:
+ * data/evince.desktop.in.in:
+ * po/POTFILES.in:
+
+ Add conditionally dvi and djvu to desktop types. Fix for 304658.
+
Sat May 21 00:21:30 2005 Jonathan Blandford <jrb@redhat.com>
* shell/ev-view.c: (view_update_adjustments),
dnl ================== End of dvi checks ===================================================
+dnl =================== Mime types list ====================================================
+
+EVINCE_MIME_TYPES="application/pdf;application/postscript;application/x-gzpostscript"
+
+if test "x$enable_dvi" = "xyes"; then
+ EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/x-dvi"
+fi
+if test "x$enable_djvu" = "xyes"; then
+ EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;image/vnd.djvu"
+fi
+AC_SUBST(EVINCE_MIME_TYPES)
+
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
dnl stolen from nautilus and gnome-common
AC_MSG_RESULT(no)
fi
-
AC_OUTPUT([
Makefile
cut-n-paste/Makefile
cut-n-paste/zoom-control/Makefile
cut-n-paste/toolbar-editor/Makefile
data/Makefile
+data/evince.desktop.in
lib/Makefile
pdf/Makefile
pixbuf/Makefile
evince-password.glade \
$(NULL)
-DESKTOP_IN_FILES= evince.desktop.in
-DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in=.desktop)
+DESKTOP_IN_FILES= evince.desktop.in.in
+DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
desktopdir = $(datadir)/applications
desktop_DATA = $(DESKTOP_FILES)
X-GNOME-Bugzilla-Product=evince
X-GNOME-Bugzilla-Component=General
Categories=GNOME;Application;Graphics;VectorGraphics;Viewer;
-MimeType=application/pdf;application/postscript;application/x-gzpostscript
+MimeType=@EVINCE_MIME_TYPES@
[encoding: UTF-8]
cut-n-paste/zoom-control/ephy-zoom.h
data/evince-password.glade
-data/evince.desktop.in
+data/evince.desktop.in.in
data/evince.schemas.in
cut-n-paste/toolbar-editor/egg-toolbar-editor.c
dvi/mdvi-lib/dviread.c