Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libqaccessibilityclient/, media-libs/libqaccessibilityclient/files/
Date: Sun, 18 Nov 2018 11:22:57
Message-Id: 1542540161.ca8c063c6680e56ca3d26b4ea776df1742be5db8.asturm@gentoo
1 commit: ca8c063c6680e56ca3d26b4ea776df1742be5db8
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 11:19:50 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 11:22:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca8c063c
7
8 media-libs/libqaccessibilityclient: 0.3.0 version bump
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-libs/libqaccessibilityclient/Manifest | 1 +
14 .../libqaccessibilityclient-0.3.0-tests.patch | 37 ++++++++++++++++++++++
15 .../libqaccessibilityclient-0.3.0.ebuild | 30 ++++++++++++++++++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/media-libs/libqaccessibilityclient/Manifest b/media-libs/libqaccessibilityclient/Manifest
19 index 3b21dd947fa..5137bf9b806 100644
20 --- a/media-libs/libqaccessibilityclient/Manifest
21 +++ b/media-libs/libqaccessibilityclient/Manifest
22 @@ -1 +1,2 @@
23 DIST libqaccessibilityclient-0.2.0.tar.xz 103280 BLAKE2B e5e416be98871c1e6fc28a6de5d2476c240fe4474f6c11f3d1e178209a9e78200549ed5bc6967fd24f0f758798719f8c9f3cbd6d06bbf1e2d44fe47e9ba4300b SHA512 1ebe8a6b6dcc2f47b57329fd96a026f9e0fa05d7c78cc1a816bb9e5928efa6e719f42267dfc8b18e73546957dc7a336c75e62190ff09a83cc84ac0c4c32b3e34
24 +DIST libqaccessibilityclient-0.3.0.tar.xz 104784 BLAKE2B a472cd2287340fbe5e5e4404fcdb4d1b6a28f39bf61117156f2e38622f10e0913f4c3818a9f7ff682eb195905e837c589d396df5fc8637a511d6e293e4b59a6a SHA512 d3c28a2dcb308e3248276c5b1ab822decb0c32afce8636ce30941320381431a8d7e064ff1451b14e64cbc83d03e3693d645d1739e64830bacefcd7fa68b0d2e1
25
26 diff --git a/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.3.0-tests.patch b/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.3.0-tests.patch
27 new file mode 100644
28 index 00000000000..1ec1317ea80
29 --- /dev/null
30 +++ b/media-libs/libqaccessibilityclient/files/libqaccessibilityclient-0.3.0-tests.patch
31 @@ -0,0 +1,37 @@
32 +From a85bce953b8a231cfe9b47d9f3fd80f6149f51f2 Mon Sep 17 00:00:00 2001
33 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
34 +Date: Sun, 18 Nov 2018 12:13:28 +0100
35 +Subject: [PATCH] Use standard BUILD_TESTING instead of BUILD_TESTS
36 +
37 +Add tests subdir conditionally.
38 +---
39 + CMakeLists.txt | 6 ++++--
40 + 1 file changed, 4 insertions(+), 2 deletions(-)
41 +
42 +diff --git a/CMakeLists.txt b/CMakeLists.txt
43 +index 73bb3cb..13531cc 100644
44 +--- a/CMakeLists.txt
45 ++++ b/CMakeLists.txt
46 +@@ -34,7 +34,7 @@ include_directories(
47 + find_package(Qt5Widgets QUIET)
48 + find_package(Qt5DBus QUIET)
49 + find_package(Qt5Test QUIET)
50 +-set(BUILD_TESTS ${Qt5Test_FOUND})
51 ++set(BUILD_TESTING ${Qt5Test_FOUND})
52 +
53 + add_definitions(${Qt5Core_DEFINITIONS} ${Qt5Widgets_DEFINITIONS} ${Qt5DBus_DEFINITIONS})
54 + include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS})
55 +@@ -70,7 +70,9 @@ if(APPLE)
56 + endif(APPLE)
57 +
58 + add_subdirectory(src)
59 +-add_subdirectory(tests)
60 ++if(BUILD_TESTING)
61 ++ add_subdirectory(tests)
62 ++endif()
63 + add_subdirectory(examples)
64 +
65 + # we need the absolute directories where stuff will be installed too
66 +--
67 +2.19.1
68 +
69
70 diff --git a/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.3.0.ebuild b/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.3.0.ebuild
71 new file mode 100644
72 index 00000000000..325a9b6d908
73 --- /dev/null
74 +++ b/media-libs/libqaccessibilityclient/libqaccessibilityclient-0.3.0.ebuild
75 @@ -0,0 +1,30 @@
76 +# Copyright 1999-2018 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=6
80 +
81 +ECM_KDEINSTALLDIRS="false"
82 +KDE_TEST="optional"
83 +KDE_EXAMPLES="true"
84 +VIRTUALX_REQUIRED="test"
85 +inherit kde5
86 +
87 +DESCRIPTION="Library for writing accessibility clients such as screen readers"
88 +HOMEPAGE="https://accessibility.kde.org/ https://cgit.kde.org/libqaccessibilityclient.git"
89 +SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
90 +
91 +LICENSE="LGPL-2.1"
92 +KEYWORDS="~amd64 ~x86"
93 +IUSE=""
94 +
95 +DEPEND="
96 + $(add_qt_dep qtdbus)
97 + $(add_qt_dep qtgui)
98 + $(add_qt_dep qtwidgets)
99 +"
100 +RDEPEND="${DEPEND}"
101 +
102 +# tests require DBus
103 +RESTRICT+=" test"
104 +
105 +PATCHES=( "${FILESDIR}/${P}-tests.patch" )