summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/soprano')
-rw-r--r--dev-libs/soprano/ChangeLog7
-rw-r--r--dev-libs/soprano/soprano-2.0.3.ebuild70
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-libs/soprano/ChangeLog b/dev-libs/soprano/ChangeLog
index f7423f54a9e2..e6913edb9e6a 100644
--- a/dev-libs/soprano/ChangeLog
+++ b/dev-libs/soprano/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/soprano
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.4 2008/03/08 16:07:52 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.5 2008/03/22 14:40:20 ingmar Exp $
+
+*soprano-2.0.3 (21 Mar 2008)
+
+ 21 Mar 2008; Ingmar Vanhassel <ingmar@gentoo.org> +soprano-2.0.3.ebuild:
+ Version bump.
*soprano-2.0.2 (08 Mar 2008)
diff --git a/dev-libs/soprano/soprano-2.0.3.ebuild b/dev-libs/soprano/soprano-2.0.3.ebuild
new file mode 100644
index 000000000000..562cb9a418af
--- /dev/null
+++ b/dev-libs/soprano/soprano-2.0.3.ebuild
@@ -0,0 +1,70 @@
+# 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.3.ebuild,v 1.1 2008/03/22 14:40:20 ingmar 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 ~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.0:4 )
+ clucene? ( >=dev-cpp/clucene-0.9.19 )"
+DEPEND="${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )"
+RDEPEND="${COMMON_DEPEND}"
+
+pkg_setup() {
+ if has_version "<x11-libs/qt-4.4.0_alpha:4" && \
+ ! built_with_use x11-libs/qt:4 dbus; then
+ eerror "To install ${PN} you need to build Qt with dbus support."
+ die "x11-libs/qt:4 NOT built with USE=\"dbus\"."
+ 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 doc; then
+ sed -e '/find_package(Doxygen)/s/^/#DONOTFIND /' \
+ -i "${S}/CMakeLists.txt" || die "Sed to disable api-docs failed."
+ fi
+
+ # Disable the optional Sesame storage backend until sesame is in portage.
+ sed -e '/find_package(JNI)/s/^/#DONOTFIND /' \
+ -i "${S}/CMakeLists.txt" || die "Sed for Java JNI automagic dependency failed."
+
+ sed -e '/add_subdirectory(test)/s/^/#NOTESTS /' \
+ -e '/enable_testing/s/^/#NOTESTS /' \
+ -i "${S}"/CMakeLists.txt || die "Disabling tests failed."
+
+ # 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."
+}