From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N0l5u-0001rB-5E for garchives@archives.gentoo.org; Wed, 21 Oct 2009 23:59:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C0F4E09BB; Wed, 21 Oct 2009 23:59:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D18FEE09BB for ; Wed, 21 Oct 2009 23:59:52 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 803C2B400B for ; Wed, 21 Oct 2009 23:59:52 +0000 (UTC) Received: from abcd by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1N0l5r-0008Al-Lz for gentoo-commits@lists.gentoo.org; Wed, 21 Oct 2009 23:59:51 +0000 From: "Jonathan Callen (abcd)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, abcd@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: virtualx.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: virtualx.eclass X-VCS-Directories: eclass X-VCS-Committer: abcd X-VCS-Committer-Name: Jonathan Callen Content-Type: text/plain; charset=utf8 Message-Id: Sender: Jonathan Callen Date: Wed, 21 Oct 2009 23:59:51 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ffd78fcf-2882-4acb-bbf3-f6f0e969965f X-Archives-Hash: ffbb7e455d7aa97c8c4e3d6640765857 abcd 09/10/21 23:59:51 Modified: virtualx.eclass Log: Allow changing the USE flag for the dependency Revision Changes Path 1.32 eclass/virtualx.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/virtualx.ec= lass?rev=3D1.32&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/virtualx.ec= lass?rev=3D1.32&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/virtualx.ec= lass?r1=3D1.31&r2=3D1.32 Index: virtualx.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- virtualx.eclass 19 Oct 2009 23:52:39 -0000 1.31 +++ virtualx.eclass 21 Oct 2009 23:59:51 -0000 1.32 @@ -1,14 +1,19 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.31 2009/10= /19 23:52:39 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/virtualx.eclass,v 1.32 2009/10= /21 23:59:51 abcd Exp $ # # Author: Martin Schlemmer # # This eclass can be used for packages that needs a working X environmen= t to build =20 # Is a dependency on xorg-server and xhost needed? -# Valid values are "always", "tests", and "manual" -VIRTUALX_REQUIRED=3D"${VIRTUALX_REQUIRED:-tests}" +# Valid values are "always", "optional", and "manual" +# "tests" is treated as a synonym for "optional" +: ${VIRTUALX_REQUIRED:=3Doptional} + +# If VIRTUALX_REQUIRED=3Doptional, what use flag should control +# the dependency? Default is "test" +: ${VIRTUALX_USE:=3Dtest} =20 # Dep string available for use outside of eclass, in case a more # complicated dep is needed @@ -20,10 +25,10 @@ DEPEND=3D"${VIRTUALX_DEPEND}" RDEPEND=3D"" ;; - tests) - DEPEND=3D"test? ( ${VIRTUALX_DEPEND} )" + optional|tests) + DEPEND=3D"${VIRTUALX_USE}? ( ${VIRTUALX_DEPEND} )" RDEPEND=3D"" - IUSE=3D"test" + IUSE=3D"${VIRTUALX_USE}" ;; manual) ;; @@ -31,7 +36,7 @@ eerror "Invalid value (${VIRTUALX_REQUIRED}) for VIRTUALX_REQUIRED" eerror "Valid values are:" eerror " always" - eerror " tests" + eerror " optional (default if unset)" eerror " manual" die "Invalid value (${VIRTUALX_REQUIRED}) for VIRTUALX_REQUIRED" ;;