From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 115DA138CDB for ; Thu, 11 Jun 2015 00:03:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D724E08DD; Thu, 11 Jun 2015 00:03:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DA1C0E08DD for ; Thu, 11 Jun 2015 00:03:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D407340CC5 for ; Thu, 11 Jun 2015 00:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A76DCA30 for ; Thu, 11 Jun 2015 00:03:33 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1433980961.c743688da3090d852587057eb6d95eea2e93054a.pesa@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt5-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: c743688da3090d852587057eb6d95eea2e93054a X-VCS-Branch: master Date: Thu, 11 Jun 2015 00:03:33 +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: 9a5bbdeb-a88c-4bd4-9557-d825a6da4f96 X-Archives-Hash: 0205479aa8144eb9351cbd89ddf73457 commit: c743688da3090d852587057eb6d95eea2e93054a Author: Davide Pesavento gentoo org> AuthorDate: Thu Jun 11 00:02:41 2015 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Thu Jun 11 00:02:41 2015 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=c743688d [qt5-build.eclass] Use usex(). eclass/qt5-build.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index a31755b..14fbb78 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -332,7 +332,7 @@ qt5-build_pkg_postrm() { qt_use() { [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument" - use "$1" && echo "${3:+-$3}-${2:-$1}" || echo "-no-${2:-$1}" + usex "$1" "${3:+-$3}-${2:-$1}" "-no-${2:-$1}" } # @FUNCTION: qt_use_compile_test @@ -491,7 +491,7 @@ qt5_base_configure() { -testsdir "${QT5_TESTSDIR}" # debug/release - $(use debug && echo -debug || echo -release) + $(usex debug -debug -release) -no-separate-debug-info # licensing stuff @@ -552,7 +552,7 @@ qt5_base_configure() { -no-compile-examples # disable rpath on non-prefix (bugs 380415 and 417169) - $(use prefix || echo -no-rpath) + $(usex prefix '' -no-rpath) # print verbose information about each configure test -verbose