1 |
commit: fd532557fa550ef0a11b9c0aa7639374ac9ae8a6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 3 14:05:37 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 07:43:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd532557 |
7 |
|
8 |
distutils-r1.eclass: Enable EAPI 7 support |
9 |
|
10 |
Support EAPI 7. Move PYTHON_DEPS from DEPEND to BDEPEND. Fix trailing |
11 |
slash uses for D/ED. |
12 |
|
13 |
eclass/distutils-r1.eclass | 14 +++++++++----- |
14 |
1 file changed, 9 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
17 |
index 26fa0069a73..975383acc09 100644 |
18 |
--- a/eclass/distutils-r1.eclass |
19 |
+++ b/eclass/distutils-r1.eclass |
20 |
@@ -46,7 +46,7 @@ case "${EAPI:-0}" in |
21 |
0|1|2|3|4) |
22 |
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" |
23 |
;; |
24 |
- 5|6) |
25 |
+ 5|6|7) |
26 |
;; |
27 |
*) |
28 |
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
29 |
@@ -98,7 +98,11 @@ if [[ ! ${_DISTUTILS_R1} ]]; then |
30 |
|
31 |
if [[ ! ${DISTUTILS_OPTIONAL} ]]; then |
32 |
RDEPEND=${PYTHON_DEPS} |
33 |
- DEPEND=${PYTHON_DEPS} |
34 |
+ if [[ ${EAPI} != [56] ]]; then |
35 |
+ BDEPEND=${PYTHON_DEPS} |
36 |
+ else |
37 |
+ DEPEND=${PYTHON_DEPS} |
38 |
+ fi |
39 |
REQUIRED_USE=${PYTHON_REQUIRED_USE} |
40 |
fi |
41 |
|
42 |
@@ -413,7 +417,7 @@ _distutils-r1_create_setup_cfg() { |
43 |
[install] |
44 |
compile = True |
45 |
optimize = 2 |
46 |
- root = ${D} |
47 |
+ root = ${D%/} |
48 |
_EOF_ |
49 |
|
50 |
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then |
51 |
@@ -583,7 +587,7 @@ distutils-r1_python_install() { |
52 |
|
53 |
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then |
54 |
_distutils-r1_wrap_scripts "${root}" "${scriptdir}" |
55 |
- multibuild_merge_root "${root}" "${D}" |
56 |
+ multibuild_merge_root "${root}" "${D%/}" |
57 |
fi |
58 |
} |
59 |
|
60 |
@@ -798,7 +802,7 @@ _distutils-r1_check_namespace_pth() { |
61 |
|
62 |
while IFS= read -r -d '' f; do |
63 |
pth+=( "${f}" ) |
64 |
- done < <(find "${ED}" -name '*-nspkg.pth' -print0) |
65 |
+ done < <(find "${ED%/}" -name '*-nspkg.pth' -print0) |
66 |
|
67 |
if [[ ${pth[@]} ]]; then |
68 |
ewarn "The following *-nspkg.pth files were found installed:" |