Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/audiocd-kio/, kde-apps/audiocd-kio/files/
Date: Sun, 21 Apr 2019 11:31:42
Message-Id: 1555846257.432c86ff5bc167639785ed872da0024be92d6334.asturm@gentoo
1 commit: 432c86ff5bc167639785ed872da0024be92d6334
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 21:23:23 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 21 11:30:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=432c86ff
7
8 kde-apps/audiocd-kio: Fix cmake configure with USE -handbook
9
10 Closes: https://bugs.gentoo.org/683800
11 Package-Manager: Portage-2.3.64, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild | 2 ++
15 .../files/audiocd-kio-19.04.0-handbook.patch | 24 ++++++++++++++++++++++
16 2 files changed, 26 insertions(+)
17
18 diff --git a/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild b/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
19 index c5c8f55a0b5..c0052d7657f 100644
20 --- a/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
21 +++ b/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
22 @@ -31,6 +31,8 @@ DEPEND="
23 "
24 RDEPEND="${DEPEND}"
25
26 +PATCHES=( "${FILESDIR}/${P}-handbook.patch" )
27 +
28 src_configure() {
29 local mycmakeargs=(
30 $(cmake-utils_use_find_package flac FLAC)
31
32 diff --git a/kde-apps/audiocd-kio/files/audiocd-kio-19.04.0-handbook.patch b/kde-apps/audiocd-kio/files/audiocd-kio-19.04.0-handbook.patch
33 new file mode 100644
34 index 00000000000..f89e4e6d663
35 --- /dev/null
36 +++ b/kde-apps/audiocd-kio/files/audiocd-kio-19.04.0-handbook.patch
37 @@ -0,0 +1,24 @@
38 +From 205f9336485b161bedb0f4fc4292247040166111 Mon Sep 17 00:00:00 2001
39 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
40 +Date: Sat, 20 Apr 2019 23:18:17 +0200
41 +Subject: [PATCH] Add kcmaudiocd doc subdir only if KF5DocTools_FOUND
42 +
43 +---
44 + kcmaudiocd/CMakeLists.txt | 4 +++-
45 + 1 file changed, 3 insertions(+), 1 deletion(-)
46 +
47 +diff --git a/kcmaudiocd/CMakeLists.txt b/kcmaudiocd/CMakeLists.txt
48 +index 2e0ce60..7b94b46 100644
49 +--- a/kcmaudiocd/CMakeLists.txt
50 ++++ b/kcmaudiocd/CMakeLists.txt
51 +@@ -26,4 +26,6 @@ install(FILES audiocd.desktop DESTINATION ${SERVICES_INSTALL_DIR})
52 +
53 + ########### add handbook ################
54 +
55 +-add_subdirectory(doc)
56 ++if(KF5DocTools_FOUND)
57 ++ add_subdirectory(doc)
58 ++endif()
59 +--
60 +2.21.0
61 +