1 |
commit: 062b42a3da95e7d0ba19fd8b204f25b89f652448 |
2 |
Author: Punarbasu 'ppurka' Purkayastha <ppurka <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 5 17:48:41 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 8 17:03:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=062b42a3 |
7 |
|
8 |
app-misc/recoll: 1.25.15 version bump, EAPI-7 bump, USE chm,webengine |
9 |
|
10 |
Drop dev-qt/qtwebkit option. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/680468 |
13 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
app-misc/recoll/Manifest | 1 + |
17 |
app-misc/recoll/metadata.xml | 2 + |
18 |
app-misc/recoll/recoll-1.25.15.ebuild | 134 ++++++++++++++++++++++++++++++++++ |
19 |
3 files changed, 137 insertions(+) |
20 |
|
21 |
diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest |
22 |
index 813a20ac0f4..d077ba98df1 100644 |
23 |
--- a/app-misc/recoll/Manifest |
24 |
+++ b/app-misc/recoll/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST recoll-1.24.1.tar.gz 2644672 BLAKE2B e5bce2231e075fe9a2bfad7d0d1068906e625106b09247dc5baffaf92957db111dd6be90c658266b8b9940d885b3495769c68ce66247d00568df24c1b5222226 SHA512 60bf57d2718a21dbd578fa1dc73a542fc7ab2152c4c5bb763885b19c14d080340587cb8c01f82f1ca7d1cb63a03edf03b4501f3ef63f06ab6506356c4a0a095c |
27 |
+DIST recoll-1.25.15.tar.gz 2843434 BLAKE2B 7facf6040560ab11b7a3d99b583020bdd4757157236a23430381c9d6932de558917f5dd1faf0f1ca87be3386307b5346ec66bb82637edd42035fd7be61ee9b39 SHA512 acd5349e1a1edd6ca22f819b0cfe76161fedb0bde8b4a86e679e78d68d090481a11a8d1980764d008074846b5033481c766e624da1322ab318b52c9c9c57104c |
28 |
|
29 |
diff --git a/app-misc/recoll/metadata.xml b/app-misc/recoll/metadata.xml |
30 |
index 1e89b50bb67..80572eb1e41 100644 |
31 |
--- a/app-misc/recoll/metadata.xml |
32 |
+++ b/app-misc/recoll/metadata.xml |
33 |
@@ -18,8 +18,10 @@ |
34 |
</upstream> |
35 |
<use> |
36 |
<flag name="camelcase">Enable indexing for camelCase sentences and words</flag> |
37 |
+ <flag name="chm">Enable CHM file support via <pkg>dev-python/pychm</pkg></flag> |
38 |
<flag name="inotify">Use the Linux Kernel notification subsystem for monitoring file alterations in realtime</flag> |
39 |
<flag name="session">Stop monitoring file alterations when X11 session terminates</flag> |
40 |
+ <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> for fancy result list display</flag> |
41 |
</use> |
42 |
<longdescription lang="en"> |
43 |
Recoll is a desktop full-text search tool. It can search most document |
44 |
|
45 |
diff --git a/app-misc/recoll/recoll-1.25.15.ebuild b/app-misc/recoll/recoll-1.25.15.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..05fa308a893 |
48 |
--- /dev/null |
49 |
+++ b/app-misc/recoll/recoll-1.25.15.ebuild |
50 |
@@ -0,0 +1,134 @@ |
51 |
+# Copyright 1999-2019 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+ |
56 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
57 |
+ |
58 |
+inherit eutils linux-info python-single-r1 qmake-utils |
59 |
+ |
60 |
+DESCRIPTION="A personal full text search package" |
61 |
+HOMEPAGE="https://www.lesbonscomptes.com/recoll/" |
62 |
+SRC_URI="https://www.lesbonscomptes.com/recoll/${P}.tar.gz" |
63 |
+ |
64 |
+LICENSE="GPL-2" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64 ~x86" |
67 |
+ |
68 |
+IUSE="camelcase chm doc +inotify qt5 session +spell webengine" |
69 |
+REQUIRED_USE=" |
70 |
+ session? ( inotify ) |
71 |
+ webengine? ( qt5 ) |
72 |
+ ${PYTHON_REQUIRED_USE} |
73 |
+" |
74 |
+ |
75 |
+DEPEND=" |
76 |
+ dev-libs/xapian:= |
77 |
+ sys-libs/zlib:= |
78 |
+ virtual/libiconv |
79 |
+ chm? ( |
80 |
+ dev-libs/chmlib |
81 |
+ dev-python/pychm |
82 |
+ ) |
83 |
+ qt5? ( |
84 |
+ dev-qt/qtcore:5 |
85 |
+ dev-qt/qtgui:5 |
86 |
+ dev-qt/qtprintsupport:5 |
87 |
+ webengine? ( dev-qt/qtwebengine:5[widgets] ) |
88 |
+ ) |
89 |
+ session? ( |
90 |
+ inotify? ( |
91 |
+ x11-libs/libSM |
92 |
+ x11-libs/libICE |
93 |
+ x11-libs/libX11 |
94 |
+ ) |
95 |
+ ) |
96 |
+ spell? ( app-text/aspell ) |
97 |
+ ${PYTHON_DEPS} |
98 |
+" |
99 |
+ |
100 |
+BDEPEND=" |
101 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
102 |
+" |
103 |
+ |
104 |
+RDEPEND=" |
105 |
+ ${DEPEND} |
106 |
+ app-arch/unzip |
107 |
+" |
108 |
+ |
109 |
+pkg_pretend() { |
110 |
+ if has_version "<app-misc/recoll-1.20"; then |
111 |
+ elog "Installing ${PV} over an 1.19 index is possible," |
112 |
+ elog "but there have been small changes in the way" |
113 |
+ elog "compound words are indexed. So it is best to reset" |
114 |
+ elog "the index. The best method to reset the index is to" |
115 |
+ elog "quit all recoll programs and delete the index directory" |
116 |
+ elog "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex." |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+pkg_setup() { |
121 |
+ if use inotify; then |
122 |
+ local CONFIG_CHECK="~INOTIFY_USER" |
123 |
+ check_extra_config |
124 |
+ fi |
125 |
+ python-single-r1_pkg_setup |
126 |
+} |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ default |
130 |
+ python_fix_shebang filters |
131 |
+} |
132 |
+ |
133 |
+src_configure() { |
134 |
+ use qt5 && export QMAKE="$(qt5_get_bindir)/qmake" |
135 |
+ |
136 |
+ local myeconfargs=( |
137 |
+ $(use_enable camelcase) |
138 |
+ $(use_enable chm python-chm) |
139 |
+ $(use_enable session x11mon) |
140 |
+ $(use_enable qt5 qtgui) |
141 |
+ $(use_enable webengine) |
142 |
+ $(use_with inotify) |
143 |
+ $(use_with spell aspell) |
144 |
+ --disable-webkit |
145 |
+ --without-fam |
146 |
+ --enable-recollq |
147 |
+ ) |
148 |
+ |
149 |
+ econf "${myeconfargs[@]}" |
150 |
+} |
151 |
+ |
152 |
+src_install() { |
153 |
+ emake STRIP="$(type -P true)" DESTDIR="${D}" install |
154 |
+ |
155 |
+ # html docs should be placed in /usr/share/doc/${PN}/html |
156 |
+ use doc && dodoc -r "${ED}"/usr/share/recoll/doc/. |
157 |
+ rm -r "${ED}/usr/share/recoll/doc" || die |
158 |
+ find "${D}" -name '*.la' -delete || die |
159 |
+} |
160 |
+ |
161 |
+pkg_postinst() { |
162 |
+ elog "In order to extract the full functionality of " |
163 |
+ elog "recoll, the following packages should be installed " |
164 |
+ elog "to get the corresponding document support." |
165 |
+ |
166 |
+ optfeature "XML based documents support" "dev-libs/libxslt[python] dev-libs/libxml2[python]" |
167 |
+ optfeature "PDF files support" app-text/poppler |
168 |
+ optfeature "PDF files with OCR support" app-text/tesseract |
169 |
+ optfeature "MS Word files support" app-text/antiword |
170 |
+ optfeature "Wordperfect files support" "app-text/libwpd[tools]" |
171 |
+ optfeature "Lyx files support" app-office/lyx |
172 |
+ optfeature "GNU Info files support" sys-apps/texinfo |
173 |
+ optfeature "RAR archives support" dev-python/rarfile |
174 |
+ optfeature "7zip archives support" dev-python/pylzma |
175 |
+ optfeature "iCalendar files support" dev-python/icalendar |
176 |
+ optfeature "Postscript files support" app-text/pstotext |
177 |
+ optfeature "RTF files support" app-text/unrtf |
178 |
+ optfeature "TeX files support" dev-text/detex |
179 |
+ optfeature "DVI files support" virtual/tex-base |
180 |
+ optfeature "DJVU files support" app-text/djvu |
181 |
+ optfeature "tags in audio files support" media-libs/mutagen |
182 |
+ optfeature "tags in image files support" media-libs/exiftool |
183 |
+ optfeature "Midi karaoke files support" dev-python/chardet |
184 |
+} |