--- a/packaging/macports/textproc/recoll/files/patch-sampleconf-mimeview.diff
+++ b/packaging/macports/textproc/recoll/files/patch-sampleconf-mimeview.diff
@@ -1,5 +1,5 @@
---- sampleconf/mimeview 2013-09-30 18:45:06.000000000 +0200
-+++ sampleconf/mimeview.mac 2013-09-30 18:45:06.000000000 +0200
+--- sampleconf/mimeview 2018-11-29 13:33:09.000000000 +0100
++++ sampleconf/mimeview.mac 2018-11-29 16:38:52.000000000 +0100
@@ -2,7 +2,8 @@
## ##########################################
@@ -10,13 +10,17 @@
# Mime types which we should not uncompress if they are found gzipped or
# bzipped because the native viewer knows how to handle. These would be
-@@ -16,20 +17,17 @@
+@@ -16,22 +17,17 @@
# search string
# - For pages of CHM and EPUB documents where we can choose to open the
# parent document instead of a temporary html file.
+-# Use xallexcepts- and xallexcepts+ in a user file to add or remove from
+-# the default xallexcepts list
+-
-xallexcepts = application/pdf application/postscript application/x-dvi \
- text/html|gnuinfo text/html|chm text/html|epub \
- application/x-fsdirectory|parentopen inode/directory|parentopen
+-
+#xallexcepts = application/pdf application/postscript application/x-dvi \
+# text/html|gnuinfo text/html|chm text/html|epub
@@ -29,50 +33,22 @@
-# Open the parent epub document for epub parts instead of opening them as
-# html documents. This is almost always what we want.
-text/html|epub = ebook-viewer %F;ignoreipath=1
--
--application/x-gnote = gnote %f
+# If you want to open the parent epub document for epub parts instead of
+# opening them as html documents:
+#text/html|epub = ebook-viewer %F;ignoreipath=1
- application/x-mobipocket-ebook = ebook-viewer %f
+ application/x-gnote = gnote %f
-@@ -76,13 +74,9 @@
- application/vnd.wordperfect = libreoffice %f
- text/rtf = libreoffice %f
-
-+application/x-chm = kchmviewer %f
- application/x-dia-diagram = dia %f
--
- application/x-fsdirectory = dolphin %f
--inode/directory = dolphin %f
--application/x-fsdirectory|parentopen = dolphin --select %(childurl) %f
--inode/directory|parentopen = dolphin --select %(childurl) %f
--
- application/x-gnuinfo = xterm -e "info -f %f"
- application/x-gnumeric = gnumeric %f
-
-@@ -102,11 +96,6 @@
- image/x-ms-bmp = gwenview %f
- image/x-xpmi = gwenview %f
-
--# Opening mail messages not always works.
--# - Thunderbird will only open a single-message file if it has an .emf
--# extension
--# - "sylpheed %f" seems to work ok as of version 3.3
--# - "kmail --view %u" works
- message/rfc822 = thunderbird -file %f
- text/x-mail = thunderbird -file %f
- application/x-mimehtml = thunderbird -file %f
-@@ -119,11 +108,11 @@
- application/x-tar = ark %f
+@@ -146,12 +142,11 @@
application/zip = ark %f
+ application/x-7z-compressed = ark %f
-application/x-awk = emacsclient --no-wait %f
-application/x-perl = emacsclient --no-wait %f
-text/x-perl = emacsclient --no-wait %f
-application/x-shellscript = emacsclient --no-wait %f
-text/x-shellscript = emacsclient --no-wait %f
+-text/x-srt = emacsclient --no-wait %f
+application/x-awk = emacsclient %f
+application/x-perl = emacsclient %f
+text/x-perl = emacsclient %f
@@ -81,7 +57,7 @@
# Or firefox -remote "openFile(%u)"
text/html = firefox %u
-@@ -135,41 +124,39 @@
+@@ -163,16 +158,15 @@
application/x-webarchive = konqueror %f
text/x-fictionbook = ebook-viewer %f
@@ -92,6 +68,7 @@
-text/plain = emacsclient --no-wait %f
-text/x-awk = emacsclient --no-wait %f
-text/x-c = emacsclient --no-wait %f
+-text/x-lua = emacsclient --no-wait %f
-text/x-c+ = emacsclient --no-wait %f
-text/x-c++ = emacsclient --no-wait %f
+application/x-tex = emacsclient %f
@@ -106,10 +83,7 @@
text/x-csv = libreoffice %f
text/x-html-sidux-man = konqueror %f
text/x-html-aptosid-man = iceweasel %f
-
--application/x-chm = kchmviewer %f
- # Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer
- # knows how to use the ipath (which is the internal chm path) to open the
+@@ -183,22 +177,21 @@
# file at the right place
text/html|chm = kchmviewer --url %i %F