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 CE888138335 for ; Wed, 13 Jun 2018 16:40:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC2DEE0825; Wed, 13 Jun 2018 16:40:41 +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 95F48E0825 for ; Wed, 13 Jun 2018 16:40:41 +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 33816335C76 for ; Wed, 13 Jun 2018 16:40:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B71B2C8 for ; Wed, 13 Jun 2018 16:40:37 +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: <1528907982.7469468af8cbb6164977129e6ec5caa4cce256e3.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/mesa/mesa-9999.ebuild X-VCS-Directories: media-libs/mesa/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 7469468af8cbb6164977129e6ec5caa4cce256e3 X-VCS-Branch: master Date: Wed, 13 Jun 2018 16:40:37 +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-Archives-Salt: 7e6c01f1-3ea5-4c82-abcc-00d1e8f8232a X-Archives-Hash: 15f9b12741136809ea7092f26ed2bd05 commit: 7469468af8cbb6164977129e6ec5caa4cce256e3 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Wed Jun 13 00:40:56 2018 +0000 Commit: Matt Turner gentoo org> CommitDate: Wed Jun 13 16:39:42 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7469468a media-libs/mesa: Support unconditional enabling of drivers ... in dri_driver_enable(), gallium_enable(), vulkan_enable(). media-libs/mesa/mesa-9999.ebuild | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index afa370713b0..91b260c9796 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -351,10 +351,10 @@ multilib_src_configure() { fi if use gallium; then - GALLIUM_DRIVERS+=(swrast) + gallium_enable -- swrast emesonargs+=( -Dosmesa=$(usex osmesa gallium none) ) else - DRI_DRIVERS+=(swrast) + dri_driver_enable -- swrast emesonargs+=( -Dosmesa=$(usex osmesa classic none) ) fi @@ -457,24 +457,24 @@ pkg_prerm() { fi } -# $1 - VIDEO_CARDS flag +# $1 - VIDEO_CARDS flag (check skipped for "--") # other args - names of DRI drivers to enable dri_driver_enable() { - if use $1; then + if [[ $1 == -- ]] || use $1; then shift DRI_DRIVERS+=("$@") fi } gallium_enable() { - if use $1; then + if [[ $1 == -- ]] || use $1; then shift GALLIUM_DRIVERS+=("$@") fi } vulkan_enable() { - if use $1; then + if [[ $1 == -- ]] || use $1; then shift VULKAN_DRIVERS+=("$@") fi