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 5B1451384B4 for ; Thu, 31 Dec 2015 14:53:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9981821C04B; Thu, 31 Dec 2015 14:53:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46F4421C00D for ; Thu, 31 Dec 2015 14:53:07 +0000 (UTC) Received: from pomiot (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 390B93407E6; Thu, 31 Dec 2015 14:53:05 +0000 (UTC) Date: Thu, 31 Dec 2015 15:52:58 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Cc: python@gentoo.org Subject: Re: [gentoo-dev] [PATCH 0/5] python-r1 suite: python_gen_impl_dep() function Message-ID: <20151231155259.143602c6.mgorny@gentoo.org> In-Reply-To: <1450889080-1920-1-git-send-email-mgorny@gentoo.org> References: <1450889080-1920-1-git-send-email-mgorny@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.29; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/1fIJd.j6Jj/FX5kLKlBqms2"; protocol="application/pgp-signature" X-Archives-Salt: 3d369678-cc4e-4950-a6a1-bb24fec0d56a X-Archives-Hash: 02874e75589c4f1ac79c55c71b7d3c46 --Sig_/1fIJd.j6Jj/FX5kLKlBqms2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 23 Dec 2015 17:44:35 +0100 Micha=C5=82 G=C3=B3rny wrote: > Hi, >=20 > Here's a quick set of patches that add python_gen_impl_dep() function > to python-r1 and python-single-r1 eclasses, and use them in a few > ebuilds. >=20 > The problem solved is that some Python packages need to depend on more > than one combination of USE flags on the Python interpreter. Currently, > we solved this through bash-substituting USE dependencies in generated > ${PYTHON_DEPS} -- though this was kinda ugly. >=20 > The python_gen_impl_dep() function intends to match API of other > functions. In particular, its usage is: >=20 > python_gen_impl_dep [...] >=20 > where req-use defines the USE-dep for Python interpreters (alike > PYTHON_REQ_USE) and can optionally be an empty string, and impl-patterns > specify PYTHON_COMPAT patterns to match implementations that will be > present in the dependency. If no patterns are passed, '*' is assumed. >=20 > Examples (for PYTHON_COMPAT=3D( python2_7 python3_4 )): >=20 > python_gen_impl_dep 'bzip2(+)' >=20 > python_targets_python2_7? ( dev-lang/python:2.7[bzip2(+)] ) > python_targets_python3_4? ( dev-lang/python:3.4[bzip2(+)] ) >=20 > python_gen_impl_dep '' >=20 > python_targets_python2_7? ( dev-lang/python:2.7 ) > python_targets_python3_4? ( dev-lang/python:3.4 ) >=20 > python_gen_impl_dep '' python3* >=20 > python_targets_python3_4? ( dev-lang/python:3.4 ) >=20 > Please review the patches sent in reply. >=20 >=20 > Micha=C5=82 G=C3=B3rny (5): > python-r1.eclass: Introduce python_gen_impl_dep > python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1 > app-emulation/xen-tools: Make use of new python_gen_impl_dep function > dev-python/django: Make use of the new python_gen_impl_dep function > sys-apps/portage: Make use of the new python_gen_impl_dep function >=20 > app-emulation/xen-tools/xen-tools-4.2.5-r10.ebuild | 2 +- > app-emulation/xen-tools/xen-tools-4.2.5-r11.ebuild | 2 +- > app-emulation/xen-tools/xen-tools-4.5.2-r2.ebuild | 4 +- > app-emulation/xen-tools/xen-tools-4.5.2-r3.ebuild | 4 +- > app-emulation/xen-tools/xen-tools-4.6.0-r4.ebuild | 2 +- > app-emulation/xen-tools/xen-tools-4.6.0-r5.ebuild | 2 +- > dev-python/django/django-1.4.22.ebuild | 2 +- > dev-python/django/django-1.5.12.ebuild | 2 +- > dev-python/django/django-1.6.11.ebuild | 2 +- > dev-python/django/django-1.7.11.ebuild | 2 +- > dev-python/django/django-1.8.7.ebuild | 2 +- > dev-python/django/django-1.9.ebuild | 2 +- > dev-python/django/django-9999.ebuild | 2 +- > eclass/python-r1.eclass | 52 ++++++++++++++++= +++ > eclass/python-single-r1.eclass | 58 ++++++++++++++++= ++++++ > sys-apps/portage/portage-2.2.20.1.ebuild | 3 +- > sys-apps/portage/portage-2.2.23.ebuild | 3 +- > sys-apps/portage/portage-2.2.24.ebuild | 3 +- > sys-apps/portage/portage-2.2.25.ebuild | 3 +- > sys-apps/portage/portage-2.2.26.ebuild | 3 +- > sys-apps/portage/portage-9999.ebuild | 3 +- > 21 files changed, 131 insertions(+), 27 deletions(-) Merged. --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/1fIJd.j6Jj/FX5kLKlBqms2 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWhUFLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZO8O0QANxP88BYEtLjICMR1xQphLib ZRS7Avn8TBb0T9tY64i9qcb0RmTwLcXoNX9TVQjS6XK21vWMxFhgdMxT7kR0RQas ajDaU+Tb9z0u7H9ACDHH4AeJ07xpU2MevHbOObw4SHMnny19autoROtd+YPAPV0Y LqpEQL4NSdNWnJQNvhAP/4ek32xIEAvz4jWnwn7/ysbgKg3ikCWBseuwSvlxY5B8 xog/urAf3qdNwo8gwYK5NAtWgxGaXwggtWJpxeRlXKU0fEeH4B2PbqANXzHuBq+V EdQS6jZ6iKOHC6sbAHYRiNFzuVnttKZ8qRv8VakQml+yg5gTUU9vd1iLtE2YgsOP /5z2xGneB0nemD8zj4uujiBc6QAunzFFBEXDdaXCZqHMrukhP/Fbh2r0vj/X3pP8 +03QizeXXiM614P0mSvAvyJCLjnvN01c87M2dHN2ywEmmV6ejYHKeYPDh28GJ6Te 2fXQ7laECICoxnV1mh3u2xmtNC9qfv5lIuQgg7x7Dnlf2gOiJMOwZskSKt/Htt8C oX7r03P1CjZvZCIMdI1VC4tAW2svx4Y3nR7OntahlLbVsg8FR/Okti9JD2nv9nGr f94g1TYqjmdFRdCbv9Hrr8yY1W5IAjXJ//JiQNTLE6KCRJZRWy8frKTMjpW38gmx 9WzFff7wNbzd6pfEyy1D =fVtv -----END PGP SIGNATURE----- --Sig_/1fIJd.j6Jj/FX5kLKlBqms2--