1 |
hwoarang 11/09/26 20:00:37 |
2 |
|
3 |
Added: metadata.xml recoll-1.16.0.ebuild ChangeLog |
4 |
Log: |
5 |
Initial commit. Ebuild based on the one attached by Israel G. Lugo <israel.lugo@×××××××.com>. Bug #171271 |
6 |
|
7 |
(Portage version: 2.2.0_alpha55/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-misc/recoll/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<maintainer> |
21 |
<email>hwoarang@g.o</email> |
22 |
<name>Markos Chandras</name> |
23 |
</maintainer> |
24 |
<use> |
25 |
<flag name='inotify'>Use the Linux Kenrel notification subsystem for monitoring file alterations</flag> |
26 |
<flag name='camelcase'>Enable indexing for camelCase sentences and words</flag> |
27 |
<flag name='audio'>Index audio files</flag> |
28 |
<flag name='chm'>Index chm files</flag> |
29 |
<flag name='dvi'>Index dvi files</flag> |
30 |
<flag name='gs'>Index PostScript files</flag> |
31 |
<flag name='ics'>Index icalendar files</flag> |
32 |
<flag name='info'>Index GNU info files</flag> |
33 |
<flag name='lyx'>Index Latex lyx files</flag> |
34 |
<flag name='msdoc'>Index Microsoft Word documents</flag> |
35 |
<flag name='msppt'>Index Microsoft Power Point documents</flag> |
36 |
<flag name='msxls'>Index Microsoft Excel documents</flag> |
37 |
<flag name='rtf'>Index Microsoft RTF documents</flag> |
38 |
<flag name='tex'>Index Tex files</flag> |
39 |
<flag name='wordperfect'>Index wordperfect documents</flag> |
40 |
</use> |
41 |
<longdescription lang="en"> |
42 |
</longdescription> |
43 |
</pkgmetadata> |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
1.1 app-misc/recoll/recoll-1.16.0.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/recoll-1.16.0.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/recoll-1.16.0.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: recoll-1.16.0.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2011 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.16.0.ebuild,v 1.1 2011/09/26 20:00:37 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 gs 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 |
gs? ( app-text/pstotext ) |
93 |
msdoc? ( app-text/antiword ) |
94 |
msxls? ( app-text/catdoc ) |
95 |
msppt? ( app-text/catdoc ) |
96 |
wordperfect? ( app-text/libwpd ) |
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 |
${x11monconf} \ |
163 |
${famconf} \ |
164 |
${qtconf} |
165 |
} |
166 |
|
167 |
src_compile() { |
168 |
# Do not let upstream people decide on our behalf |
169 |
emake \ |
170 |
CC=$(tc-getCC) \ |
171 |
CXX=$(tc-getCXX) \ |
172 |
CFLAGS="${CFLAGS} ${LDFLAGS}" \ |
173 |
CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" |
174 |
} |
175 |
|
176 |
src_install() { |
177 |
# You probably wonder why I did not fix recollinstall in src_prepare. |
178 |
# --prefix requires an absolute path but recollinstall requires prefix |
179 |
# to be actually 'usr' because double // makes portage sad. And no, I am not |
180 |
# gonna ask upstream to fix the build system |
181 |
sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die |
182 |
sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die |
183 |
|
184 |
emake DESTDIR="${D%/}" install |
185 |
dodoc ChangeLog README |
186 |
mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html" |
187 |
dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc |
188 |
} |
189 |
|
190 |
pkg_postinst() { |
191 |
elog |
192 |
elog "Default configuration files located at" |
193 |
elog "/usr/share/${PN}/examples. Either edit these files to match" |
194 |
elog "your needs or copy them to ~/.recoll/ and edit these files" |
195 |
elog "instead." |
196 |
elog |
197 |
if use xattr; then |
198 |
elog "Use flag \"xattr\" enables support for fetching field values" |
199 |
elog "from extended file attributes. You will also need to set up a" |
200 |
elog "map from the attributes names to the Recoll field names" |
201 |
elog "(see comment at the end of the fields configuration file." |
202 |
fi |
203 |
} |
204 |
|
205 |
|
206 |
|
207 |
1.1 app-misc/recoll/ChangeLog |
208 |
|
209 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/ChangeLog?rev=1.1&view=markup |
210 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/recoll/ChangeLog?rev=1.1&content-type=text/plain |
211 |
|
212 |
Index: ChangeLog |
213 |
=================================================================== |
214 |
# ChangeLog for app-misc/recoll |
215 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
216 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/recoll/ChangeLog,v 1.1 2011/09/26 20:00:37 hwoarang Exp $ |
217 |
|
218 |
*recoll-1.16.0 (26 Sep 2011) |
219 |
|
220 |
26 Sep 2011; Markos Chandras <hwoarang@g.o> +recoll-1.16.0.ebuild, |
221 |
+metadata.xml: |
222 |
Initial commit. Ebuild based on the one attached by Israel G. Lugo |
223 |
<israel.lugo@×××××××.com>. Bug #171271 |