Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: dev-libs/soprano/
Date: Wed, 30 May 2012 13:54:58
Message-Id: 1338385697.dd6710fe5269ce1546e0d8b6dc6ebc1611f783bd.johu@gentoo
1 commit: dd6710fe5269ce1546e0d8b6dc6ebc1611f783bd
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 30 13:48:17 2012 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Wed May 30 13:48:17 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=dd6710fe
7
8 [dev-libs/soprano] Version bump.
9
10 (Portage version: 2.2.0_alpha108/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 dev-libs/soprano/soprano-2.7.56.ebuild | 103 ++++++++++++++++++++++++++++++++
14 1 files changed, 103 insertions(+), 0 deletions(-)
15
16 diff --git a/dev-libs/soprano/soprano-2.7.56.ebuild b/dev-libs/soprano/soprano-2.7.56.ebuild
17 new file mode 100644
18 index 0000000..b5583ab
19 --- /dev/null
20 +++ b/dev-libs/soprano/soprano-2.7.56.ebuild
21 @@ -0,0 +1,103 @@
22 +# Copyright 1999-2012 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: $
25 +
26 +EAPI=4
27 +
28 +if [[ ${PV} == *9999* ]]; then
29 + git_eclass="git-2"
30 + EGIT_REPO_URI="git://anongit.kde.org/soprano"
31 + KEYWORDS=""
32 +else
33 + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
34 + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
35 +fi
36 +
37 +inherit base cmake-utils flag-o-matic ${git_eclass}
38 +
39 +DESCRIPTION="Library that provides a nice Qt interface to RDF storage solutions"
40 +HOMEPAGE="http://sourceforge.net/projects/soprano"
41 +
42 +LICENSE="LGPL-2"
43 +SLOT="0"
44 +IUSE="clucene +dbus debug doc elibc_FreeBSD +raptor +redland test +virtuoso"
45 +
46 +RESTRICT=test
47 +# bug 281712
48 +
49 +COMMON_DEPEND="
50 + >=x11-libs/qt-core-4.5.0:4
51 + clucene? ( dev-cpp/clucene )
52 + dbus? ( >=x11-libs/qt-dbus-4.5.0:4 )
53 + raptor? ( >=media-libs/raptor-2.0.4:2 )
54 + redland? (
55 + >=dev-libs/rasqal-0.9.26
56 + >=dev-libs/redland-1.0.14
57 + )
58 + virtuoso? ( dev-db/libiodbc:0 )
59 +"
60 +DEPEND="${COMMON_DEPEND}
61 + doc? ( app-doc/doxygen )
62 + test? ( >=x11-libs/qt-test-4.5.0:4 )
63 +"
64 +RDEPEND="${COMMON_DEPEND}
65 + virtuoso? ( >=dev-db/virtuoso-server-6.1.0 )
66 +"
67 +S=${WORKDIR}/${P}-beta1
68 +
69 +CMAKE_IN_SOURCE_BUILD="1"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/${PN}-2.4.4-make-broken-redland-fatal.cmake"
73 +)
74 +
75 +pkg_setup() {
76 + if [[ ${PV} = *9999* && -z $I_KNOW_WHAT_I_AM_DOING ]]; then
77 + echo
78 + ewarn "WARNING! This is an experimental ebuild of ${PN} Git tree. Use at your own risk."
79 + ewarn "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!"
80 + echo
81 + fi
82 +
83 + if ! use virtuoso; then
84 + echo
85 + ewarn "You have explicitly disabled the default soprano backend."
86 + ewarn "Applications using soprano may need at least one backend"
87 + ewarn "to be functional. If you experience any problems, enable"
88 + ewarn "the virtuoso USE flag."
89 + echo
90 + fi
91 +}
92 +
93 +src_configure() {
94 + # Fix for missing pthread.h linking
95 + # NOTE: temporarily fix until a better cmake files patch will be provided.
96 + use elibc_FreeBSD && append-flags -pthread
97 +
98 + local mycmakeargs=(
99 + -DSOPRANO_BUILD_TESTS=OFF
100 + -DCMAKE_SKIP_RPATH=OFF
101 + -DSOPRANO_DISABLE_SESAME2_BACKEND=ON
102 + $(cmake-utils_use !clucene SOPRANO_DISABLE_CLUCENE_INDEX)
103 + $(cmake-utils_use !dbus SOPRANO_DISABLE_DBUS)
104 + $(cmake-utils_use !raptor SOPRANO_DISABLE_RAPTOR_PARSER)
105 + $(cmake-utils_use !redland SOPRANO_DISABLE_RAPTOR_SERIALIZER)
106 + $(cmake-utils_use !redland SOPRANO_DISABLE_REDLAND_BACKEND)
107 + $(cmake-utils_use !virtuoso SOPRANO_DISABLE_VIRTUOSO_BACKEND)
108 + $(cmake-utils_use doc SOPRANO_BUILD_API_DOCS)
109 + $(cmake-utils_use test SOPRANO_BUILD_TESTS)
110 + )
111 +
112 + cmake-utils_src_configure
113 +}
114 +
115 +src_install() {
116 + cmake-utils_src_install
117 +
118 + dodoc AUTHORS ChangeLog README TODO
119 + newdoc backends/virtuoso/README README.virtuoso
120 + newdoc backends/sesame2/README README.sesame2
121 + if use doc ; then
122 + dohtml -r docs/html/
123 + fi
124 +}