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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jun 16 01:16:53 2015 UTC (5 years, 5 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.20/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.6.ebuild,v 1.1 2015/05/15 13:25:08 yngwin 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 PATCHES=(
54 "${FILESDIR}/${PV}-default-source.patch"
55 "${FILESDIR}/${PV}-yes-release.patch"
56 )
57
58 pkg_setup() {
59 python-any-r1_pkg_setup
60
61 MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
62 }
63
64 src_configure() {
65 myconfigure() {
66 local mycmakeargs=(
67 $(cmake-utils_use_enable debug DEBUG_OUTPUT)
68 $(cmake-utils_use_enable farstream)
69 $(cmake-utils_use_enable test TESTS)
70 -DENABLE_EXAMPLES=OFF
71 )
72 if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
73 mycmakeargs+=(-DDESIRED_QT_VERSION=4)
74 fi
75 if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
76 mycmakeargs+=(-DDESIRED_QT_VERSION=5)
77 fi
78 cmake-utils_src_configure
79 }
80
81 multibuild_foreach_variant myconfigure
82 }
83
84 src_compile() {
85 multibuild_foreach_variant cmake-utils_src_compile
86 }
87
88 src_test() {
89 mytest() {
90 pushd "${BUILD_DIR}" > /dev/null
91 VIRTUALX_COMMAND="ctest -E '(CallChannel)'" virtualmake || die "tests failed"
92 popd > /dev/null
93 }
94
95 multibuild_foreach_variant mytest
96 }
97
98 src_install() {
99 multibuild_foreach_variant cmake-utils_src_install
100 }

  ViewVC Help
Powered by ViewVC 1.1.20