/[gentoo-x86]/net-libs/telepathy-qt/telepathy-qt-0.9.5.ebuild
Gentoo

Contents of /net-libs/telepathy-qt/telepathy-qt-0.9.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu May 14 16:17:13 2015 UTC (5 years, 6 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Specify glib SLOT.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/telepathy-qt/telepathy-qt-0.9.5.ebuild,v 1.7 2015/05/14 14:44:56 pesa Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8 inherit python-any-r1 cmake-utils virtualx multibuild
9
10 DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol"
11 HOMEPAGE="http://telepathy.freedesktop.org/"
12 SRC_URI="http://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="amd64 ~arm x86"
17 IUSE="debug farstream +qt4 qt5 test"
18
19 REQUIRED_USE="|| ( qt4 qt5 )"
20
21 RDEPEND="
22 farstream? (
23 >=net-libs/telepathy-farstream-0.2.2
24 >=net-libs/telepathy-glib-0.18.0
25 )
26 qt4? (
27 dev-qt/qtcore:4
28 dev-qt/qtdbus:4
29 )
30 qt5? (
31 dev-qt/qtcore:5
32 dev-qt/qtdbus:5
33 dev-qt/qtgui:5
34 dev-qt/qtnetwork:5
35 dev-qt/qtxml:5
36 )
37 !net-libs/telepathy-qt4
38 "
39 DEPEND="${RDEPEND}
40 ${PYTHON_DEPS}
41 virtual/pkgconfig
42 test? (
43 dev-libs/dbus-glib
44 dev-libs/glib:2
45 dev-python/dbus-python
46 qt4? ( dev-qt/qttest:4 )
47 qt5? ( dev-qt/qttest:5 )
48 )
49 "
50
51 DOCS=( AUTHORS ChangeLog HACKING NEWS README )
52
53 pkg_setup() {
54 python-any-r1_pkg_setup
55 MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
56 }
57
58 src_configure() {
59 myconfigure() {
60 local mycmakeargs=(
61 $(cmake-utils_use_enable debug DEBUG_OUTPUT)
62 $(cmake-utils_use_enable farstream)
63 $(cmake-utils_use_enable test TESTS)
64 -DENABLE_EXAMPLES=OFF
65 -ENABLE_SERVICE_SUPPORT=ON
66 )
67 if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
68 mycmakeargs+=(-DDESIRED_QT_VERSION=4)
69 fi
70 if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
71 mycmakeargs+=(-DDESIRED_QT_VERSION=5)
72 fi
73 cmake-utils_src_configure
74 }
75
76 multibuild_foreach_variant myconfigure
77 }
78
79 src_compile() {
80 multibuild_foreach_variant cmake-utils_src_compile
81 }
82
83 src_test() {
84 mytest() {
85 pushd "${BUILD_DIR}" > /dev/null
86 VIRTUALX_COMMAND="ctest -E '(CallChannel)'" virtualmake || die "tests failed"
87 popd > /dev/null
88 }
89
90 multibuild_foreach_variant mytest
91 }
92
93 src_install() {
94 multibuild_foreach_variant cmake-utils_src_install
95 }

  ViewVC Help
Powered by ViewVC 1.1.20