Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/recoll/
Date: Tue, 01 Nov 2016 10:30:09
Message-Id: 1477996150.f9fec8735236f9059b0fecf0446f236326217fa1.pacho@gentoo
1 commit: f9fec8735236f9059b0fecf0446f236326217fa1
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 10:29:10 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 10:29:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9fec873
7
8 app-misc/recoll: Drop old
9
10 Package-Manager: portage-2.3.2
11
12 app-misc/recoll/Manifest | 1 -
13 app-misc/recoll/recoll-1.17.3-r1.ebuild | 161 --------------------------------
14 2 files changed, 162 deletions(-)
15
16 diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest
17 index 4cec733..c11873e 100644
18 --- a/app-misc/recoll/Manifest
19 +++ b/app-misc/recoll/Manifest
20 @@ -1,2 +1 @@
21 -DIST recoll-1.17.3.tar.gz 1757278 SHA256 7778f80546e6b10ca45bfb7f8bb0876ccf3987dd4e98c5003ff923bd8b5acb1c SHA512 b41d28255e6bfbfc8e0025d88c3d56ecfbd35814bfa359c41f3e5d3cc25debe6d66dc617aa4c012e1911aa8c373c48a1661f7fff926e2cce423562af82c2fb31 WHIRLPOOL 3ba9d58a0df401832b1a97f34f4caec1b79aa7de027b936b05195d447e374097bff9205714b1a97c287610c74c0ec2e7e726b144c2295859c293a013c3564644
22 DIST recoll-1.19.5.tar.gz 1997615 SHA256 c4d63a4cd1a598117a521a883a6078082b30fe63eef84a879da9b467fcb56a8d SHA512 45ae5dc6d4f6d6dbb3d7e634bd60a2835b767e5d2d8d188636ab4b1777d65a6918c09d5bc09e80e4849aea6e8b2c9c430b99a9e56b645531065e558f4161a5f3 WHIRLPOOL df099f39a681aa1956076018861d064445bcb9fc050c866133a830ebeddb33efcc9a06596ce18d17d80bcfdb663bb780434719092c6c571f42b6093a4c750be3
23
24 diff --git a/app-misc/recoll/recoll-1.17.3-r1.ebuild b/app-misc/recoll/recoll-1.17.3-r1.ebuild
25 deleted file mode 100644
26 index ead4dff..00000000
27 --- a/app-misc/recoll/recoll-1.17.3-r1.ebuild
28 +++ /dev/null
29 @@ -1,161 +0,0 @@
30 -# Copyright 1999-2015 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -# $Id$
33 -
34 -EAPI="4"
35 -
36 -PYTHON_DEPEND="2"
37 -inherit toolchain-funcs qmake-utils qt4-r2 linux-info python
38 -
39 -DESCRIPTION="A personal full text search package"
40 -HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
41 -SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="amd64 x86"
45 -
46 -INDEX_HELPERS="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound tex wordperfect xml"
47 -IUSE="+spell +inotify +qt4 +session camelcase xattr fam ${INDEX_HELPERS}"
48 -
49 -DEPEND="
50 - virtual/libiconv
51 - >=dev-libs/xapian-1.0.12
52 - sys-libs/zlib
53 - spell? ( app-text/aspell )
54 - !inotify? ( fam? ( virtual/fam ) )
55 - qt4? (
56 - dev-qt/qtcore:4[qt3support]
57 - dev-qt/qtwebkit:4
58 - )
59 - session? (
60 - inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
61 - !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
62 - )
63 -"
64 -
65 -RDEPEND="
66 - ${DEPEND}
67 - app-arch/unzip
68 - sys-apps/sed
69 - virtual/awk
70 - pdf? ( app-text/poppler )
71 - postscript? ( app-text/pstotext )
72 - msdoc? ( app-text/antiword )
73 - msxls? ( app-text/catdoc )
74 - msppt? ( app-text/catdoc )
75 - wordperfect? ( app-text/libwpd:0.9 )
76 - rtf? ( app-text/unrtf )
77 - tex? ( dev-tex/detex )
78 - dvi? ( virtual/tex-base )
79 - djvu? ( >=app-text/djvu-3.5.15 )
80 - exif? ( media-libs/exiftool )
81 - chm? ( dev-python/pychm )
82 - ics? ( dev-python/icalendar )
83 - lyx? ( app-office/lyx )
84 - sound? ( media-libs/mutagen )
85 - xml? ( dev-libs/libxslt )
86 - info? ( sys-apps/texinfo )
87 - "
88 -
89 -REQUIRED_USE="^^ ( fam inotify ) session? ( || ( fam inotify ) )"
90 -
91 -pkg_pretend() {
92 - if use inotify; then
93 - CONFIG_CHECK="~INOTIFY_USER"
94 - check_extra_config
95 - fi
96 -}
97 -
98 -pkg_setup() {
99 - python_set_active_version 2
100 - python_pkg_setup
101 -
102 - local i at_least_one_helper
103 -
104 - at_least_one_helper=0
105 - for i in $INDEX_HELPERS; do
106 - if use $i; then
107 - at_least_one_helper=1
108 - break
109 - fi
110 - done
111 - if [[ $at_least_one_helper -eq 0 ]]; then
112 - ewarn
113 - ewarn "You did not enable any of the optional file format flags."
114 - ewarn "Recoll can read some file formats natively, but many of them"
115 - ewarn "are optional since they require external helpers."
116 - ewarn
117 - fi
118 -}
119 -
120 -src_prepare() {
121 - # remember configure.ac is b0rked. Fix it before using eautoreconf in the
122 - # future
123 - # eautoreconf
124 -
125 - # do not strip binaries
126 - sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
127 - || die "Failed to fix the installation script"
128 - # Drop all the QMAKE lines. We will do it ourselves
129 - sed -i -e "/QMAKE/d" Makefile.in || die
130 -}
131 -
132 -src_configure() {
133 - local qtconf
134 -
135 - use qt4 && qtconf="QMAKEPATH=$(qt4_get_bindir)/qmake"
136 -
137 - econf \
138 - $(use_with spell aspell) \
139 - $(use_enable xattr) \
140 - $(use_with inotify) \
141 - $(use_enable qt4 qtgui) \
142 - $(use_enable camelcase) \
143 - $(use_with fam) \
144 - $(use_with inotify) \
145 - $(use_enable session x11mon) \
146 - ${qtconf}
147 - if use qt4; then
148 - cd qtgui && eqmake4 ${PN}.pro && cd ..
149 - fi
150 -}
151 -
152 -src_compile() {
153 - # Do not let upstream people decide on our behalf
154 - sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die
155 -
156 - emake \
157 - CC=$(tc-getCC) \
158 - CXX=$(tc-getCXX) \
159 - CFLAGS="${CFLAGS} ${LDFLAGS}" \
160 - CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
161 -}
162 -
163 -src_install() {
164 - # You probably wonder why I did not fix recollinstall in src_prepare.
165 - # --prefix requires an absolute path but recollinstall requires prefix
166 - # to be actually 'usr' because double // makes portage sad. And no, I am not
167 - # gonna ask upstream to fix the build system
168 - sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
169 - sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
170 -
171 - emake DESTDIR="${D%/}" install
172 - dodoc ChangeLog README
173 - mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
174 - dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
175 -}
176 -
177 -pkg_postinst() {
178 - elog
179 - elog "Default configuration files located at"
180 - elog "/usr/share/${PN}/examples. Either edit these files to match"
181 - elog "your needs or copy them to ~/.recoll/ and edit these files"
182 - elog "instead."
183 - elog
184 - if use xattr; then
185 - elog "Use flag \"xattr\" enables support for fetching field values"
186 - elog "from extended file attributes. You will also need to set up a"
187 - elog "map from the attributes names to the Recoll field names"
188 - elog "(see comment at the end of the fields configuration file."
189 - fi
190 -}