diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-15 14:14:47 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-15 14:14:47 +0000 |
commit | f56583503903fa57e3b5aac6808206dae1e88b10 (patch) | |
tree | e6aebe103a569ffdedf45de303c9b943bb922251 /dev-libs/soprano/soprano-2.2.2.ebuild | |
parent | Marking libkate-0.3.0 ~ppc64 for bug 254306 (diff) | |
download | historical-f56583503903fa57e3b5aac6808206dae1e88b10.tar.gz historical-f56583503903fa57e3b5aac6808206dae1e88b10.tar.bz2 historical-f56583503903fa57e3b5aac6808206dae1e88b10.zip |
Version bump. This version renames sesame2 useflag onto java. More convinient for java haters. Next comes ebuilds that request java instead of sesame2 per EAPI2.
Package-Manager: portage-2.2_rc25/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/soprano/soprano-2.2.2.ebuild')
-rw-r--r-- | dev-libs/soprano/soprano-2.2.2.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/soprano/soprano-2.2.2.ebuild b/dev-libs/soprano/soprano-2.2.2.ebuild new file mode 100644 index 000000000000..f5339c7ac64b --- /dev/null +++ b/dev-libs/soprano/soprano-2.2.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/soprano-2.2.2.ebuild,v 1.1 2009/03/15 14:14:47 scarabeus Exp $ + +EAPI="2" + +JAVA_PKG_OPT_USE="java" +inherit base cmake-utils flag-o-matic java-pkg-opt-2 + +DESCRIPTION="Soprano is a library which provides a nice QT interface to RDF storage solutions." +HOMEPAGE="http://sourceforge.net/projects/soprano" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="+clucene +dbus debug doc elibc_FreeBSD java +raptor +redland" + +COMMON_DEPEND=" + x11-libs/qt-core:4 + clucene? ( dev-cpp/clucene ) + dbus? ( x11-libs/qt-dbus:4 ) + raptor? ( >=media-libs/raptor-1.4.16 ) + redland? ( + >=dev-libs/rasqal-0.9.15 + >=dev-libs/redland-1.0.6 + ) + java? ( >=virtual/jdk-1.6.0 ) +" +DEPEND="${COMMON_DEPEND} + doc? ( app-doc/doxygen ) +" +RDEPEND="${COMMON_DEPEND}" + +CMAKE_IN_SOURCE_BUILD="1" + +pkg_setup() { + java-pkg-opt-2_pkg_setup + echo + if ! use redland && ! use java; then + ewarn "You explicitly disabled default soprano backend and haven't chosen other one." + ewarn "Applications using soprano may need at least one backend functional." + ewarn "If you experience any problems, enable any of those USE flags:" + ewarn "redland, java" + fi +} + +src_prepare() { + base_src_prepare +} + +src_configure() { + # Fix for missing pthread.h linking + # NOTE: temporarely fix until a better cmake files patch will be provided. + use elibc_FreeBSD && append-ldflags "-lpthread" + + mycmakeargs="${mycmakeargs} + -DSOPRANO_BUILD_TESTS=OFF" + + ! use clucene && mycmakeargs="${mycmakeargs} -DSOPRANO_DISABLE_CLUCENE_INDEX=ON" + ! use dbus && mycmakeargs="${mycmakeargs} -DSOPRANO_DISABLE_DBUS=ON" + ! use raptor && mycmakeargs="${mycmakeargs} -DSOPRANO_DISABLE_RAPTOR_PARSER=ON" + ! use redland && mycmakeargs="${mycmakeargs} -DSOPRANO_DISABLE_REDLAND_BACKEND=ON" + ! use java && mycmakeargs="${mycmakeargs} -DSOPRANO_DISABLE_SESAME2_BACKEND=ON" + use doc && mycmakeargs="${mycmakeargs} -DSOPRANO_BUILD_API_DOCS=ON" + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_test() { + mycmakeargs="${mycmakeargs} + -DSOPRANO_BUILD_TESTS=ON" + cmake-utils_src_configure + cmake-utils_src_compile + ctest --extra-verbose || die "Tests failed." +} |