1 |
On Wed, 23 Dec 2015 17:44:35 +0100 |
2 |
Michał Górny <mgorny@g.o> wrote: |
3 |
|
4 |
> Hi, |
5 |
> |
6 |
> Here's a quick set of patches that add python_gen_impl_dep() function |
7 |
> to python-r1 and python-single-r1 eclasses, and use them in a few |
8 |
> ebuilds. |
9 |
> |
10 |
> The problem solved is that some Python packages need to depend on more |
11 |
> than one combination of USE flags on the Python interpreter. Currently, |
12 |
> we solved this through bash-substituting USE dependencies in generated |
13 |
> ${PYTHON_DEPS} -- though this was kinda ugly. |
14 |
> |
15 |
> The python_gen_impl_dep() function intends to match API of other |
16 |
> functions. In particular, its usage is: |
17 |
> |
18 |
> python_gen_impl_dep <req-use> [<impl-pattern>...] |
19 |
> |
20 |
> where req-use defines the USE-dep for Python interpreters (alike |
21 |
> PYTHON_REQ_USE) and can optionally be an empty string, and impl-patterns |
22 |
> specify PYTHON_COMPAT patterns to match implementations that will be |
23 |
> present in the dependency. If no patterns are passed, '*' is assumed. |
24 |
> |
25 |
> Examples (for PYTHON_COMPAT=( python2_7 python3_4 )): |
26 |
> |
27 |
> python_gen_impl_dep 'bzip2(+)' |
28 |
> |
29 |
> python_targets_python2_7? ( dev-lang/python:2.7[bzip2(+)] ) |
30 |
> python_targets_python3_4? ( dev-lang/python:3.4[bzip2(+)] ) |
31 |
> |
32 |
> python_gen_impl_dep '' |
33 |
> |
34 |
> python_targets_python2_7? ( dev-lang/python:2.7 ) |
35 |
> python_targets_python3_4? ( dev-lang/python:3.4 ) |
36 |
> |
37 |
> python_gen_impl_dep '' python3* |
38 |
> |
39 |
> python_targets_python3_4? ( dev-lang/python:3.4 ) |
40 |
> |
41 |
> Please review the patches sent in reply. |
42 |
> |
43 |
> |
44 |
> Michał Górny (5): |
45 |
> python-r1.eclass: Introduce python_gen_impl_dep |
46 |
> python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1 |
47 |
> app-emulation/xen-tools: Make use of new python_gen_impl_dep function |
48 |
> dev-python/django: Make use of the new python_gen_impl_dep function |
49 |
> sys-apps/portage: Make use of the new python_gen_impl_dep function |
50 |
> |
51 |
> app-emulation/xen-tools/xen-tools-4.2.5-r10.ebuild | 2 +- |
52 |
> app-emulation/xen-tools/xen-tools-4.2.5-r11.ebuild | 2 +- |
53 |
> app-emulation/xen-tools/xen-tools-4.5.2-r2.ebuild | 4 +- |
54 |
> app-emulation/xen-tools/xen-tools-4.5.2-r3.ebuild | 4 +- |
55 |
> app-emulation/xen-tools/xen-tools-4.6.0-r4.ebuild | 2 +- |
56 |
> app-emulation/xen-tools/xen-tools-4.6.0-r5.ebuild | 2 +- |
57 |
> dev-python/django/django-1.4.22.ebuild | 2 +- |
58 |
> dev-python/django/django-1.5.12.ebuild | 2 +- |
59 |
> dev-python/django/django-1.6.11.ebuild | 2 +- |
60 |
> dev-python/django/django-1.7.11.ebuild | 2 +- |
61 |
> dev-python/django/django-1.8.7.ebuild | 2 +- |
62 |
> dev-python/django/django-1.9.ebuild | 2 +- |
63 |
> dev-python/django/django-9999.ebuild | 2 +- |
64 |
> eclass/python-r1.eclass | 52 +++++++++++++++++++ |
65 |
> eclass/python-single-r1.eclass | 58 ++++++++++++++++++++++ |
66 |
> sys-apps/portage/portage-2.2.20.1.ebuild | 3 +- |
67 |
> sys-apps/portage/portage-2.2.23.ebuild | 3 +- |
68 |
> sys-apps/portage/portage-2.2.24.ebuild | 3 +- |
69 |
> sys-apps/portage/portage-2.2.25.ebuild | 3 +- |
70 |
> sys-apps/portage/portage-2.2.26.ebuild | 3 +- |
71 |
> sys-apps/portage/portage-9999.ebuild | 3 +- |
72 |
> 21 files changed, 131 insertions(+), 27 deletions(-) |
73 |
|
74 |
Merged. |
75 |
|
76 |
-- |
77 |
Best regards, |
78 |
Michał Górny |
79 |
<http://dev.gentoo.org/~mgorny/> |