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 Apr 2017 18:15:09
Message-Id: 1493316884.6e026c287b096b7690f41a5bfdc855bef7f3b534.asturm@gentoo
1 commit: 6e026c287b096b7690f41a5bfdc855bef7f3b534
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 27 17:56:56 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 27 18:14:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e026c28
7
8 app-misc/recoll: Drop old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-misc/recoll/Manifest | 1 -
13 app-misc/recoll/metadata.xml | 14 ---
14 app-misc/recoll/recoll-1.19.5-r1.ebuild | 179 --------------------------------
15 3 files changed, 194 deletions(-)
16
17 diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest
18 index d2a26b7f4a7..55e40de6010 100644
19 --- a/app-misc/recoll/Manifest
20 +++ b/app-misc/recoll/Manifest
21 @@ -1,2 +1 @@
22 -DIST recoll-1.19.5.tar.gz 1997615 SHA256 c4d63a4cd1a598117a521a883a6078082b30fe63eef84a879da9b467fcb56a8d SHA512 45ae5dc6d4f6d6dbb3d7e634bd60a2835b767e5d2d8d188636ab4b1777d65a6918c09d5bc09e80e4849aea6e8b2c9c430b99a9e56b645531065e558f4161a5f3 WHIRLPOOL df099f39a681aa1956076018861d064445bcb9fc050c866133a830ebeddb33efcc9a06596ce18d17d80bcfdb663bb780434719092c6c571f42b6093a4c750be3
23 DIST recoll-1.22.4.tar.gz 2511949 SHA256 8211e1ccc6e576b0c21e5bfb4f49a0b69990a44bd5a3ce6eae4ff16aaf23412f SHA512 90d258c854972a41adbb3eef71b08d25c5aea24ed6fc830245d19e273112c016b66b0359e1d83143992d07b5a67226216e8f406ac135c21da6b86c7ffde31225 WHIRLPOOL 2dac2936e4c13448b6f8cb0c6d9d0d6d1d7c14b47a6761b6115762d734f91cfd8652186627b8ab55149c14ff5b00260838b0e62962f32ecbd4d2bef1f25e44ba
24
25 diff --git a/app-misc/recoll/metadata.xml b/app-misc/recoll/metadata.xml
26 index 2b4ebed373d..1e89b50bb67 100644
27 --- a/app-misc/recoll/metadata.xml
28 +++ b/app-misc/recoll/metadata.xml
29 @@ -18,22 +18,8 @@
30 </upstream>
31 <use>
32 <flag name="camelcase">Enable indexing for camelCase sentences and words</flag>
33 - <flag name="chm">Index chm files</flag>
34 - <flag name="dvi">Index dvi files</flag>
35 - <flag name="ics">Index iCalendar files</flag>
36 - <flag name="info">Index GNU info files</flag>
37 <flag name="inotify">Use the Linux Kernel notification subsystem for monitoring file alterations in realtime</flag>
38 - <flag name="lyx">Index Latex lyx files</flag>
39 - <flag name="msdoc">Index Microsoft Word documents</flag>
40 - <flag name="msppt">Index Microsoft PowerPoint documents</flag>
41 - <flag name="msxls">Index Microsoft Excel documents</flag>
42 - <flag name="pdf">Index PDF documents</flag>
43 - <flag name="rtf">Index Microsoft RTF documents</flag>
44 <flag name="session">Stop monitoring file alterations when X11 session terminates</flag>
45 - <flag name="sound">Index audio files</flag>
46 - <flag name="tex">Index TeX files</flag>
47 - <flag name="wordperfect">Index WordPerfect documents</flag>
48 - <flag name="xml">Index several XML-based formats (Abiword, FictionBook, Kword, Office OpenXML, OpenDocument, SVG)</flag>
49 </use>
50 <longdescription lang="en">
51 Recoll is a desktop full-text search tool. It can search most document
52
53 diff --git a/app-misc/recoll/recoll-1.19.5-r1.ebuild b/app-misc/recoll/recoll-1.19.5-r1.ebuild
54 deleted file mode 100644
55 index 3efef261f44..00000000000
56 --- a/app-misc/recoll/recoll-1.19.5-r1.ebuild
57 +++ /dev/null
58 @@ -1,179 +0,0 @@
59 -# Copyright 1999-2016 Gentoo Foundation
60 -# Distributed under the terms of the GNU General Public License v2
61 -
62 -EAPI=5
63 -
64 -PYTHON_COMPAT=( python2_7 )
65 -inherit toolchain-funcs qmake-utils qt4-r2 linux-info python-single-r1 readme.gentoo
66 -
67 -DESCRIPTION="A personal full text search package"
68 -HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
69 -SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
70 -LICENSE="GPL-2"
71 -SLOT="0"
72 -KEYWORDS="amd64 x86"
73 -
74 -INDEX_HELPERS="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound tex wordperfect xml"
75 -IUSE="+spell inotify +qt4 +session camelcase xattr webkit fam ${INDEX_HELPERS}"
76 -
77 -DEPEND="
78 - virtual/libiconv
79 - >=dev-libs/xapian-1.0.12
80 - sys-libs/zlib
81 - spell? ( app-text/aspell )
82 - !inotify? ( fam? ( virtual/fam ) )
83 - qt4? ( dev-qt/qtcore:4[qt3support] )
84 - webkit? ( dev-qt/qtwebkit:4 )
85 - session? (
86 - inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
87 - !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
88 - )
89 - ${PYTHON_DEPS}
90 -"
91 -
92 -RDEPEND="
93 - ${DEPEND}
94 - app-arch/unzip
95 - sys-apps/sed
96 - virtual/awk
97 - pdf? ( app-text/poppler )
98 - postscript? ( app-text/pstotext )
99 - msdoc? ( app-text/antiword )
100 - msxls? ( app-text/catdoc )
101 - msppt? ( app-text/catdoc )
102 - wordperfect? ( app-text/libwpd:0.9 )
103 - rtf? ( app-text/unrtf )
104 - tex? ( dev-tex/detex )
105 - dvi? ( virtual/tex-base )
106 - djvu? ( >=app-text/djvu-3.5.15 )
107 - exif? ( media-libs/exiftool )
108 - chm? ( dev-python/pychm[${PYTHON_USEDEP}] )
109 - ics? ( dev-python/icalendar[${PYTHON_USEDEP}] )
110 - lyx? ( app-office/lyx )
111 - sound? ( media-libs/mutagen )
112 - xml? ( dev-libs/libxslt )
113 - info? ( sys-apps/texinfo )
114 - "
115 -
116 -REQUIRED_USE="session? ( || ( fam inotify ) )
117 - ${PYTHON_REQUIRED_USE}"
118 -
119 -pkg_pretend() {
120 - if use inotify; then
121 - CONFIG_CHECK="~INOTIFY_USER"
122 - check_extra_config
123 - fi
124 -}
125 -
126 -pkg_setup() {
127 - python-single-r1_pkg_setup
128 -
129 - local i at_least_one_helper
130 -
131 - at_least_one_helper=0
132 - for i in $INDEX_HELPERS; do
133 - if use $i; then
134 - at_least_one_helper=1
135 - break
136 - fi
137 - done
138 - if [[ $at_least_one_helper -eq 0 ]]; then
139 - ewarn
140 - ewarn "You did not enable any of the optional file format flags."
141 - ewarn "Recoll can read some file formats natively, but many of them"
142 - ewarn "are optional since they require external helpers."
143 - ewarn
144 - fi
145 -}
146 -
147 -src_prepare() {
148 - use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[-xattr]" && FORCE_PRINT_ELOG="yes"
149 - ! use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[xattr]" && FORCE_PRINT_ELOG="yes"
150 -
151 - DOC_CONTENTS="Default configuration files located at
152 - /usr/share/${PN}/examples. Either edit these files to match
153 - your needs or copy them to ~/.recoll/ and edit these files
154 - instead."
155 -
156 - use xattr && DOC_CONTENTS+="
157 - Use flag \"xattr\" enables support for fetching field values
158 - from extended file attributes. You will also need to set up a
159 - map from the attributes names to the Recoll field names
160 - (see comment at the end of the fields configuration file."
161 -
162 - # remember configure.ac is b0rked. Fix it before using eautoreconf in the
163 - # future
164 - # eautoreconf
165 -
166 - # do not strip binaries
167 - sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
168 - || die "Failed to fix the installation script"
169 - # Drop all the QMAKE lines. We will do it ourselves
170 - sed -i -e "/QMAKE/d" Makefile.in || die
171 -}
172 -
173 -src_configure() {
174 - local qtconf
175 -
176 - if use qt4 || use webkit; then
177 - qtconf="QMAKEPATH=$(qt4_get_bindir)/qmake"
178 - fi
179 -
180 - econf \
181 - $(use_with spell aspell) \
182 - $(use_enable xattr) \
183 - $(use_with inotify) \
184 - $(use_enable qt4 qtgui) \
185 - $(use_enable camelcase) \
186 - $(use_with fam) \
187 - $(use_with inotify) \
188 - $(use_enable session x11mon) \
189 - ${qtconf}
190 - if use qt4; then
191 - cd qtgui && eqmake4 ${PN}.pro && cd ..
192 - fi
193 -}
194 -
195 -src_compile() {
196 - # Do not let upstream people decide on our behalf
197 - sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die
198 -
199 - emake \
200 - CC=$(tc-getCC) \
201 - CXX=$(tc-getCXX) \
202 - CFLAGS="${CFLAGS} ${LDFLAGS}" \
203 - CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
204 -}
205 -
206 -src_install() {
207 - # You probably wonder why I did not fix recollinstall in src_prepare.
208 - # --prefix requires an absolute path but recollinstall requires prefix
209 - # to be actually 'usr' because double // makes portage sad. And no, I am not
210 - # gonna ask upstream to fix the build system
211 - sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
212 - sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
213 -
214 - emake DESTDIR="${D%/}" install
215 - python_optimize
216 - dodoc ChangeLog README
217 - mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
218 - dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
219 -
220 - readme.gentoo_create_doc
221 -}
222 -
223 -pkg_postinst() {
224 - readme.gentoo_print_elog
225 -
226 - if [[ -n ${REPLACING_VERSIONS} ]]; then
227 - elog
228 - elog "1.18 introduces significant index formats"
229 - elog "changes to support optional character case and diacritics"
230 - elog "sensitivity, and it will be advisable to reset the index in"
231 - elog "most cases. This will be best done by destroying the index"
232 - elog "directory (rm -rf ~/.recoll/xapiandb). If 1.18 is not configured"
233 - elog "for case and diacritics sensitivity, it is mostly compatible"
234 - elog "with 1.17 indexes."
235 - elog
236 - fi
237 -}