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 8A5381381F3 for ; Mon, 22 Jul 2013 09:50:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28517E0A98; Mon, 22 Jul 2013 09:50:23 +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 BB5E5E0A98 for ; Mon, 22 Jul 2013 09:50: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 0A71B33E8F0; Mon, 22 Jul 2013 09:50: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 1/6] [python-any-r1] use PYTHON_PKG_DEP for generating deps. Date: Mon, 22 Jul 2013 11:50:17 +0200 Message-Id: <1374486622-15791-1-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: 357616be-1c38-4fc2-96be-f4322452b846 X-Archives-Hash: f2161d3eaff4dc3bf08174f8147bb0cd I must have missed it when converting the other two eclasses. --- gx86/eclass/python-any-r1.eclass | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/gx86/eclass/python-any-r1.eclass b/gx86/eclass/python-any-r1.eclass index 087efb2..aa11cf7 100644 --- a/gx86/eclass/python-any-r1.eclass +++ b/gx86/eclass/python-any-r1.eclass @@ -118,27 +118,15 @@ _python_build_set_globals() { [[ ${PYTHON_REQ_USE} ]] && usestr="[${PYTHON_REQ_USE}]" PYTHON_DEPS= - local i + local i PYTHON_PKG_DEP for i in "${_PYTHON_ALL_IMPLS[@]}"; do - if has "${i}" "${PYTHON_COMPAT[@]}" - then - local d - case ${i} in - python*) - d='dev-lang/python';; - jython*) - d='dev-java/jython';; - pypy*) - d='dev-python/pypy';; - *) - die "Invalid implementation: ${i}" - esac + has "${i}" "${PYTHON_COMPAT[@]}" || continue - local v=${i##*[a-z]} - PYTHON_DEPS="${d}:${v/_/.}${usestr} ${PYTHON_DEPS}" - fi + python_export "${i}" PYTHON_PKG_DEP + + PYTHON_DEPS="${PYTHON_PKG_DEP} ${PYTHON_DEPS}" done - PYTHON_DEPS="|| ( ${PYTHON_DEPS})" + PYTHON_DEPS="|| ( ${PYTHON_DEPS} )" } _python_build_set_globals -- 1.8.3.2