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 E60541381F3 for ; Mon, 22 Jul 2013 09:51:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81C84E0A99; Mon, 22 Jul 2013 09:51:22 +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 19948E0A99 for ; Mon, 22 Jul 2013 09:51:22 +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 5309F33E930; Mon, 22 Jul 2013 09:51:20 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-python@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-python] [PATCH 6/6] [python.eclass] Support pypy-bin in python_get_implement... Date: Mon, 22 Jul 2013 11:51:19 +0200 Message-Id: <1374486679-15887-6-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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org X-Archives-Salt: bf83a262-1160-4c91-935b-93d742073dd6 X-Archives-Hash: a700f31dffd97fc320f8e6de6819250a The python_get_implementational_package() is used solely in the eclass for integrity checks, and is always passed to 'has_version'. Therefore, it should be enough to put a has_version hack in it, and output either dev-python/pypy-bin or dev-python/pypy depending on which of them is installed. This eclass is no longer maintained and it seems not to output any dependencies on pypy packages. --- gx86/eclass/python.eclass | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gx86/eclass/python.eclass b/gx86/eclass/python.eclass index 3f94e0b..272808b 100644 --- a/gx86/eclass/python.eclass +++ b/gx86/eclass/python.eclass @@ -2054,7 +2054,11 @@ python_get_implementational_package() { elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then echo "=dev-java/jython-${PYTHON_ABI%-jython}*" elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then - echo "=dev-python/pypy-${PYTHON_ABI#*-pypy-}*" + if has_version "=dev-python/pypy-bin-${PYTHON_ABI#*-pypy-}*"; then + echo "=dev-python/pypy-bin-${PYTHON_ABI#*-pypy-}*" + else + echo "=dev-python/pypy-${PYTHON_ABI#*-pypy-}*" + fi fi else if [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "CPython" ]]; then @@ -2062,7 +2066,11 @@ python_get_implementational_package() { elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "Jython" ]]; then echo "dev-java/jython:${PYTHON_ABI%-jython}" elif [[ "$(_python_get_implementation "${PYTHON_ABI}")" == "PyPy" ]]; then - echo "dev-python/pypy:${PYTHON_ABI#*-pypy-}" + if has_version "dev-python/pypy-bin:${PYTHON_ABI#*-pypy-}"; then + echo "dev-python/pypy-bin:${PYTHON_ABI#*-pypy-}" + else + echo "dev-python/pypy:${PYTHON_ABI#*-pypy-}" + fi fi fi } -- 1.8.3.2