From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1084861-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 64EC1138334
	for <garchives@archives.gentoo.org>; Sun, 21 Apr 2019 11:31:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 71C87E08D6;
	Sun, 21 Apr 2019 11:31:40 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 58B07E08D6
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Apr 2019 11:31:40 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1638B341BE4
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Apr 2019 11:31:39 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D8F1B5C2
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Apr 2019 11:31:35 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1555846257.432c86ff5bc167639785ed872da0024be92d6334.asturm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/audiocd-kio/, kde-apps/audiocd-kio/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild kde-apps/audiocd-kio/files/audiocd-kio-19.04.0-handbook.patch
X-VCS-Directories: kde-apps/audiocd-kio/ kde-apps/audiocd-kio/files/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: 432c86ff5bc167639785ed872da0024be92d6334
X-VCS-Branch: master
Date: Sun, 21 Apr 2019 11:31:35 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b5cde59e-0c2f-421a-a2e4-2fd9d7d5d030
X-Archives-Hash: f2812d4d00d1d468daf255e26c9947ee

commit:     432c86ff5bc167639785ed872da0024be92d6334
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 20 21:23:23 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 11:30:57 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=432c86ff

kde-apps/audiocd-kio: Fix cmake configure with USE -handbook

Closes: https://bugs.gentoo.org/683800
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild    |  2 ++
 .../files/audiocd-kio-19.04.0-handbook.patch       | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild b/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
index c5c8f55a0b5..c0052d7657f 100644
--- a/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
+++ b/kde-apps/audiocd-kio/audiocd-kio-19.04.0.ebuild
@@ -31,6 +31,8 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-handbook.patch" )
+
 src_configure() {
 	local mycmakeargs=(
 		$(cmake-utils_use_find_package flac FLAC)

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
new file mode 100644
index 00000000000..f89e4e6d663
--- /dev/null
+++ b/kde-apps/audiocd-kio/files/audiocd-kio-19.04.0-handbook.patch
@@ -0,0 +1,24 @@
+From 205f9336485b161bedb0f4fc4292247040166111 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sat, 20 Apr 2019 23:18:17 +0200
+Subject: [PATCH] Add kcmaudiocd doc subdir only if KF5DocTools_FOUND
+
+---
+ kcmaudiocd/CMakeLists.txt | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/kcmaudiocd/CMakeLists.txt b/kcmaudiocd/CMakeLists.txt
+index 2e0ce60..7b94b46 100644
+--- a/kcmaudiocd/CMakeLists.txt
++++ b/kcmaudiocd/CMakeLists.txt
+@@ -26,4 +26,6 @@ install(FILES audiocd.desktop  DESTINATION  ${SERVICES_INSTALL_DIR})
+ 
+ ########### add handbook ################
+ 
+-add_subdirectory(doc)
++if(KF5DocTools_FOUND)
++    add_subdirectory(doc)
++endif()
+-- 
+2.21.0
+