Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/soprano: ChangeLog soprano-2.2.ebuild
Date: Tue, 27 Jan 2009 14:52:32
Message-Id: E1LRpIj-0000Pt-TH@stork.gentoo.org
1 alexxy 09/01/27 14:52:29
2
3 Modified: ChangeLog
4 Added: soprano-2.2.ebuild
5 Log:
6 Bump to new soprano-2.2
7 (Portage version: 2.2_rc19/cvs/Linux 2.6.28-gentoo x86_64)
8
9 Revision Changes Path
10 1.14 dev-libs/soprano/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/soprano/ChangeLog?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/soprano/ChangeLog?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/soprano/ChangeLog?r1=1.13&r2=1.14
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- ChangeLog 3 Dec 2008 17:32:08 -0000 1.13
23 +++ ChangeLog 27 Jan 2009 14:52:29 -0000 1.14
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/soprano
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.13 2008/12/03 17:32:08 scarabeus Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/ChangeLog,v 1.14 2009/01/27 14:52:29 alexxy Exp $
30 +
31 +*soprano-2.2 (27 Jan 2009)
32 +
33 + 27 Jan 2009; Alexey Shvetsov <alexxy@g.o> +soprano-2.2.ebuild:
34 + Bump to new soprano-2.2
35
36 *soprano-2.1.1 (03 Dec 2008)
37
38
39
40
41 1.1 dev-libs/soprano/soprano-2.2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/soprano/soprano-2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/soprano/soprano-2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: soprano-2.2.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/soprano/soprano-2.2.ebuild,v 1.1 2009/01/27 14:52:29 alexxy Exp $
51
52 EAPI="2"
53
54 JAVA_PKG_OPT_USE=sesame2
55 inherit cmake-utils eutils flag-o-matic java-pkg-opt-2
56
57 DESCRIPTION="Soprano is a library which provides a nice QT interface to RDF storage solutions."
58 HOMEPAGE="http://sourceforge.net/projects/soprano"
59 SRC_URI="mirror://sourceforge/soprano/soprano-${PV}.tar.bz2"
60
61 LICENSE="LGPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="+clucene debug doc elibc_FreeBSD redland +sesame2"
65
66 COMMON_DEPEND="
67 >=media-libs/raptor-1.4.16
68 x11-libs/qt-core:4[debug=]
69 x11-libs/qt-dbus:4[debug=]
70 clucene? ( >=dev-cpp/clucene-0.9.19 )
71 redland? ( >=dev-libs/rasqal-0.9.15
72 >=dev-libs/redland-1.0.6 )
73 sesame2? ( >=virtual/jdk-1.6.0 )
74 !redland? (
75 !sesame2? (
76 >=virtual/jdk-1.6.0
77 )
78 )
79 "
80 DEPEND="${COMMON_DEPEND}
81 doc? ( app-doc/doxygen )"
82 RDEPEND="${COMMON_DEPEND}"
83
84 src_configure() {
85 # Fix automagic dependencies / linking
86 if ! use clucene; then
87 sed -e '/find_package(CLucene)/s/^/#DONOTFIND /' \
88 -i "${S}/CMakeLists.txt" || die "Sed for CLucene automagic dependency failed."
89 fi
90
91 if ! use doc; then
92 sed -e '/find_package(Doxygen)/s/^/#DONOTFIND /' \
93 -i "${S}/CMakeLists.txt" || die "Sed to disable api-docs failed."
94 fi
95
96 if ! use redland; then
97 sed -e '/find_package(Redland)/ s:^:#DONOTWANT :' \
98 -i "${S}"/CMakeLists.txt || die "Deactivating redland backend failed."
99 fi
100
101 if ! use sesame2; then
102 sed -e '/find_package(JNI)/ s:^:#DONOTWANT :' \
103 -i "${S}"/CMakeLists.txt || die "Deactivating sesame backend failed."
104 fi
105
106 if ! use redland && ! use sesame2; then
107 sed -e '/find_package(JNI)/ s:^#DONOTWANT ::' \
108 -i "${S}"/CMakeLists.txt || die "Deactivating sesame backend failed."
109 fi
110
111 sed -e '/add_subdirectory(test)/s/^/#DONOTCOMPILE /' \
112 -e '/enable_testing/s/^/#DONOTENABLE /' \
113 -i "${S}"/CMakeLists.txt || die "Disabling of ${PN} tests failed."
114 einfo "Disabled building of ${PN} tests."
115
116 # Fix for missing pthread.h linking
117 # NOTE: temporarely fix until a better cmake files patch will be provided.
118 use elibc_FreeBSD && append-ldflags "-lpthread"
119
120 cmake-utils_src_configure
121 }
122
123 src_test() {
124 sed -e 's/#NOTESTS//' \
125 -i "${S}"/CMakeLists.txt || die "Enabling tests failed."
126 cmake-utils_src_compile
127 ctest --extra-verbose || die "Tests failed."
128 }
129
130 pkg_postinst() {
131 if ! use redland && ! use sesame2; then
132 elog "As you haven't chosen any of the available backends:"
133 elog "redland, sesame2"
134 elog "sesame2 support was silently installed."
135 elog "If you prefer another backend, be sure to reinstall soprano"
136 elog "and to enable that backend use flag"
137 fi
138 }