blob: 27d5ab4a54116039082179ce6933ebc6d6954ac5 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
JAVA_PKG_OPT_USE="sesame2"
inherit base cmake-utils flag-o-matic subversion 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"
ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/kdesupport/${PN}"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS=""
IUSE="+clucene +dbus debug doc elibc_FreeBSD +raptor redland +sesame2"
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
)
sesame2? ( >=virtual/jdk-1.6.0 )
"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen )
"
RDEPEND="${COMMON_DEPEND}"
CMAKE_IN_SOURCE_BUILD="1"
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 redland && ! use sesame2; 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, sesame2"
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 sesame2 && 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."
}
|