/[gentoo-x86]/dev-libs/soprano/soprano-2.8.0.ebuild
Gentoo

Contents of /dev-libs/soprano/soprano-2.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Aug 1 19:52:35 2012 UTC (20 months, 2 weeks ago) by johu
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20