blob: dd0c0faef5cca51fb3c40b34c80b6a2ddeb5b398 (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/soprano-2.3.1-r1.ebuild,v 1.9 2010/08/10 02:23:08 reavertm Exp $
EAPI="2"
JAVA_PKG_OPT_USE="java"
inherit base cmake-utils flag-o-matic java-pkg-opt-2
DESCRIPTION="Library that 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="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="+clucene +dbus debug doc elibc_FreeBSD +java +raptor redland test"
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 )
test? ( >=x11-libs/qt-test-4.5.0:4 )
"
RDEPEND="${COMMON_DEPEND}
"
CMAKE_IN_SOURCE_BUILD="1"
pkg_setup() {
java-pkg-opt-2_pkg_setup
if [[ ${PV} = *9999* && -z $I_KNOW_WHAT_I_AM_DOING ]]; then
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
fi
if ! use java; then
if ! use redland; then
echo
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 "java (recommended), redland"
echo
else
echo
ewarn "You selected redland as default backend for soprano."
ewarn "Be advised that it's known to be broken (bug #275326)."
echo
fi
fi
}
src_prepare() {
# Temporarily disable raptor serializer automagic
if ! use redland; then
sed -e '/set(BUILD_RAPTOR_SERIALIZER TRUE)/d' \
-i CMakeLists.txt || die "failed to disable raptor serializer"
fi
base_src_prepare
}
src_configure() {
# Fix for missing pthread.h linking
# NOTE: temporarily fix until a better cmake files patch will be provided.
use elibc_FreeBSD && append-flags -pthread
mycmakeargs=(
-DSOPRANO_BUILD_TESTS=OFF
-DCMAKE_SKIP_RPATH=OFF
$(cmake-utils_use !clucene SOPRANO_DISABLE_CLUCENE_INDEX)
$(cmake-utils_use !dbus SOPRANO_DISABLE_DBUS)
$(cmake-utils_use !raptor SOPRANO_DISABLE_RAPTOR_PARSER)
$(cmake-utils_use !redland SOPRANO_DISABLE_REDLAND_BACKEND)
$(cmake-utils_use !java SOPRANO_DISABLE_SESAME2_BACKEND)
$(cmake-utils_use doc SOPRANO_BUILD_API_DOCS)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_test() {
mycmakeargs+=(-DSOPRANO_BUILD_TESTS=ON)
cmake-utils_src_configure
cmake-utils_src_compile
cmake-utils_src_test
}
|