Gentoo Archives: gentoo-commits

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