commit:     f5258cd6aaf84736bbe1d20f1713defb2102f3c9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 30 11:36:52 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 30 17:23:03 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f5258cd6

kde-apps/kmail: Use cmake_comment_add_subdirectory

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/kmail/kmail-20.08.49.9999.ebuild | 5 +----
 kde-apps/kmail/kmail-9999.ebuild          | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/kde-apps/kmail/kmail-20.08.49.9999.ebuild 
b/kde-apps/kmail/kmail-20.08.49.9999.ebuild
index c08431e8c9..cdadd74a7b 100644
--- a/kde-apps/kmail/kmail-20.08.49.9999.ebuild
+++ b/kde-apps/kmail/kmail-20.08.49.9999.ebuild
@@ -91,10 +91,7 @@ RESTRICT+=" test" # bug 616878
 
 src_prepare() {
        ecm_src_prepare
-
-       if ! use handbook; then
-               sed -i ktnef/CMakeLists.txt -e "/add_subdirectory(doc)/ 
s/^/#DONT/" || die
-       fi
+       use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc
 }
 
 src_configure() {

diff --git a/kde-apps/kmail/kmail-9999.ebuild b/kde-apps/kmail/kmail-9999.ebuild
index d078a15349..fc2ee9e1d9 100644
--- a/kde-apps/kmail/kmail-9999.ebuild
+++ b/kde-apps/kmail/kmail-9999.ebuild
@@ -91,10 +91,7 @@ RESTRICT+=" test" # bug 616878
 
 src_prepare() {
        ecm_src_prepare
-
-       if ! use handbook; then
-               sed -i ktnef/CMakeLists.txt -e "/add_subdirectory(doc)/ 
s/^/#DONT/" || die
-       fi
+       use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc
 }
 
 src_configure() {

Reply via email to