summaryrefslogtreecommitdiff
blob: 54f60694531445bd42e8514ff1f2bdc5a0ed9d4b (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/clucene/clucene-9999.ebuild,v 1.2 2010/07/22 08:11:59 reavertm Exp $

EAPI="3"

inherit git cmake-utils

DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++"
HOMEPAGE="http://clucene.sourceforge.net/"
EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"

LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
SLOT="1"
KEYWORDS=""
IUSE="debug doc static-libs threads"

RDEPEND=""
DEPEND="
	doc? ( >=app-doc/doxygen-1.4.2 )
"

PATCHES=(
	"${FILESDIR}/${P}-cmake.patch"
)

DOCS=(AUTHORS ChangeLog README README.PACKAGE REQUESTS)

src_unpack() {
	git_src_unpack
}

src_configure() {
	mycmakeargs=(
		-DENABLE_ASCII_MODE=OFF
		-DENABLE_PACKAGING=OFF
		$(cmake-utils_use_enable debug)
		$(cmake-utils_use_enable doc CLDOCS)
		$(cmake-utils_use_build static-libs STATIC_LIBRARIES)
		$(cmake-utils_use_disable threads MULTITHREADING)
	)

	cmake-utils_src_configure
}