# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/soprano-2.0.2.ebuild,v 1.3 2008/09/29 02:31:48 vapier Exp $

EAPI="1"
inherit cmake-utils eutils flag-o-matic

DESCRIPTION="Soprano is a library which provides a nice QT interface to RDF storage solutions."
HOMEPAGE="http://nepomuk-kde.semanticdesktop.org/xwiki/bin/view/Main/Soprano"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="+clucene debug doc elibc_FreeBSD"
RESTRICT="test"

COMMON_DEPEND="
	>=dev-libs/redland-1.0.6
	>=dev-libs/rasqal-0.9.15
	>=media-libs/raptor-1.4.16
	|| ( ( x11-libs/qt-core:4
		x11-libs/qt-dbus:4 )
		=x11-libs/qt-4.3*:4 )
	clucene? ( >=dev-cpp/clucene-0.9.19 )"
DEPEND="${COMMON_DEPEND}
	doc? ( app-doc/doxygen )"
RDEPEND="${COMMON_DEPEND}"

pkg_setup() {
	if has_version "