]> www.fi.muni.cz Git - evince.git/commitdiff
Comics mime types are added to shared-mime-info CVS. Now we don't need to
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 20 Dec 2005 16:54:15 +0000 (16:54 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 20 Dec 2005 16:54:15 +0000 (16:54 +0000)
* 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.

ChangeLog
backend/ev-document-factory.c
comics/Makefile.am
comics/comics-document.c
comics/ev-cbr-mime.xml [deleted file]
configure.ac

index 65b09fe80c6f757fd83ea7d4d768f9925fcff64b..324d59867200187463a6987fc0441237b59bb2d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+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:
index f9118b621cef39039394137cc2022c7aa8182fcd..1cf301414c4e7780060c3f13d2ab4a4061c13099 100644 (file)
@@ -75,8 +75,8 @@ const EvDocumentType document_types[] = {
 
 #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
 };
 
index 7ebf0d91acb16de073fdcc22beaa21c068635924..bf11eb8f99355c4e85fb5c1a5cf8d3baec048c49 100644 (file)
@@ -10,19 +10,3 @@ libcomicsdocument_la_SOURCES = \
        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
-
index aa7236a46afaa5ec12e39efd543a4bc1dd347ec8..93cd009a294062b7f8aeabb248773e5672bd787a 100644 (file)
@@ -87,12 +87,12 @@ comics_document_load (EvDocument *document,
 
        /* 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 = 
diff --git a/comics/ev-cbr-mime.xml b/comics/ev-cbr-mime.xml
deleted file mode 100644 (file)
index 4a92993..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?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
index 2f59eb065148ee30d48f79ad55e072848abb96d8..3fe05b03e44e8984895d6b6b91c98cae42bea8d5 100644 (file)
@@ -272,19 +272,9 @@ AC_ARG_ENABLE(comics,
        [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 ====================================================
@@ -301,7 +291,7 @@ if test "x$enable_tiff" = "xyes"; then
        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)