summaryrefslogtreecommitdiff
path: root/dev-libs
diff options
context:
space:
mode:
authorTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-22 17:10:16 +0200
committerTomas Chvatal (scarabeus) <tomas.chvatal@gmail.com>2008-10-22 17:10:16 +0200
commit3143e5ad1677a6e7a18b131b5036d31ee9b2c7ae (patch)
tree1322931fe42d20a84a7e9ca769118ba20385465d /dev-libs
parent4bb61c28c25350c7eb7eca50edc9e682083022e1 (diff)
downloadkde-3143e5ad1677a6e7a18b131b5036d31ee9b2c7ae.tar.gz
kde-3143e5ad1677a6e7a18b131b5036d31ee9b2c7ae.tar.bz2
kde-3143e5ad1677a6e7a18b131b5036d31ee9b2c7ae.zip
Initial commit of live branch, not removed anything yet. Needs a hell of cleanup.
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/soprano/soprano-9999.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/soprano/soprano-9999.ebuild b/dev-libs/soprano/soprano-9999.ebuild
new file mode 100644
index 00000000000..b34db6a37a2
--- /dev/null
+++ b/dev-libs/soprano/soprano-9999.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="1"
+
+inherit cmake-utils subversion 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"
+ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/kdesupport/${PN}"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="+clucene debug doc elibc_FreeBSD redland +sesame2"
+
+COMMON_DEPEND="
+ >=media-libs/raptor-1.4.16
+ x11-libs/qt-core:4
+ x11-libs/qt-dbus:4
+ clucene? ( >=dev-cpp/clucene-0.9.19 )
+ redland? ( >=dev-libs/rasqal-0.9.15
+ >=dev-libs/redland-1.0.6 )
+ sesame2? ( >=virtual/jdk-1.6.0 )"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )"
+RDEPEND="${COMMON_DEPEND}"
+
+pkg_setup() {
+ echo
+ ewarn "WARNING! This is an experimental ebuild of ${PN} SVN tree. Use at your own risk."
+ ewarn "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!"
+ echo
+
+ if ! use sesame2 && ! use redland; then
+ eerror "Please select at least one of the backends: sesame2, redland"
+ die "You need to select at least one backend."
+ fi
+}
+
+src_compile() {
+ # Fix automagic dependencies / linking
+ if ! use clucene; then
+ sed -e '/find_package(CLucene)/s/^/#DONOTFIND /' \
+ -i "${S}/CMakeLists.txt" || die "Sed for CLucene automagic dependency failed."
+ fi
+
+ if ! use sesame2; then
+ sed -e '/find_package(JNI)/ s:^:#DONOTWANT :' \
+ -i "${S}"/CMakeLists.txt || die "Deactivating sesame backend failed."
+ fi
+
+ if ! use redland; then
+ sed -e '/find_package(Redland)/ s:^:#DONOTWANT :' \
+ -i "${S}"/CMakeLists.txt || die "Deactivating redland backend failed."
+ fi
+
+ if ! use doc; then
+ sed -e '/find_package(Doxygen)/s/^/#DONOTFIND /' \
+ -i "${S}/CMakeLists.txt" || die "Sed to disable api-docs failed."
+ fi
+
+ sed -e '/add_subdirectory(test)/s/^/#DONOTCOMPILE /' \
+ -e '/enable_testing/s/^/#DONOTENABLE /' \
+ -i "${S}"/CMakeLists.txt || die "Disabling of ${PN} tests failed."
+ einfo "Disabled building of ${PN} tests."
+
+ # Fix for missing pthread.h linking
+ # NOTE: temporarely fix until a better cmake files patch will be provided.
+ use elibc_FreeBSD && append-ldflags "-lpthread"
+
+ cmake-utils_src_compile
+}
+
+src_test() {
+ sed -e 's/#NOTESTS//' \
+ -i "${S}"/CMakeLists.txt || die "Enabling tests failed."
+ cmake-utils_src_compile
+ ctest --extra-verbose || die "Tests failed."
+}