summaryrefslogtreecommitdiff
blob: a2ef3decf813afedadc2f83212caceba4ec8bf34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

DESCRIPTION="An Embeddable Fulltext Search Engine"
HOMEPAGE="http://groonga.org/"
SRC_URI="http://groonga.org/files/groonga/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#IUSE="abort aio cutter fmalloc futex libedit lzo mecab +nfkc ruby sphinx uyield zlib"
IUSE="libedit lzo mecab ruby sphinx zlib"

RDEPEND="libedit? ( dev-libs/libedit )
	lzo? ( dev-libs/lzo )
	mecab? ( >=app-text/mecab-0.80 )
	ruby? ( dev-lang/ruby )
	sphinx? ( >=dev-python/sphinx-1.0.1 )
	zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"
# cutter? ( >=cutter-1.1.3 )
#>=glib-2.8
#ruby
#lzo
# libedit? ( >=dev-libs/libedit-3.0 )

src_configure() {
	econf \
		$(use_with ruby) \
		$(use_with libedit) \
		$(use_with lzo) \
		$(use_with sphinx sphinx-build) \
		$(use_with mecab) \
		$(use_with zlib) || die
#		$(use_with cutter) \
#		$(use_enable libedit) \
}

src_install() {
	emake DESTDIR="${D}" install || die

	keepdir /var/log/${PN} || die
	dodoc AUTHORS ChangeLog NEWS README || die
}