From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 0B0A5138351 for ; Sun, 15 Mar 2020 21:29:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6645FE115B; Sun, 15 Mar 2020 21:29:02 +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 4D554E115B for ; Sun, 15 Mar 2020 21:29:02 +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 6409034F19F for ; Sun, 15 Mar 2020 21:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3680418F for ; Sun, 15 Mar 2020 21:28:57 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1584307719.7135e9d11ee6fa60ebf69235eae502c6b913c7d8.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/vulkan-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/vulkan-tools/vulkan-tools-9999.ebuild X-VCS-Directories: dev-util/vulkan-tools/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 7135e9d11ee6fa60ebf69235eae502c6b913c7d8 X-VCS-Branch: master Date: Sun, 15 Mar 2020 21:28:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2a4ac3c6-cb9d-4673-b20d-b5cf4b6c6f69 X-Archives-Hash: 990c0e384afabdbe3b5ac216cc19bc44 commit: 7135e9d11ee6fa60ebf69235eae502c6b913c7d8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Mar 11 19:46:54 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Sun Mar 15 21:28:39 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7135e9d1 dev-util/vulkan-tools: Make USE cube USE requirements explicit Do not enable cube by default (mitigating strict REQUIRED_USE constraint) Fix QA issue (unused cmake variables with USE=-cube) Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> Signed-off-by: Matt Turner gentoo.org> dev-util/vulkan-tools/vulkan-tools-9999.ebuild | 36 ++++++++------------------ 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/dev-util/vulkan-tools/vulkan-tools-9999.ebuild b/dev-util/vulkan-tools/vulkan-tools-9999.ebuild index e4065eb7f9c..1d6d8e74d61 100644 --- a/dev-util/vulkan-tools/vulkan-tools-9999.ebuild +++ b/dev-util/vulkan-tools/vulkan-tools-9999.ebuild @@ -23,9 +23,10 @@ HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Tools" LICENSE="Apache-2.0" SLOT="0" -IUSE="+cube wayland +X" +IUSE="cube wayland +X" -REQUIRED_USE="|| ( X wayland )" +# Cube demo only supports one window system at a time +REQUIRED_USE="!cube? ( || ( X wayland ) ) cube? ( ^^ ( X wayland ) )" BDEPEND="${PYTHON_DEPS} >=dev-util/cmake-3.10.2 @@ -48,12 +49,10 @@ pkg_setup() { /usr/bin/vulkaninfo ) - if use cube; then - MULTILIB_CHOST_TOOLS+=( - /usr/bin/vkcube - /usr/bin/vkcubepp - ) - fi + use cube && MULTILIB_CHOST_TOOLS+=( + /usr/bin/vkcube + /usr/bin/vkcubepp + ) python-any-r1_pkg_setup } @@ -66,26 +65,13 @@ multilib_src_configure() { -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) -DBUILD_WSI_XCB_SUPPORT=$(usex X) -DBUILD_WSI_XLIB_SUPPORT=$(usex X) - -DGLSLANG_INSTALL_DIR="${EPREFIX}/usr" -DVULKAN_HEADERS_INSTALL_DIR="${EPREFIX}/usr" ) - # Upstream only supports one window system at a time - # If X is set at all, even if wayland is set, use X - # - # If -cube is set, the flags we set are ignored, - # so we don't need to consider that - if use X; then - mycmakeargs+=( - -DCUBE_WSI_SELECTION="XCB" - ) - fi - - if ! use X && use wayland; then - mycmakeargs+=( - -DCUBE_WSI_SELECTION="WAYLAND" - ) - fi + use cube && mycmakeargs+=( + -DGLSLANG_INSTALL_DIR="${EPREFIX}/usr" + -DCUBE_WSI_SELECTION=$(usex X XCB WAYLAND) + ) cmake_src_configure }