|
a/packaging/homebrew/recoll.rb |
|
b/packaging/homebrew/recoll.rb |
1 |
require 'formula'
|
1 |
require 'formula'
|
2 |
|
2 |
|
|
|
3 |
# Notes:
|
|
|
4 |
# - This formula is missing python-libxml2 and python-libxslt deps
|
|
|
5 |
# which recoll needs for indexing many formats (e.g. libreoffice,
|
|
|
6 |
# openxml). Homebrew does not include these packages.
|
|
|
7 |
# So the user needs to install them with pip because I don't understand how
|
|
|
8 |
# the "Resource" homebrew thing works.
|
|
|
9 |
# Still a bit of work then, but I did not investigate, because the macports
|
|
|
10 |
# version was an easier target.
|
|
|
11 |
|
3 |
class Recoll < Formula
|
12 |
class Recoll < Formula
|
|
|
13 |
desc "Desktop search tool"
|
4 |
homepage 'http://www.recoll.org'
|
14 |
homepage 'http://www.recoll.org'
|
5 |
url 'http://www.recoll.org/recoll-1.19.11p1.tar.gz'
|
15 |
url 'http://www.recoll.org/recoll-1.24.4.tar.gz'
|
6 |
sha1 'f4259c21faff9f30882d0bf1e8f952c19ed9936b'
|
16 |
sha256 "989c1ecdce36082020c0d404a6223005cd166011f9c9b28ac762af978ef9392c"
|
7 |
|
17 |
|
8 |
depends_on 'xapian'
|
18 |
depends_on "xapian"
|
9 |
depends_on 'qt'
|
19 |
depends_on "qt"
|
10 |
def patches
|
20 |
depends_on "antiword"
|
11 |
DATA
|
21 |
depends_on "poppler"
|
12 |
end
|
22 |
depends_on "unrtf"
|
|
|
23 |
|
|
|
24 |
patch :p0, :DATA
|
13 |
def install
|
25 |
def install
|
14 |
system "./configure", "--prefix=#{prefix}"
|
26 |
# homebrew has webengine, not webkit and we're not ready for this yet
|
|
|
27 |
system "./configure", "--disable-python-module",
|
|
|
28 |
"--disable-webkit",
|
|
|
29 |
"QMAKE=/usr/local/opt/qt/bin/qmake",
|
|
|
30 |
"--prefix=#{prefix}"
|
15 |
system "make", "install"
|
31 |
system "make", "install"
|
|
|
32 |
bin.install "#{buildpath}/qtgui/recoll.app/Contents/MacOS/recoll"
|
16 |
end
|
33 |
end
|
17 |
|
34 |
|
18 |
test do
|
35 |
test do
|
19 |
system "#{bin}/recollindex", "-h"
|
36 |
system "#{bin}/recollindex", "-h"
|
20 |
end
|
37 |
end
|
21 |
end
|
38 |
end
|
22 |
|
39 |
|
23 |
__END__
|
40 |
__END__
|
24 |
a/configure.orig 2014-01-07 12:39:40.606718201 +0100
|
41 |
--- Makefile.in 2018-11-15 19:07:37.000000000 +0100
|
25 |
+++ b/configure 2014-01-07 12:39:58.574599715 +0100
|
42 |
Makefile.in.new 2018-11-29 17:08:19.000000000 +0100
|
|
|
43 |
@@ -720,8 +720,7 @@
|
|
|
44 |
# We use -release: the lib is only shared
|
|
|
45 |
# between recoll programs from the same release.
|
|
|
46 |
# -version-info $(VERSION_INFO)
|
|
|
47 |
-librecoll_la_LDFLAGS = -release $(VERSION) \
|
|
|
48 |
- -Wl,--no-undefined -Wl,--warn-unresolved-symbols
|
|
|
49 |
librecoll_la_LDFLAGS = -release $(VERSION)
|
|
|
50 |
|
|
|
51 |
librecoll_la_LIBADD = $(LIBXAPIAN) $(LIBICONV) $(LIBTHREADS)
|
|
|
52 |
recollindex_SOURCES = \
|
|
|
53 |
diff --git filters/ppt-dump.py filters/ppt-dump.py
|
|
|
54 |
index f41a9f39..dc3085a4 100755
|
|
|
55 |
--- filters/ppt-dump.py
|
|
|
56 |
filters/ppt-dump.py
|
|
|
57 |
@@ -1,4 +1,4 @@
|
|
|
58 |
-#!/usr/bin/env python2
|
|
|
59 |
#!/usr/bin/env python2.7
|
|
|
60 |
#
|
|
|
61 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
62 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
63 |
diff --git filters/rcl7z filters/rcl7z
|
|
|
64 |
index c68c8bcb..ac50c4ec 100755
|
|
|
65 |
--- filters/rcl7z
|
|
|
66 |
filters/rcl7z
|
|
|
67 |
@@ -1,4 +1,4 @@
|
|
|
68 |
-#!/usr/bin/env python2
|
|
|
69 |
#!/usr/bin/env python2.7
|
|
|
70 |
|
|
|
71 |
# 7-Zip file filter for Recoll
|
|
|
72 |
|
|
|
73 |
diff --git filters/rclaudio filters/rclaudio
|
|
|
74 |
index 94ca0be7..08d6375a 100755
|
|
|
75 |
--- filters/rclaudio
|
|
|
76 |
filters/rclaudio
|
|
|
77 |
@@ -1,4 +1,4 @@
|
|
|
78 |
-#!/usr/bin/env python2
|
|
|
79 |
#!/usr/bin/env python2.7
|
|
|
80 |
|
|
|
81 |
# Audio tag filter for Recoll, using mutagen
|
|
|
82 |
|
|
|
83 |
diff --git filters/rclchm filters/rclchm
|
|
|
84 |
index f9811c37..3bc9b16d 100755
|
|
|
85 |
--- filters/rclchm
|
|
|
86 |
filters/rclchm
|
|
|
87 |
@@ -1,4 +1,4 @@
|
|
|
88 |
-#!/usr/bin/env python2
|
|
|
89 |
#!/usr/bin/env python2.7
|
|
|
90 |
"""Extract Html files from a Microsoft Compiled Html Help file (.chm)
|
|
|
91 |
Needs at least python 2.2 for HTMLParser (chmlib needs 2.2 too)"""
|
|
|
92 |
|
|
|
93 |
diff --git filters/rcldia filters/rcldia
|
|
|
94 |
index 282148eb..a480294b 100755
|
|
|
95 |
--- filters/rcldia
|
|
|
96 |
filters/rcldia
|
|
|
97 |
@@ -1,4 +1,4 @@
|
|
|
98 |
-#!/usr/bin/env python2
|
|
|
99 |
#!/usr/bin/env python2.7
|
|
|
100 |
# -*- coding: utf-8 -*-
|
|
|
101 |
from __future__ import print_function
|
|
|
102 |
|
|
|
103 |
diff --git filters/rcldjvu.py filters/rcldjvu.py
|
|
|
104 |
index c5397195..0be01452 100755
|
|
|
105 |
--- filters/rcldjvu.py
|
|
|
106 |
filters/rcldjvu.py
|
|
|
107 |
@@ -1,4 +1,4 @@
|
|
|
108 |
-#!/usr/bin/env python2
|
|
|
109 |
#!/usr/bin/env python2.7
|
|
|
110 |
# Copyright (C) 2016 J.F.Dockes
|
|
|
111 |
# This program is free software; you can redistribute it and/or modify
|
|
|
112 |
# it under the terms of the GNU General Public License as published by
|
|
|
113 |
diff --git filters/rcldoc.py filters/rcldoc.py
|
|
|
114 |
index e8fa1831..b92b185d 100755
|
|
|
115 |
--- filters/rcldoc.py
|
|
|
116 |
filters/rcldoc.py
|
|
|
117 |
@@ -1,4 +1,4 @@
|
|
|
118 |
-#!/usr/bin/env python2
|
|
|
119 |
#!/usr/bin/env python2.7
|
|
|
120 |
from __future__ import print_function
|
|
|
121 |
|
|
|
122 |
import rclexecm
|
|
|
123 |
diff --git filters/rclepub filters/rclepub
|
|
|
124 |
index 8042d7f9..51786af1 100755
|
|
|
125 |
--- filters/rclepub
|
|
|
126 |
filters/rclepub
|
|
|
127 |
@@ -1,4 +1,4 @@
|
|
|
128 |
-#!/usr/bin/env python2
|
|
|
129 |
#!/usr/bin/env python2.7
|
|
|
130 |
"""Extract Html content from an EPUB file (.epub)"""
|
|
|
131 |
from __future__ import print_function
|
|
|
132 |
|
|
|
133 |
diff --git filters/rclepub1 filters/rclepub1
|
|
|
134 |
index bd44f635..a7ea6c06 100755
|
|
|
135 |
--- filters/rclepub1
|
|
|
136 |
filters/rclepub1
|
|
|
137 |
@@ -1,4 +1,4 @@
|
|
|
138 |
-#!/usr/bin/env python2
|
|
|
139 |
#!/usr/bin/env python2.7
|
|
|
140 |
"""Extract Html content from an EPUB file (.chm), concatenating all sections"""
|
|
|
141 |
from __future__ import print_function
|
|
|
142 |
|
|
|
143 |
diff --git filters/rclics filters/rclics
|
|
|
144 |
index 0ef04f2d..de177024 100755
|
|
|
145 |
--- filters/rclics
|
|
|
146 |
filters/rclics
|
|
|
147 |
@@ -1,4 +1,4 @@
|
|
|
148 |
-#!/usr/bin/env python2
|
|
|
149 |
#!/usr/bin/env python2.7
|
|
|
150 |
from __future__ import print_function
|
|
|
151 |
|
|
|
152 |
# Read an ICS file, break it into "documents" which are events, todos,
|
|
|
153 |
diff --git filters/rclimg.py filters/rclimg.py
|
|
|
154 |
index 7eb1da91..4eb6c9b0 100755
|
|
|
155 |
--- filters/rclimg.py
|
|
|
156 |
filters/rclimg.py
|
|
|
157 |
@@ -1,4 +1,4 @@
|
|
|
158 |
-#!/usr/bin/env python2
|
|
|
159 |
#!/usr/bin/env python2.7
|
|
|
160 |
|
|
|
161 |
# Python-based Image Tag extractor for Recoll. This is less thorough
|
|
|
162 |
# than the Perl-based rclimg script, but useful if you don't want to
|
|
|
163 |
diff --git filters/rclinfo filters/rclinfo
|
|
|
164 |
index f353d19e..36cf34e0 100755
|
|
|
165 |
--- filters/rclinfo
|
|
|
166 |
filters/rclinfo
|
|
|
167 |
@@ -1,4 +1,4 @@
|
|
|
168 |
-#!/usr/bin/env python2
|
|
|
169 |
#!/usr/bin/env python2.7
|
|
|
170 |
|
|
|
171 |
# Read a file in GNU info format and output its nodes as subdocs,
|
|
|
172 |
# interfacing with recoll execm
|
|
|
173 |
diff --git filters/rclkar filters/rclkar
|
|
|
174 |
index d6570dd5..34b8d2a2 100755
|
|
|
175 |
--- filters/rclkar
|
|
|
176 |
filters/rclkar
|
|
|
177 |
@@ -1,4 +1,4 @@
|
|
|
178 |
-#!/usr/bin/env python2
|
|
|
179 |
#!/usr/bin/env python2.7
|
|
|
180 |
|
|
|
181 |
# Read a .kar midi karaoke file and translate to recoll indexable format
|
|
|
182 |
# This does not work with Python3 yet because python:midi doesn't
|
|
|
183 |
diff --git filters/rcllatinclass.py filters/rcllatinclass.py
|
|
|
184 |
index 3f8b8634..e6b0fbee 100755
|
|
|
185 |
--- filters/rcllatinclass.py
|
|
|
186 |
filters/rcllatinclass.py
|
|
|
187 |
@@ -1,4 +1,4 @@
|
|
|
188 |
-#!/usr/bin/env python2
|
|
|
189 |
#!/usr/bin/env python2.7
|
|
|
190 |
"""Try to guess a text's language and character set by checking how it matches lists of
|
|
|
191 |
common words. This is not a primary method of detection because it's slow and unreliable, but it
|
|
|
192 |
may be a help in discrimating, for exemple, before european languages using relatively close
|
|
|
193 |
diff --git filters/rclopxml.py filters/rclopxml.py
|
|
|
194 |
index b7f7fe83..4f1803c1 100755
|
|
|
195 |
--- filters/rclopxml.py
|
|
|
196 |
filters/rclopxml.py
|
|
|
197 |
@@ -1,4 +1,4 @@
|
|
|
198 |
-#!/usr/bin/env python2
|
|
|
199 |
#!/usr/bin/env python2.7
|
|
|
200 |
# Copyright (C) 2015 J.F.Dockes
|
|
|
201 |
# This program is free software; you can redistribute it and/or modify
|
|
|
202 |
# it under the terms of the GNU General Public License as published by
|
|
|
203 |
diff --git filters/rclpdf.py filters/rclpdf.py
|
|
|
204 |
index 1e6852ea..47b09534 100755
|
|
|
205 |
--- filters/rclpdf.py
|
|
|
206 |
filters/rclpdf.py
|
|
|
207 |
@@ -1,4 +1,4 @@
|
|
|
208 |
-#!/usr/bin/env python2
|
|
|
209 |
#!/usr/bin/env python2.7
|
|
|
210 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
211 |
# This program is free software; you can redistribute it and/or modify
|
|
|
212 |
# it under the terms of the GNU General Public License as published by
|
|
|
213 |
diff --git filters/rclppt.py filters/rclppt.py
|
|
|
214 |
index a4e50265..993bc56c 100755
|
|
|
215 |
--- filters/rclppt.py
|
|
|
216 |
filters/rclppt.py
|
|
|
217 |
@@ -1,4 +1,4 @@
|
|
|
218 |
-#!/usr/bin/env python2
|
|
|
219 |
#!/usr/bin/env python2.7
|
|
|
220 |
|
|
|
221 |
# Recoll PPT text extractor
|
|
|
222 |
# Mso-dumper is not compatible with Python3. We use sys.executable to
|
|
|
223 |
diff --git filters/rclpython filters/rclpython
|
|
|
224 |
index 615455b3..1e411890 100755
|
|
|
225 |
--- filters/rclpython
|
|
|
226 |
filters/rclpython
|
|
|
227 |
@@ -1,4 +1,4 @@
|
|
|
228 |
-#!/usr/bin/env python2
|
|
|
229 |
#!/usr/bin/env python2.7
|
|
|
230 |
# -*- coding: iso-8859-1 -*-
|
|
|
231 |
"""
|
|
|
232 |
MoinMoin - Python source parser and colorizer
|
|
|
233 |
diff --git filters/rclrar filters/rclrar
|
|
|
234 |
index 8f723fa5..5f6adfb0 100755
|
|
|
235 |
--- filters/rclrar
|
|
|
236 |
filters/rclrar
|
|
|
237 |
@@ -1,4 +1,4 @@
|
|
|
238 |
-#!/usr/bin/env python2
|
|
|
239 |
#!/usr/bin/env python2.7
|
|
|
240 |
|
|
|
241 |
# Rar file filter for Recoll
|
|
|
242 |
# Adapted from the Zip archive filter by mroark.
|
|
|
243 |
diff --git filters/rclrtf.py filters/rclrtf.py
|
|
|
244 |
index e4b56d54..ffd0560e 100755
|
|
|
245 |
--- filters/rclrtf.py
|
|
|
246 |
filters/rclrtf.py
|
|
|
247 |
@@ -1,4 +1,4 @@
|
|
|
248 |
-#!/usr/bin/env python2
|
|
|
249 |
#!/usr/bin/env python2.7
|
|
|
250 |
from __future__ import print_function
|
|
|
251 |
|
|
|
252 |
import rclexecm
|
|
|
253 |
diff --git filters/rclsoff-flat.py filters/rclsoff-flat.py
|
|
|
254 |
index 337a5f94..65bfa73a 100755
|
|
|
255 |
--- filters/rclsoff-flat.py
|
|
|
256 |
filters/rclsoff-flat.py
|
|
|
257 |
@@ -1,4 +1,4 @@
|
|
|
258 |
-#!/usr/bin/env python2
|
|
|
259 |
#!/usr/bin/env python2.7
|
|
|
260 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
261 |
# This program is free software; you can redistribute it and/or modify
|
|
|
262 |
# it under the terms of the GNU General Public License as published by
|
|
|
263 |
diff --git filters/rclsoff.py filters/rclsoff.py
|
|
|
264 |
index 5730d97c..4404a14b 100755
|
|
|
265 |
--- filters/rclsoff.py
|
|
|
266 |
filters/rclsoff.py
|
|
|
267 |
@@ -1,4 +1,4 @@
|
|
|
268 |
-#!/usr/bin/env python2
|
|
|
269 |
#!/usr/bin/env python2.7
|
|
|
270 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
271 |
# This program is free software; you can redistribute it and/or modify
|
|
|
272 |
# it under the terms of the GNU General Public License as published by
|
|
|
273 |
diff --git filters/rclsvg.py filters/rclsvg.py
|
|
|
274 |
index 8c1b8aea..cee17324 100755
|
|
|
275 |
--- filters/rclsvg.py
|
|
|
276 |
filters/rclsvg.py
|
|
|
277 |
@@ -1,4 +1,4 @@
|
|
|
278 |
-#!/usr/bin/env python2
|
|
|
279 |
#!/usr/bin/env python2.7
|
|
|
280 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
281 |
# This program is free software; you can redistribute it and/or modify
|
|
|
282 |
# it under the terms of the GNU General Public License as published by
|
|
|
283 |
diff --git filters/rcltar filters/rcltar
|
|
|
284 |
index d8bf100d..ab4b306e 100755
|
|
|
285 |
--- filters/rcltar
|
|
|
286 |
filters/rcltar
|
|
|
287 |
@@ -1,4 +1,4 @@
|
|
|
288 |
-#!/usr/bin/env python2
|
|
|
289 |
#!/usr/bin/env python2.7
|
|
|
290 |
|
|
|
291 |
# Tar-file filter for Recoll
|
|
|
292 |
# Thanks to Recoll user Martin Ziegler
|
|
|
293 |
diff --git filters/rcltext.py filters/rcltext.py
|
|
|
294 |
index 77359ff6..be410984 100755
|
|
|
295 |
--- filters/rcltext.py
|
|
|
296 |
filters/rcltext.py
|
|
|
297 |
@@ -1,4 +1,4 @@
|
|
|
298 |
-#!/usr/bin/env python2
|
|
|
299 |
#!/usr/bin/env python2.7
|
|
|
300 |
|
|
|
301 |
# Wrapping a text file. Recoll does it internally in most cases, but
|
|
|
302 |
# this is for use by another filter.
|
|
|
303 |
diff --git filters/rcltxtlines.py filters/rcltxtlines.py
|
|
|
304 |
index 220151fd..b2907364 100755
|
|
|
305 |
--- filters/rcltxtlines.py
|
|
|
306 |
filters/rcltxtlines.py
|
|
|
307 |
@@ -1,4 +1,4 @@
|
|
|
308 |
-#!/usr/bin/env python2
|
|
|
309 |
#!/usr/bin/env python2.7
|
|
|
310 |
"""Index text lines as document (execm handler sample). This exists
|
|
|
311 |
to demonstrate the execm interface and is not meant to be useful or
|
|
|
312 |
efficient"""
|
|
|
313 |
diff --git filters/rcluncomp.py filters/rcluncomp.py
|
|
|
314 |
index 32a11c1a..eab3b257 100644
|
|
|
315 |
--- filters/rcluncomp.py
|
|
|
316 |
filters/rcluncomp.py
|
|
|
317 |
@@ -1,4 +1,4 @@
|
|
|
318 |
-#!/usr/bin/env python2
|
|
|
319 |
#!/usr/bin/env python2.7
|
|
|
320 |
from __future__ import print_function
|
|
|
321 |
|
|
|
322 |
import rclexecm
|
|
|
323 |
diff --git filters/rclwar filters/rclwar
|
|
|
324 |
index b654f3b3..301e28e9 100755
|
|
|
325 |
--- filters/rclwar
|
|
|
326 |
filters/rclwar
|
|
|
327 |
@@ -1,4 +1,4 @@
|
|
|
328 |
-#!/usr/bin/env python2
|
|
|
329 |
#!/usr/bin/env python2.7
|
|
|
330 |
|
|
|
331 |
# WAR web archive filter for recoll. War file are gzipped tar files
|
|
|
332 |
|
|
|
333 |
diff --git filters/rclxls.py filters/rclxls.py
|
|
|
334 |
index c7b2343a..f8f10f8b 100755
|
|
|
335 |
--- filters/rclxls.py
|
|
|
336 |
filters/rclxls.py
|
|
|
337 |
@@ -1,4 +1,4 @@
|
|
|
338 |
-#!/usr/bin/env python2
|
|
|
339 |
#!/usr/bin/env python2.7
|
|
|
340 |
|
|
|
341 |
# Extractor for Excel files.
|
|
|
342 |
# Mso-dumper is not compatible with Python3. We use sys.executable to
|
|
|
343 |
diff --git filters/rclxml.py filters/rclxml.py
|
|
|
344 |
index 33ae8e3e..507851db 100755
|
|
|
345 |
--- filters/rclxml.py
|
|
|
346 |
filters/rclxml.py
|
|
|
347 |
@@ -1,4 +1,4 @@
|
|
|
348 |
-#!/usr/bin/env python2
|
|
|
349 |
#!/usr/bin/env python2.7
|
|
|
350 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
351 |
# This program is free software; you can redistribute it and/or modify
|
|
|
352 |
# it under the terms of the GNU General Public License as published by
|
|
|
353 |
diff --git filters/rclxmp.py filters/rclxmp.py
|
|
|
354 |
index 158e1222..602769af 100755
|
|
|
355 |
--- filters/rclxmp.py
|
|
|
356 |
filters/rclxmp.py
|
|
|
357 |
@@ -1,4 +1,4 @@
|
|
|
358 |
-#!/usr/bin/env python2
|
|
|
359 |
#!/usr/bin/env python2.7
|
|
|
360 |
# Copyright (C) 2016 J.F.Dockes
|
|
|
361 |
# This program is free software; you can redistribute it and/or modify
|
|
|
362 |
# it under the terms of the GNU General Public License as published by
|
|
|
363 |
diff --git filters/rclzip filters/rclzip
|
|
|
364 |
index 35739625..0c597fbd 100755
|
|
|
365 |
--- filters/rclzip
|
|
|
366 |
filters/rclzip
|
|
|
367 |
@@ -1,4 +1,4 @@
|
|
|
368 |
-#!/usr/bin/env python2
|
|
|
369 |
#!/usr/bin/env python2.7
|
|
|
370 |
# Copyright (C) 2014 J.F.Dockes
|
|
|
371 |
# This program is free software; you can redistribute it and/or modify
|
|
|
372 |
# it under the terms of the GNU General Public License as published by
|
|
|
373 |
diff --git filters/xls-dump.py filters/xls-dump.py
|
|
|
374 |
index abffa330..57a8f113 100755
|
|
|
375 |
--- filters/xls-dump.py
|
|
|
376 |
filters/xls-dump.py
|
|
|
377 |
@@ -1,4 +1,4 @@
|
|
|
378 |
-#!/usr/bin/env python2
|
|
|
379 |
#!/usr/bin/env python2.7
|
|
|
380 |
#
|
|
|
381 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
382 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
383 |
diff --git filters/xlsxmltocsv.py filters/xlsxmltocsv.py
|
|
|
384 |
index 0c9a5047..90ab06f2 100755
|
|
|
385 |
--- filters/xlsxmltocsv.py
|
|
|
386 |
filters/xlsxmltocsv.py
|
|
|
387 |
@@ -1,4 +1,4 @@
|
|
|
388 |
-#!/usr/bin/env python2
|
|
|
389 |
#!/usr/bin/env python2.7
|
|
|
390 |
# Copyright (C) 2015 J.F.Dockes
|
|
|
391 |
# This program is free software; you can redistribute it and/or modify
|
|
|
392 |
# it under the terms of the GNU General Public License as published by
|
|
|
393 |
diff --git aspell/rclaspell.cpp aspell/rclaspell.cpp-new
|
|
|
394 |
index 698832df..4fd8b6b8 100644
|
|
|
395 |
--- aspell/rclaspell.cpp
|
|
|
396 |
aspell/rclaspell.cpp-new
|
|
|
397 |
@@ -71,12 +71,16 @@ static std::mutex o_aapi_mutex;
|
|
|
398 |
badnames += #NM + string(" "); \
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
-static const char *aspell_lib_suffixes[] = {
|
|
|
402 |
- ".so",
|
|
|
403 |
- ".so.15",
|
|
|
404 |
- ".so.16"
|
|
|
405 |
static const vector<string> aspell_lib_suffixes {
|
|
|
406 |
#if defined(__APPLE__)
|
|
|
407 |
".15.dylib",
|
|
|
408 |
".dylib",
|
|
|
409 |
#else
|
|
|
410 |
".so",
|
|
|
411 |
".so.15",
|
|
|
412 |
".so.16",
|
|
|
413 |
#endif
|
|
|
414 |
};
|
|
|
415 |
-static const unsigned int nlibsuffs = sizeof(aspell_lib_suffixes) / sizeof(char *);
|
|
|
416 |
|
|
|
417 |
// Stuff that we don't wish to see in the .h (possible sysdeps, etc.)
|
|
|
418 |
class AspellData {
|
|
|
419 |
@@ -160,16 +164,39 @@ bool Aspell::init(string &reason)
|
|
|
420 |
return false;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
|
|
|
424 |
// Don't know what with Apple and (DY)LD_LIBRARY_PATH. Does not work
|
|
|
425 |
// So we look in all ../lib in the PATH...
|
|
|
426 |
#if defined(__APPLE__)
|
|
|
427 |
vector<string> path;
|
|
|
428 |
const char *pp = getenv("PATH");
|
|
|
429 |
if (pp) {
|
|
|
430 |
stringToTokens(pp, path, ":");
|
|
|
431 |
}
|
|
|
432 |
#endif
|
|
|
433 |
|
|
|
434 |
reason = "Could not open shared library ";
|
|
|
435 |
string libbase("libaspell");
|
|
|
436 |
string lib;
|
|
|
437 |
- for (unsigned int i = 0; i < nlibsuffs; i++) {
|
|
|
438 |
- lib = libbase + aspell_lib_suffixes[i];
|
|
|
439 |
for (const auto& suff : aspell_lib_suffixes) {
|
|
|
440 |
lib = libbase + suff;
|
|
|
441 |
reason += string("[") + lib + "] ";
|
|
|
442 |
if ((m_data->m_handle = dlopen(lib.c_str(), RTLD_LAZY)) != 0) {
|
|
|
443 |
reason.erase();
|
|
|
444 |
goto found;
|
|
|
445 |
}
|
|
|
446 |
#if defined(__APPLE__)
|
|
|
447 |
// Above was the normal lookup: let dlopen search the directories.
|
|
|
448 |
// Here is for Apple. Also look at all ../lib along the PATH
|
|
|
449 |
for (const auto& dir : path) {
|
|
|
450 |
string lib1 = path_canon(dir + "/../lib/" + lib);
|
|
|
451 |
if ((m_data->m_handle = dlopen(lib1.c_str(), RTLD_LAZY)) != 0) {
|
|
|
452 |
reason.erase();
|
|
|
453 |
lib=lib1;
|
|
|
454 |
goto found;
|
|
|
455 |
}
|
|
|
456 |
}
|
|
|
457 |
#endif
|
|
|
458 |
}
|
|
|
459 |
|
|
|
460 |
found:
|
|
|
461 |
--- sampleconf/mimeview 2018-11-29 13:33:09.000000000 +0100
|
|
|
462 |
sampleconf/mimeview.mac 2018-11-29 16:38:52.000000000 +0100
|
26 |
@@ -5120,7 +5120,7 @@
|
463 |
@@ -2,7 +2,8 @@
|
27 |
# basically to enable using a Macbook for development
|
464 |
|
28 |
if test X$sys = XDarwin ; then
|
465 |
## ##########################################
|
29 |
# The default is xcode
|
466 |
# External viewers, launched by the recoll GUI when you click on a result
|
30 |
QMAKE="${QMAKE} -spec macx-g++"
|
467 |
-# 'edit' link
|
31 |
+ QMAKE="${QMAKE}"
|
468 |
# 'Open' link - MAC version
|
32 |
fi
|
469 |
# On the MAC, we use "open" for everything...
|
33 |
|
470 |
|
34 |
# Discriminate qt3/4. Qt3 qmake prints its version on stderr but we don't
|
471 |
# Mime types which we should not uncompress if they are found gzipped or
|
35 |
|
472 |
# bzipped because the native viewer knows how to handle. These would be
|
|
|
473 |
@@ -16,22 +17,17 @@
|
|
|
474 |
# search string
|
|
|
475 |
# - For pages of CHM and EPUB documents where we can choose to open the
|
|
|
476 |
# parent document instead of a temporary html file.
|
|
|
477 |
-# Use xallexcepts- and xallexcepts+ in a user file to add or remove from
|
|
|
478 |
-# the default xallexcepts list
|
|
|
479 |
-
|
|
|
480 |
-xallexcepts = application/pdf application/postscript application/x-dvi \
|
|
|
481 |
- text/html|gnuinfo text/html|chm text/html|epub \
|
|
|
482 |
- application/x-fsdirectory|parentopen inode/directory|parentopen
|
|
|
483 |
-
|
|
|
484 |
#xallexcepts = application/pdf application/postscript application/x-dvi \
|
|
|
485 |
# text/html|gnuinfo text/html|chm text/html|epub
|
|
|
486 |
|
|
|
487 |
[view]
|
|
|
488 |
# Pseudo entry used if the 'use desktop' preference is set in the GUI
|
|
|
489 |
-application/x-all = xdg-open %u
|
|
|
490 |
application/x-all = open %f
|
|
|
491 |
|
|
|
492 |
application/epub+zip = ebook-viewer %f
|
|
|
493 |
-# Open the parent epub document for epub parts instead of opening them as
|
|
|
494 |
-# html documents. This is almost always what we want.
|
|
|
495 |
-text/html|epub = ebook-viewer %F;ignoreipath=1
|
|
|
496 |
# If you want to open the parent epub document for epub parts instead of
|
|
|
497 |
# opening them as html documents:
|
|
|
498 |
#text/html|epub = ebook-viewer %F;ignoreipath=1
|
|
|
499 |
|
|
|
500 |
application/x-gnote = gnote %f
|
|
|
501 |
|
|
|
502 |
@@ -146,12 +142,11 @@
|
|
|
503 |
application/zip = ark %f
|
|
|
504 |
application/x-7z-compressed = ark %f
|
|
|
505 |
|
|
|
506 |
-application/x-awk = emacsclient --no-wait %f
|
|
|
507 |
-application/x-perl = emacsclient --no-wait %f
|
|
|
508 |
-text/x-perl = emacsclient --no-wait %f
|
|
|
509 |
-application/x-shellscript = emacsclient --no-wait %f
|
|
|
510 |
-text/x-shellscript = emacsclient --no-wait %f
|
|
|
511 |
-text/x-srt = emacsclient --no-wait %f
|
|
|
512 |
application/x-awk = emacsclient %f
|
|
|
513 |
application/x-perl = emacsclient %f
|
|
|
514 |
text/x-perl = emacsclient %f
|
|
|
515 |
application/x-shellscript = emacsclient %f
|
|
|
516 |
text/x-shellscript = emacsclient %f
|
|
|
517 |
|
|
|
518 |
# Or firefox -remote "openFile(%u)"
|
|
|
519 |
text/html = firefox %u
|
|
|
520 |
@@ -163,16 +158,15 @@
|
|
|
521 |
|
|
|
522 |
application/x-webarchive = konqueror %f
|
|
|
523 |
text/x-fictionbook = ebook-viewer %f
|
|
|
524 |
-application/x-tex = emacsclient --no-wait %f
|
|
|
525 |
-application/xml = emacsclient --no-wait %f
|
|
|
526 |
-text/xml = emacsclient --no-wait %f
|
|
|
527 |
-text/x-tex = emacsclient --no-wait %f
|
|
|
528 |
-text/plain = emacsclient --no-wait %f
|
|
|
529 |
-text/x-awk = emacsclient --no-wait %f
|
|
|
530 |
-text/x-c = emacsclient --no-wait %f
|
|
|
531 |
-text/x-lua = emacsclient --no-wait %f
|
|
|
532 |
-text/x-c+ = emacsclient --no-wait %f
|
|
|
533 |
-text/x-c++ = emacsclient --no-wait %f
|
|
|
534 |
application/x-tex = emacsclient %f
|
|
|
535 |
application/xml = emacsclient %f
|
|
|
536 |
text/xml = emacsclient %f
|
|
|
537 |
text/x-tex = emacsclient %f
|
|
|
538 |
text/plain = emacsclient %f
|
|
|
539 |
text/x-awk = emacsclient %f
|
|
|
540 |
text/x-c = emacsclient %f
|
|
|
541 |
text/x-c+ = emacsclient %f
|
|
|
542 |
text/x-c++ = emacsclient %f
|
|
|
543 |
text/x-csv = libreoffice %f
|
|
|
544 |
text/x-html-sidux-man = konqueror %f
|
|
|
545 |
text/x-html-aptosid-man = iceweasel %f
|
|
|
546 |
@@ -183,22 +177,21 @@
|
|
|
547 |
# file at the right place
|
|
|
548 |
text/html|chm = kchmviewer --url %i %F
|
|
|
549 |
|
|
|
550 |
-text/x-ini = emacsclient --no-wait %f
|
|
|
551 |
text/x-ini = emacsclient %f
|
|
|
552 |
text/x-man = xterm -u8 -e "groff -T ascii -man %f | more"
|
|
|
553 |
text/x-python = idle %f
|
|
|
554 |
-text/x-gaim-log = emacsclient --no-wait %f
|
|
|
555 |
-text/x-purple-html-log = emacsclient --no-wait %f
|
|
|
556 |
-text/x-purple-log = emacsclient --no-wait %f
|
|
|
557 |
text/x-gaim-log = emacsclient %f
|
|
|
558 |
text/x-purple-html-log = emacsclient %f
|
|
|
559 |
text/x-purple-log = emacsclient %f
|
|
|
560 |
|
|
|
561 |
# The video types will usually be handled by the desktop default, but they
|
|
|
562 |
# need entries here to get an "Open" link
|
|
|
563 |
-video/3gpp = vlc %f
|
|
|
564 |
-video/mp2p = vlc %f
|
|
|
565 |
-video/mp2t = vlc %f
|
|
|
566 |
-video/mp4 = vlc %f
|
|
|
567 |
-video/mpeg = vlc %f
|
|
|
568 |
-video/quicktime = vlc %f
|
|
|
569 |
-video/x-matroska = vlc %f
|
|
|
570 |
-video/x-ms-asf = vlc %f
|
|
|
571 |
-video/x-msvideo = vlc %f
|
|
|
572 |
-
|
|
|
573 |
video/3gpp = open %f
|
|
|
574 |
video/mp2p = open %f
|
|
|
575 |
video/mp2t = open %f
|
|
|
576 |
video/mp4 = open %f
|
|
|
577 |
video/mpeg = open %f
|
|
|
578 |
video/quicktime = open %f
|
|
|
579 |
video/x-matroska = open %f
|
|
|
580 |
video/x-ms-asf = open %f
|
|
|
581 |
video/x-msvideo = open %f
|