From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-python+bounces-490-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 2E1F81381F3
	for <garchives@archives.gentoo.org>; Mon, 22 Jul 2013 09:51:20 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7FA86E0A9B;
	Mon, 22 Jul 2013 09:51:19 +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 1AD0CE0A9B
	for <gentoo-python@lists.gentoo.org>; Mon, 22 Jul 2013 09:51:19 +0000 (UTC)
Received: from pomiot.lan (213-238-102-188.adsl.inetia.pl [213.238.102.188])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: mgorny)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 5329133E951;
	Mon, 22 Jul 2013 09:51:17 +0000 (UTC)
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
To: gentoo-python@lists.gentoo.org
Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Subject: [gentoo-python] [PATCH 4/6] [python-utils-r1] Support pypy-bin in PYTHON_PKG_DEP.
Date: Mon, 22 Jul 2013 11:51:17 +0200
Message-Id: <1374486679-15887-4-git-send-email-mgorny@gentoo.org>
X-Mailer: git-send-email 1.8.3.2
In-Reply-To: <20130722114917.4f8d4b9a@gentoo.org>
References: <20130722114917.4f8d4b9a@gentoo.org>
Precedence: bulk
List-Post: <mailto:gentoo-python@lists.gentoo.org>
List-Help: <mailto:gentoo-python+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-python+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-python+subscribe@lists.gentoo.org>
List-Id: Discussions centering around the Python ecosystem in Gentoo Linux <gentoo-python.gentoo.org>
X-BeenThere: gentoo-python@gentoo.org
X-BeenThere: gentoo-python@lists.gentoo.org
X-Archives-Salt: c3ca5bcf-099f-4f69-a543-92250f5a1d54
X-Archives-Hash: 30859ababb983787799cfc135384de81

Use || ( dev-python/pypy dev-python/pypy-bin ) to support both packages.
No ebuild uses PYTHON_PKG_DEP so it's fine to change it into any-of dep.
---
 gx86/eclass/python-utils-r1.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gx86/eclass/python-utils-r1.eclass b/gx86/eclass/python-utils-r1.eclass
index 4450618..b58f3c9 100644
--- a/gx86/eclass/python-utils-r1.eclass
+++ b/gx86/eclass/python-utils-r1.eclass
@@ -352,7 +352,8 @@ python_export() {
 					jython*)
 						PYTHON_PKG_DEP="dev-java/jython${suffix}";;
 					pypy*)
-						PYTHON_PKG_DEP="dev-python/pypy${suffix}";;
+						PYTHON_PKG_DEP="|| ( dev-python/pypy${suffix}
+							dev-python/pypy-bin${suffix} )";;
 					*)
 						die "Invalid implementation: ${impl}"
 				esac
-- 
1.8.3.2