summaryrefslogtreecommitdiff
blob: 99653cf9e474b77c7739058b7cebc65d6cc2e943 (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
49
50
51
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="Full text search engine with support for various languages and DBs"
HOMEPAGE="http://qwik.jp/senna/"
SRC_URI="mirror://sourceforge.jp/${PN}/33763/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug lzo mecab ruby unicode zlib"

RDEPEND="mecab? ( >=app-text/mecab-0.81[unicode?] )
	ruby? ( virtual/ruby )"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_compile() {
	local myconf
	use unicode && myconf="--with-encoding=utf8"

	econf \
		$(use_enable aio) \
		$(use_enable debug gcov) \
		$(use_with zlib) \
		$(use_with lzo) \
		$(use_with mecab) \
		${myconf} || die "econf failed"
#		$(use_enable nfkc) \
#		$(use_enable fmalloc) \
#		$(use_enable abort) \

	emake || die "emake failed"

	if use ruby ; then
		emake ruby-bindings || die "emake ruby-bindings failed"
	fi
}

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

	if use ruby ; then
		emake DESTDIR="${D}" install-ruby-bindings || die
	fi

	dodoc AUTHORS ChangeLog NEWS doc/* 
}