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 9246B13800E for ; Fri, 3 Aug 2012 13:38:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D02DE04C2; Fri, 3 Aug 2012 13:38:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2D1F3E04C2 for ; Fri, 3 Aug 2012 13:38:17 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 824C31B4038 for ; Fri, 3 Aug 2012 13:38:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2B9B9E5443 for ; Fri, 3 Aug 2012 13:38:14 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1343994028.1c70fb2ef1c0345a432a5ba2eeacef45b9ed5ea0.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ebuild/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/ebuild/evars.py X-VCS-Directories: roverlay/ebuild/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 1c70fb2ef1c0345a432a5ba2eeacef45b9ed5ea0 X-VCS-Branch: master Date: Fri, 3 Aug 2012 13:38:14 +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: b4d71dac-ceac-481b-83a0-896145482bcc X-Archives-Hash: eb356c35ea74c0518855822102b42237 commit: 1c70fb2ef1c0345a432a5ba2eeacef45b9ed5ea0 Author: André Erdmann mailerd de> AuthorDate: Fri Aug 3 11:40:28 2012 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Aug 3 11:40:28 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=1c70fb2e MISSINGDEPS evar --- roverlay/ebuild/evars.py | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/roverlay/ebuild/evars.py b/roverlay/ebuild/evars.py index 2a7692d..4262956 100644 --- a/roverlay/ebuild/evars.py +++ b/roverlay/ebuild/evars.py @@ -64,7 +64,7 @@ class IUSE ( EbuildVar ): ) self.value.single_line = True if using_suggests: - self.value.add ( IUSE_SUGGESTS ) + self.add_value ( IUSE_SUGGESTS ) class R_SUGGESTS ( EbuildVar ): @@ -102,4 +102,21 @@ class RDEPEND ( EbuildVar ): def enable_suggests ( self ): """Adds the optional R_SUGGESTS dependencies to RDEPEND.""" - self.value.add ( '%s? ( ${%s} )' % ( IUSE_SUGGESTS, RSUGGESTS_NAME ) ) + self.add_value ( '{USE}? ( ${{DEPS}} )'.format ( + USE = IUSE_SUGGESTS, + DEPS = RSUGGESTS_NAME + ) ) + + +class MISSINGDEPS ( EbuildVar ): + def __init__ ( self, missing_deps, do_sort=False, **kw ): + super ( MISSINGDEPS, self ) . __init__ ( + name = '_UNRESOLVED_PACKAGES', + value = ListValue ( + missing_deps if not do_sort \ + else tuple ( sorted ( missing_deps, key=lambda s : s.lower() ) ), + bash_array=True + ), + priority = 200, + param_expansion = None, + )