Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/recoll/
Date: Wed, 10 Feb 2021 14:55:21
Message-Id: 1612968907.5a1f257d5df4d51c21218eab7a52bc907cdef4a5.juippis@gentoo
1 commit: 5a1f257d5df4d51c21218eab7a52bc907cdef4a5
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 10 14:22:15 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 10 14:55:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a1f257d
7
8 app-misc/recoll: version bump to 1.28.5
9
10 Closes: https://bugs.gentoo.org/765181
11 Signed-off-by: Punarbasu Purkayastha <ppurka <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/19265
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-misc/recoll/Manifest | 1 +
16 app-misc/recoll/recoll-1.28.5.ebuild | 135 +++++++++++++++++++++++++++++++++++
17 2 files changed, 136 insertions(+)
18
19 diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest
20 index 242d57acd82..ec827ce840c 100644
21 --- a/app-misc/recoll/Manifest
22 +++ b/app-misc/recoll/Manifest
23 @@ -1,2 +1,3 @@
24 DIST recoll-1.25.19.tar.gz 2845683 BLAKE2B 745eac2dd3208619e173abba78f1e03186cdb5deb363c30728184a9d826c698d8e088cc0420178754131792f0d933f395a4fdb209a4315888b733a1209644580 SHA512 d56aff810e335f8212b908118de8fe12fc8d8f8341ebc281244c00dfe2216e008c655f4d39955b6c71928a28ea0aea073036fed17be5b80e8443fe6dfbe374f6
25 DIST recoll-1.27.12.tar.gz 3184471 BLAKE2B 60bcdee44259fa7f8b9decb9258ca0dae4edbf0cee1e8b1353cb59418503f0fcea9b439ecd6352500ff5b4cccfae08fc2a3f7f786fbd096cf18fd21fb809705b SHA512 3701dff056b8200f3b3c1bb2acaa69356c0def00959a0b74c14e1d500bd9e05fc81d82ce8b7db59d7e5b85617a8a7197700031aab65b31e005a4fedeaff59e97
26 +DIST recoll-1.28.5.tar.gz 3261816 BLAKE2B 6bf9daab0f97ee6fdb4033197d3fa3f4296b2df8a57566195fca3bf170fec621c27e7da00a1a5a8493fbbadca103a0db7b8c3051abe95d5c2aedb7c289c050a5 SHA512 df4c7a5e624933ccc7ce257a767a4621728a4dbcdd5b551b47845ed0fcffdd5a6f7f617a466404c5e8d8b62c81e57986e1f21e01d643899755623a2dc597d712
27
28 diff --git a/app-misc/recoll/recoll-1.28.5.ebuild b/app-misc/recoll/recoll-1.28.5.ebuild
29 new file mode 100644
30 index 00000000000..c20691ad7ec
31 --- /dev/null
32 +++ b/app-misc/recoll/recoll-1.28.5.ebuild
33 @@ -0,0 +1,135 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{6..9} )
40 +
41 +inherit eutils linux-info optfeature python-single-r1 qmake-utils
42 +
43 +DESCRIPTION="A personal full text search package"
44 +HOMEPAGE="https://www.lesbonscomptes.com/recoll/"
45 +SRC_URI="https://www.lesbonscomptes.com/recoll/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +IUSE="camelcase chm doc +inotify qt5 session +spell webengine"
52 +REQUIRED_USE="
53 + session? ( inotify )
54 + webengine? ( qt5 )
55 + ${PYTHON_REQUIRED_USE}
56 +"
57 +
58 +DEPEND="
59 + dev-libs/xapian:=
60 + sys-libs/zlib:=
61 + virtual/libiconv
62 + chm? (
63 + dev-libs/chmlib
64 + dev-python/pychm
65 + )
66 + qt5? (
67 + dev-qt/qtcore:5
68 + dev-qt/qtgui:5
69 + dev-qt/qtprintsupport:5
70 + webengine? ( dev-qt/qtwebengine:5[widgets] )
71 + )
72 + session? (
73 + inotify? (
74 + x11-libs/libSM
75 + x11-libs/libICE
76 + x11-libs/libX11
77 + )
78 + )
79 + spell? ( app-text/aspell )
80 + ${PYTHON_DEPS}
81 +"
82 +
83 +BDEPEND="
84 + qt5? ( dev-qt/linguist-tools:5 )
85 +"
86 +
87 +RDEPEND="
88 + ${DEPEND}
89 + app-arch/unzip
90 +"
91 +
92 +pkg_pretend() {
93 + if has_version "<app-misc/recoll-1.20"; then
94 + elog "Installing ${PV} over an 1.19 index is possible,"
95 + elog "but there have been small changes in the way"
96 + elog "compound words are indexed. So it is best to reset"
97 + elog "the index. The best method to reset the index is to"
98 + elog "quit all recoll programs and delete the index directory"
99 + elog "rm -rf ~/.recoll/xapiandb, then start recoll or recollindex."
100 + fi
101 +}
102 +
103 +pkg_setup() {
104 + if use inotify; then
105 + local CONFIG_CHECK="~INOTIFY_USER"
106 + check_extra_config
107 + fi
108 + python-single-r1_pkg_setup
109 +}
110 +
111 +src_prepare() {
112 + default
113 + python_fix_shebang filters
114 +}
115 +
116 +src_configure() {
117 + use qt5 && export QMAKE="$(qt5_get_bindir)/qmake"
118 +
119 + local myeconfargs=(
120 + $(use_enable camelcase)
121 + $(use_enable chm python-chm)
122 + $(use_enable session x11mon)
123 + $(use_enable qt5 qtgui)
124 + $(use_enable webengine)
125 + $(use_with inotify)
126 + $(use_with spell aspell)
127 + --disable-webkit
128 + --without-fam
129 + --enable-recollq
130 + )
131 +
132 + econf "${myeconfargs[@]}"
133 +}
134 +
135 +src_install() {
136 + emake STRIP="$(type -P true)" DESTDIR="${D}" install
137 + python_optimize
138 +
139 + # html docs should be placed in /usr/share/doc/${PN}/html
140 + use doc && dodoc -r "${ED}"/usr/share/recoll/doc/.
141 + rm -r "${ED}/usr/share/recoll/doc" || die
142 + find "${D}" -name '*.la' -delete || die
143 +}
144 +
145 +pkg_postinst() {
146 + elog "In order to extract the full functionality of "
147 + elog "recoll, the following packages should be installed "
148 + elog "to get the corresponding document support."
149 +
150 + optfeature "XML based documents support" "dev-libs/libxslt[python] dev-libs/libxml2[python]"
151 + optfeature "PDF files support" app-text/poppler
152 + optfeature "PDF files with OCR support" app-text/tesseract
153 + optfeature "MS Word files support" app-text/antiword
154 + optfeature "Wordperfect files support" "app-text/libwpd[tools]"
155 + optfeature "Lyx files support" app-office/lyx
156 + optfeature "GNU Info files support" sys-apps/texinfo
157 + optfeature "RAR archives support" dev-python/rarfile
158 + optfeature "7zip archives support" dev-python/pylzma
159 + optfeature "iCalendar files support" dev-python/icalendar
160 + optfeature "Postscript files support" app-text/pstotext
161 + optfeature "RTF files support" app-text/unrtf
162 + optfeature "TeX files support" dev-text/detex
163 + optfeature "DVI files support" virtual/tex-base
164 + optfeature "DJVU files support" app-text/djvu
165 + optfeature "tags in audio files support" media-libs/mutagen
166 + optfeature "tags in image files support" media-libs/exiftool
167 + optfeature "Midi karaoke files support" dev-python/chardet
168 +}