+2005-12-20 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * backend/ev-document-factory.c:
+ * comics/Makefile.am:
+ * comics/comics-document.c: (comics_document_load):
+ * comics/ev-cbr-mime.xml:
+ * configure.ac:
+
+ Comics mime types are added to shared-mime-info CVS. Now
+ we don't need to install our own mime types.
+
2005-12-20 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-window.c:
#ifdef ENABLE_COMICS
/* cbr/cbz: */
- {"application/cbr", EV_BACKEND_COMICS, comics_document_get_type},
- {"application/cbz", EV_BACKEND_COMICS, comics_document_get_type},
+ {"application/x-cbr", EV_BACKEND_COMICS, comics_document_get_type},
+ {"application/x-cbz", EV_BACKEND_COMICS, comics_document_get_type},
#endif
};
comics-document.c \
comics-document.h
-# need to respect $XDG_DATA_DIR probably
-xdgmimedir = $(datadir)/mime/packages
-xdgmime_DATA = ev-cbr-mime.xml
-
-EXTRA_DIST = $(xdgmime_DATA)
-
-if ENABLE_UPDATE_MIMEDB
-
-install-data-hook:
- $(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime
-
-uninstall-hook:
- $(UPDATE_MIME_DB) $(DESTDIR)$(datadir)/mime
-
-endif # ENABLE_UPDATE_MIMEDB
-
/* FIXME, use proper cbr/cbz mime types once they're
* included in shared-mime-info */
- if (!strcmp (mime_type, "application/cbr")) {
+ if (!strcmp (mime_type, "application/x-cbr")) {
comics_document->extract_command =
g_strdup ("unrar p -c- -ierr");
list_files_command =
g_strdup_printf ("unrar vb -c- -- %s", quoted_file);
- } else if (!strcmp (mime_type, "application/cbz")) {
+ } else if (!strcmp (mime_type, "application/x-cbz")) {
comics_document->extract_command =
g_strdup ("unzip -p -C");
list_files_command =
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
- <mime-type type="application/cbr">
- <sub-class-of type="application/x-rar"/>
- <comment>CBR document</comment>
- <comment xml:lang="cy">Dogfen CBR</comment>
- <comment xml:lang="da">CBR-dokument</comment>
- <comment xml:lang="de">CBR-Dokument</comment>
- <comment xml:lang="fi">CBR-asiakirja</comment>
- <comment xml:lang="nn">CBR-dokument</comment>
- <comment xml:lang="no">CBR-dokument</comment>
- <comment xml:lang="ru">CBR документ</comment>
- <comment xml:lang="sr">CBR документ</comment>
- <comment xml:lang="sv">CBR-dokument</comment>
- <glob pattern="*.cbr"/>
- </mime-type>
- <mime-type type="application/cbz">
- <sub-class-of type="application/zip"/>
- <comment>CBZ document</comment>
- <comment xml:lang="cy">Dogfen CBZ</comment>
- <comment xml:lang="da">CBZ-dokument</comment>
- <comment xml:lang="de">CBZ-Dokument</comment>
- <comment xml:lang="fi">CBZ-asiakirja</comment>
- <comment xml:lang="nn">CBZ-dokument</comment>
- <comment xml:lang="no">CBZ-dokument</comment>
- <comment xml:lang="ru">CBZ-документ</comment>
- <comment xml:lang="sr">CBZ-документ</comment>
- <comment xml:lang="sv">CBZ-dokument</comment>
- <glob pattern="*.cbz"/>
- </mime-type>
-</mime-info>
\ No newline at end of file
[AC_HELP_STRING([--enable-comics], [Compile with support for comic book archives])],enable_comics=yes,enable_comics=no)
if test "x$enable_comics" = "xyes"; then
AC_DEFINE([ENABLE_COMICS], [1], [Enable support for comics.])
-
fi
AM_CONDITIONAL(ENABLE_COMICS, test x$enable_comics = xyes)
-AC_PATH_PROG(UPDATE_MIME_DB, update-mime-database, no)
-AC_SUBST(UPDATE_MIME_DB)
-
-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 ================== End of comic book checks ============================================
dnl =================== Mime types list ====================================================
EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;image/tiff"
fi
if test "x$enable_comics" = "xyes"; then
- EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/cbr;application/cbz"
+ EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/x-cbr;application/x-cbz"
fi
AC_SUBST(EVINCE_MIME_TYPES)