1 |
blueness |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
3 |
blueness |
1.4 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/xapian/xapian-1.2.12.ebuild,v 1.3 2012/07/18 09:45:37 blueness Exp $ |
4 |
blueness |
1.1 |
|
5 |
|
|
EAPI="4" |
6 |
|
|
|
7 |
|
|
MY_P="${PN}-core-${PV}" |
8 |
|
|
|
9 |
|
|
DESCRIPTION="Xapian Probabilistic Information Retrieval library" |
10 |
|
|
HOMEPAGE="http://www.xapian.org/" |
11 |
|
|
SRC_URI="http://oligarchy.co.uk/xapian/${PV}/${MY_P}.tar.gz" |
12 |
|
|
|
13 |
|
|
LICENSE="GPL-2" |
14 |
|
|
SLOT="0" |
15 |
blueness |
1.3 |
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
16 |
blueness |
1.4 |
IUSE="doc static-libs -sse +sse2 +brass +chert +inmemory" |
17 |
blueness |
1.1 |
|
18 |
|
|
DEPEND="sys-libs/zlib" |
19 |
|
|
RDEPEND="${DEPEND}" |
20 |
|
|
|
21 |
|
|
S="${WORKDIR}/${MY_P}" |
22 |
|
|
|
23 |
|
|
src_configure() { |
24 |
|
|
local myconf="" |
25 |
|
|
|
26 |
|
|
ewarn |
27 |
|
|
if use sse2; then |
28 |
|
|
ewarn "Using sse2" |
29 |
|
|
myconf="${myconf} --enable-sse=sse2" |
30 |
|
|
else |
31 |
|
|
if use sse; then |
32 |
|
|
ewarn "Using sse" |
33 |
|
|
myconf="${myconf} --enable-sse=sse" |
34 |
|
|
else |
35 |
|
|
ewarn "Disabling sse and sse2" |
36 |
|
|
myconf="${myconf} --disable-sse" |
37 |
|
|
fi |
38 |
|
|
fi |
39 |
|
|
ewarn |
40 |
|
|
|
41 |
|
|
myconf="${myconf} $(use_enable static-libs static)" |
42 |
|
|
|
43 |
|
|
use brass || myconf="${myconf} --disable-backend-brass" |
44 |
|
|
use chert || myconf="${myconf} --disable-backend-chert" |
45 |
|
|
use inmemory || myconf="${myconf} --disable-backend-inmemory" |
46 |
blueness |
1.4 |
|
47 |
|
|
myconf="${myconf} --enable-backend-flint --enable-backend-remote" |
48 |
blueness |
1.1 |
|
49 |
|
|
econf $myconf |
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
src_install() { |
53 |
|
|
emake DESTDIR="${D}" install |
54 |
|
|
|
55 |
|
|
mv "${D}usr/share/doc/xapian-core" "${D}usr/share/doc/${PF}" |
56 |
|
|
use doc || rm -rf "${D}usr/share/doc/${PF}" |
57 |
|
|
|
58 |
|
|
dodoc AUTHORS HACKING PLATFORMS README NEWS |
59 |
|
|
} |
60 |
|
|
|
61 |
|
|
src_test() { |
62 |
|
|
emake check VALGRIND= |
63 |
|
|
} |