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 EB2171389AD for ; Mon, 11 Feb 2013 22:16:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3F3621C097; Mon, 11 Feb 2013 22:14:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C1DF21C089 for ; Mon, 11 Feb 2013 22:14:52 +0000 (UTC) Received: from pomiocik.lan (77-253-151-121.adsl.inetia.pl [77.253.151.121]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A681733E67F; Mon, 11 Feb 2013 22:14:45 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: x11@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH virtualx.eclass 2/5] Use eqawarn from eutils.eclass. Date: Mon, 11 Feb 2013 23:14:40 +0100 Message-Id: <1360620883-22562-3-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360620883-22562-1-git-send-email-mgorny@gentoo.org> References: <1360620883-22562-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 6fb2528a-f937-418e-853a-58e5c188e8a6 X-Archives-Hash: 54ac7c538279bc5bcd4eda6a1d300d6b Instead of ewarn "QA: ... --- gx86/eclass/virtualx.eclass | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/gx86/eclass/virtualx.eclass b/gx86/eclass/virtualx.eclass index 47116fd..0da3066 100644 --- a/gx86/eclass/virtualx.eclass +++ b/gx86/eclass/virtualx.eclass @@ -9,6 +9,8 @@ # Original author: Martin Schlemmer # @BLURB: This eclass can be used for packages that needs a working X environment to build. +inherit eutils + # @ECLASS-VARIABLE: VIRTUALX_REQUIRED # @DESCRIPTION: # Variable specifying the dependency on xorg-server and xhost. @@ -46,15 +48,15 @@ case ${VIRTUALX_REQUIRED} in ;; optional|tests) # deprecated section YAY. - ewarn "QA: VIRTUALX_REQUIRED=optional and VIRTUALX_REQUIRED=tests are deprecated." - ewarn "QA: You can drop the variable definition completely from ebuild," - ewarn "QA: because it is default behaviour." + eqawarn "VIRTUALX_REQUIRED=optional and VIRTUALX_REQUIRED=tests are deprecated." + eqawarn "You can drop the variable definition completely from ebuild," + eqawarn "because it is default behaviour." if [[ -n ${VIRTUALX_USE} ]]; then # so they like to specify the useflag - ewarn "QA: VIRTUALX_USE variable is deprecated." - ewarn "QA: Please read eclass manpage to find out how to use VIRTUALX_REQUIRED" - ewarn "QA: to achieve the same behaviour." + eqawarn "VIRTUALX_USE variable is deprecated." + eqawarn "Please read eclass manpage to find out how to use VIRTUALX_REQUIRED" + eqawarn "to achieve the same behaviour." fi [[ -z ${VIRTUALX_USE} ]] && VIRTUALX_USE="test" @@ -170,9 +172,9 @@ virtualmake() { # backcompat for maketype if [[ -n ${maketype} ]]; then - ewarn "QA: ebuild is exporting \$maketype=${maketype}" - ewarn "QA: Ebuild should be migrated to use VIRTUALX_COMMAND=${maketype} instead." - ewarn "QA: Setting VIRTUALX_COMMAND to \$maketype conveniently for now." + eqawarn "ebuild is exporting \$maketype=${maketype}" + eqawarn "Ebuild should be migrated to use VIRTUALX_COMMAND=${maketype} instead." + eqawarn "Setting VIRTUALX_COMMAND to \$maketype conveniently for now." VIRTUALX_COMMAND=${maketype} fi @@ -186,8 +188,8 @@ virtualmake() { Xmake() { debug-print-function ${FUNCNAME} "$@" - ewarn "QA: you should not execute make directly" - ewarn "QA: rather execute Xemake -j1 if you have issues with parallel make" + eqawarn "you should not execute make directly" + eqawarn "rather execute Xemake -j1 if you have issues with parallel make" VIRTUALX_COMMAND="emake -j1" virtualmake "$@" } -- 1.8.1.2