[evince] backends: Add support for Adobe Illustrator
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] backends: Add support for Adobe Illustrator
- Date: Sat, 22 Jul 2017 12:41:14 +0000 (UTC)
commit 6de5bfdae317475108ded19fdfb81de7ea17eb15
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 20 02:04:30 2017 +0200
backends: Add support for Adobe Illustrator
Add the application/illustrator mime-type as supported if both
the PDF and the EPS backends are available.
If the appdata information for the backends is used to split off the
plugins, we'll recommend using the PDF backend, as it's the one
supporting the most current, post-2000, format.
https://bugzilla.gnome.org/show_bug.cgi?id=311990
configure.ac | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6867638..4aa7930 100644
--- a/configure.ac
+++ b/configure.ac
@@ -752,9 +752,6 @@ if test "x$enable_pdf" = "xyes" ; then
EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES};${PDF_MIME_TYPES}"
fi
fi
-AC_SUBST(PDF_MIME_TYPES)
-AC_SUBST(APPDATA_PDF_MIME_TYPES)
-AM_SUBST_NOTMAKE(APPDATA_PDF_MIME_TYPES)
if test "x$enable_ps" = "xyes" ; then
PS_MIME_TYPES="application/postscript;application/x-bzpostscript;application/x-gzpostscript;image/x-eps;image/x-bzeps;image/x-gzeps;application/x-ext-ps;application/x-ext-eps"
APPDATA_PS_MIME_TYPES=$(echo "<mimetype>$PS_MIME_TYPES</mimetype>" | sed -e 's/;/<\/mimetype>\n
<mimetype>/g')
@@ -764,9 +761,24 @@ if test "x$enable_ps" = "xyes" ; then
EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES};${PS_MIME_TYPES}"
fi
fi
+
+dnl Add Adobe Illustrator support if both PDF and EPS are supported
+if test "x$enable_pdf" = "xyes" -a "x$enable_ps" = "xyes" ; then
+ PDF_MIME_TYPES="${PDF_MIME_TYPES};application/illustrator"
+ APPDATA_PDF_MIME_TYPES="${APPDATA_PDF_MIME_TYPES}"$(echo -e -n "\n
<mimetype>application/illustrator</mimetype>")
+ PS_MIME_TYPES="${PS_MIME_TYPES};application/illustrator"
+
+ EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES};application/illustrator"
+fi
+
+AC_SUBST(PDF_MIME_TYPES)
+AC_SUBST(APPDATA_PDF_MIME_TYPES)
+AM_SUBST_NOTMAKE(APPDATA_PDF_MIME_TYPES)
+
AC_SUBST(PS_MIME_TYPES)
AC_SUBST(APPDATA_PS_MIME_TYPES)
AM_SUBST_NOTMAKE(APPDATA_PS_MIME_TYPES)
+
if test "x$enable_dvi" = "xyes"; then
DVI_MIME_TYPES="application/x-dvi;application/x-bzdvi;application/x-gzdvi;application/x-ext-dvi"
APPDATA_DVI_MIME_TYPES=$(echo "<mimetype>$DVI_MIME_TYPES</mimetype>" | sed -e 's/;/<\/mimetype>\n
<mimetype>/g')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]