1 |
commit: 6cbb1015f80c550e41873048a7b5b660f98c4ea5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 9 16:11:24 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 9 18:48:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cbb1015 |
7 |
|
8 |
dev-lang/python-exec: Respect PYTHON_TARGETS (NFC) |
9 |
|
10 |
Actually use PYTHON_TARGETS when building implementation list. This is |
11 |
NFC since all targets are package.use.forced but it lets advanced users |
12 |
customize behavior via un-forcing those flags. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/693910 |
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
dev-lang/python-exec/python-exec-2.4.6-r1.ebuild | 6 ++++-- |
18 |
dev-lang/python-exec/python-exec-9999.ebuild | 6 ++++-- |
19 |
2 files changed, 8 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild |
22 |
index 18343cded12..9f56ea1a1d8 100644 |
23 |
--- a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild |
24 |
+++ b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild |
25 |
@@ -27,8 +27,10 @@ RDEPEND=" |
26 |
src_configure() { |
27 |
local pyimpls=() i EPYTHON |
28 |
for i in "${_PYTHON_ALL_IMPLS[@]}"; do |
29 |
- python_export "${i}" EPYTHON |
30 |
- pyimpls+=( "${EPYTHON}" ) |
31 |
+ if use "python_targets_${i}"; then |
32 |
+ python_export "${i}" EPYTHON |
33 |
+ pyimpls+=( "${EPYTHON}" ) |
34 |
+ fi |
35 |
done |
36 |
|
37 |
local myconf=( |
38 |
|
39 |
diff --git a/dev-lang/python-exec/python-exec-9999.ebuild b/dev-lang/python-exec/python-exec-9999.ebuild |
40 |
index f5c7a17a180..ca430aeaf2d 100644 |
41 |
--- a/dev-lang/python-exec/python-exec-9999.ebuild |
42 |
+++ b/dev-lang/python-exec/python-exec-9999.ebuild |
43 |
@@ -33,8 +33,10 @@ src_prepare() { |
44 |
src_configure() { |
45 |
local pyimpls=() i EPYTHON |
46 |
for i in "${_PYTHON_ALL_IMPLS[@]}"; do |
47 |
- python_export "${i}" EPYTHON |
48 |
- pyimpls+=( "${EPYTHON}" ) |
49 |
+ if use "python_targets_${i}"; then |
50 |
+ python_export "${i}" EPYTHON |
51 |
+ pyimpls+=( "${EPYTHON}" ) |
52 |
+ fi |
53 |
done |
54 |
|
55 |
local myconf=( |