Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/recoll: recoll-1.17.3.ebuild ChangeLog recoll-1.16.1.ebuild
Date: Sun, 08 Jul 2012 18:02:31
Message-Id: 20120708180216.7C27F20063@flycatcher.gentoo.org
1 hwoarang 12/07/08 18:02:16
2
3 Modified: ChangeLog
4 Added: recoll-1.17.3.ebuild
5 Removed: recoll-1.16.1.ebuild
6 Log:
7 Version bump. Fixes bug #425266
8
9 (Portage version: 2.1.11.5/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.8 app-misc/recoll/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/ChangeLog?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/ChangeLog?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/ChangeLog?r1=1.7&r2=1.8
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-misc/recoll/ChangeLog,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- ChangeLog 16 Jun 2012 16:56:56 -0000 1.7
25 +++ ChangeLog 8 Jul 2012 18:02:16 -0000 1.8
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-misc/recoll
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/ChangeLog,v 1.7 2012/06/16 16:56:56 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/ChangeLog,v 1.8 2012/07/08 18:02:16 hwoarang Exp $
31 +
32 +*recoll-1.17.3 (08 Jul 2012)
33 +
34 + 08 Jul 2012; Markos Chandras <hwoarang@g.o> +recoll-1.17.3.ebuild,
35 + -recoll-1.16.1.ebuild:
36 + Version bump. Fixes bug #425266
37
38 16 Jun 2012; Samuli Suominen <ssuominen@g.o> recoll-1.16.1.ebuild,
39 recoll-1.16.2.ebuild, metadata.xml:
40 @@ -36,4 +42,3 @@
41 +metadata.xml:
42 Initial commit. Ebuild based on the one attached by Israel G. Lugo
43 <israel.lugo@×××××××.com>. Bug #171271
44 -
45
46
47
48 1.1 app-misc/recoll/recoll-1.17.3.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/recoll-1.17.3.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/recoll-1.17.3.ebuild?rev=1.1&content-type=text/plain
52
53 Index: recoll-1.17.3.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/recoll-1.17.3.ebuild,v 1.1 2012/07/08 18:02:16 hwoarang Exp $
58
59 EAPI="4"
60
61 inherit toolchain-funcs qt4-r2 linux-info
62
63 DESCRIPTION="A personal full text search package"
64 HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
65 SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69
70 INDEX_HELPERS="audio chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf tex wordperfect xml"
71 IUSE="+spell +inotify +qt4 +session camelcase xattr fam ${INDEX_HELPERS}"
72
73 DEPEND="
74 virtual/libiconv
75 >=dev-libs/xapian-1.0.12
76 sys-libs/zlib
77 spell? ( app-text/aspell )
78 !inotify? ( fam? ( virtual/fam ) )
79 qt4? ( x11-libs/qt-core:4[qt3support] )
80 session? (
81 inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
82 !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
83 )
84 "
85
86 RDEPEND="
87 ${DEPEND}
88 app-arch/unzip
89 sys-apps/sed
90 || ( sys-apps/gawk sys-apps/mawk )
91 pdf? ( app-text/poppler )
92 postscript? ( app-text/pstotext )
93 msdoc? ( app-text/antiword )
94 msxls? ( app-text/catdoc )
95 msppt? ( app-text/catdoc )
96 wordperfect? ( app-text/libwpd:0.9 )
97 rtf? ( app-text/unrtf )
98 tex? ( dev-tex/detex )
99 dvi? ( virtual/tex-base )
100 djvu? ( >=app-text/djvu-3.5.15 )
101 exif? ( media-libs/exiftool )
102 chm? ( dev-python/pychm )
103 ics? ( dev-python/icalendar )
104 lyx? ( app-office/lyx )
105 audio? ( media-libs/mutagen )
106 xml? ( dev-libs/libxslt )
107 info? ( sys-apps/texinfo )
108 "
109
110 REQUIRED_USE="^^ ( fam inotify ) session? ( || ( fam inotify ) )"
111
112 pkg_pretend() {
113 if use inotify; then
114 CONFIG_CHECK="~INOTIFY_USER"
115 check_extra_config
116 fi
117 }
118
119 pkg_setup() {
120 local i at_least_one_helper
121
122 at_least_one_helper=0
123 for i in $INDEX_HELPERS; do
124 if use $i; then
125 at_least_one_helper=1
126 break
127 fi
128 done
129 if [[ $at_least_one_helper -eq 0 ]]; then
130 ewarn
131 ewarn "You did not enable any of the optional file format flags."
132 ewarn "Recoll can read some file formats natively, but many of them"
133 ewarn "are optional since they require external helpers."
134 ewarn
135 fi
136 }
137
138 src_prepare() {
139 # remember configure.ac is b0rked. Fix it before using eautoreconf in the
140 # future
141 # eautoreconf
142
143 # do not strip binaries
144 sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
145 || die "Failed to fix the installation script"
146 }
147
148 src_configure() {
149 local qtconf
150
151 use qt4 && qtconf="QMAKEPATH=/usr/bin/qmake"
152
153 econf \
154 $(use_with spell aspell) \
155 $(use_enable xattr) \
156 $(use_with inotify) \
157 $(use_enable qt4 qtgui) \
158 $(use_enable camelcase) \
159 $(use_with fam) \
160 $(use_with inotify) \
161 $(use_enable session x11mon) \
162 ${qtconf}
163 }
164
165 src_compile() {
166 # Do not let upstream people decide on our behalf
167 emake \
168 CC=$(tc-getCC) \
169 CXX=$(tc-getCXX) \
170 CFLAGS="${CFLAGS} ${LDFLAGS}" \
171 CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
172 }
173
174 src_install() {
175 # You probably wonder why I did not fix recollinstall in src_prepare.
176 # --prefix requires an absolute path but recollinstall requires prefix
177 # to be actually 'usr' because double // makes portage sad. And no, I am not
178 # gonna ask upstream to fix the build system
179 sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
180 sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
181
182 emake DESTDIR="${D%/}" install
183 dodoc ChangeLog README
184 mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
185 dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
186 }
187
188 pkg_postinst() {
189 elog
190 elog "Default configuration files located at"
191 elog "/usr/share/${PN}/examples. Either edit these files to match"
192 elog "your needs or copy them to ~/.recoll/ and edit these files"
193 elog "instead."
194 elog
195 if use xattr; then
196 elog "Use flag \"xattr\" enables support for fetching field values"
197 elog "from extended file attributes. You will also need to set up a"
198 elog "map from the attributes names to the Recoll field names"
199 elog "(see comment at the end of the fields configuration file."
200 fi
201 }