1 |
commit: 1ffcc4a4c0d38a33991d53207d4c992d5524d79d |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 19 20:17:46 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 20:17:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ffcc4a4 |
7 |
|
8 |
media-tv/kodi: Fix overzealous Python 3 warning |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
media-tv/kodi/kodi-9999.ebuild | 14 ++++++++------ |
14 |
1 file changed, 8 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild |
17 |
index 9994cd976c3..3fc94b17ea8 100644 |
18 |
--- a/media-tv/kodi/kodi-9999.ebuild |
19 |
+++ b/media-tv/kodi/kodi-9999.ebuild |
20 |
@@ -175,12 +175,14 @@ pkg_setup() { |
21 |
} |
22 |
|
23 |
src_unpack() { |
24 |
- python_is_python3 && EGIT_BRANCH="feature_python3" |
25 |
- ewarn "Using the experimental Python 3 branch!" |
26 |
- ewarn "See https://kodi.wiki/view/Migration_to_Python_3 for more information." |
27 |
- ewarn "To use the non-experimental Python 2 version:" |
28 |
- ewarn "echo '~${CATEGORY}/${P} PYTHON_TARGETS: -* python2_7 PYTHON_SINGLE_TARGET: -* python2_7' >> /etc/portage/package.use" |
29 |
- ewarn "then re-merge using: emerge -a =${CATEGORY}/${P}" |
30 |
+ if python_is_python3; then |
31 |
+ EGIT_BRANCH="feature_python3" |
32 |
+ ewarn "Using the experimental Python 3 branch!" |
33 |
+ ewarn "See https://kodi.wiki/view/Migration_to_Python_3 for more information." |
34 |
+ ewarn "To use the non-experimental Python 2 version:" |
35 |
+ ewarn "echo '~${CATEGORY}/${P} PYTHON_TARGETS: -* python2_7 PYTHON_SINGLE_TARGET: -* python2_7' >> /etc/portage/package.use" |
36 |
+ ewarn "then re-merge using: emerge -a =${CATEGORY}/${PF}" |
37 |
+ fi |
38 |
git-r3_src_unpack |
39 |
} |