From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-869085-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8952959CA3 for <garchives@archives.gentoo.org>; Fri, 11 Mar 2016 16:26:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1052521C05D; Fri, 11 Mar 2016 16:26:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8769D21C00D for <gentoo-commits@lists.gentoo.org>; Fri, 11 Mar 2016 16:26:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D92433BE05 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Mar 2016 16:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F9458E9 for <gentoo-commits@lists.gentoo.org>; Fri, 11 Mar 2016 16:26:32 +0000 (UTC) From: "Michael Palimaka" <kensington@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, "Michael Palimaka" <kensington@gentoo.org> Message-ID: <1457713564.735b2854aa3c17dda12d5f4d7e27188eddd52aae.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde5.eclass X-VCS-Directories: eclass/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 735b2854aa3c17dda12d5f4d7e27188eddd52aae X-VCS-Branch: master Date: Fri, 11 Mar 2016 16:26:32 +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-Archives-Salt: 2050c87b-d27a-468d-a32e-483097c5a22e X-Archives-Hash: 9cd3b1d7a64f488b45180d340efbd7a3 commit: 735b2854aa3c17dda12d5f4d7e27188eddd52aae Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> AuthorDate: Tue Mar 8 17:32:47 2016 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Fri Mar 11 16:26:04 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=735b2854 kde5.eclass: Use "optional" parameter for KDE_TEST and KDE_HANDBOOK eclass/kde5.eclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index bddb0bc..4a7c7d5 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -79,6 +79,8 @@ fi # If set to "false", do nothing. # Otherwise, add "+handbook" to IUSE, add the appropriate dependency, and # generate and install KDE handbook. +# If set to "optional", config with -DCMAKE_DISABLE_FIND_PACKAGE_KF5DocTools=ON +# when USE=!handbook. In case package requires KF5KDELibs4Support, see next: # If set to "forceoptional", remove a KF5DocTools dependency from the root # CMakeLists.txt in addition to the above. : ${KDE_HANDBOOK:=false} @@ -92,6 +94,8 @@ fi # @DESCRIPTION: # If set to "false", do nothing. # For any other value, add test to IUSE and add a dependency on dev-qt/qttest:5. +# If set to "optional", configure with -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=ON +# when USE=!test. # If set to "forceoptional", remove a Qt5Test dependency from the root # CMakeLists.txt in addition to the above. if [[ ${CATEGORY} = kde-frameworks ]]; then @@ -603,6 +607,14 @@ kde5_src_configure() { if ! use_if_iuse test ; then cmakeargs+=( -DBUILD_TESTING=OFF ) + + if [[ ${KDE_TEST} = optional ]] ; then + cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=ON ) + fi + fi + + if ! use_if_iuse handbook && [[ ${KDE_HANDBOOK} = optional ]] ; then + cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_KF5DocTools=ON ) fi # install mkspecs in the same directory as qt stuff