1 |
commit: 2900be0da7fbad59b5b711c18a247d19c08de7d1 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 4 01:26:18 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 4 01:26:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2900be0d |
7 |
|
8 |
app-admin/ansible: fix upgrade and unify ebuilds (live) |
9 |
|
10 |
closes: https://bugs.gentoo.org/746398 |
11 |
|
12 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
13 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
14 |
|
15 |
app-admin/ansible/ansible-2.10.0.ebuild | 19 +++++++++++++++---- |
16 |
app-admin/ansible/ansible-9999.ebuild | 24 +++++++++++++++++------- |
17 |
2 files changed, 32 insertions(+), 11 deletions(-) |
18 |
|
19 |
diff --git a/app-admin/ansible/ansible-2.10.0.ebuild b/app-admin/ansible/ansible-2.10.0.ebuild |
20 |
index b2456b17b30..70df6adeb90 100644 |
21 |
--- a/app-admin/ansible/ansible-2.10.0.ebuild |
22 |
+++ b/app-admin/ansible/ansible-2.10.0.ebuild |
23 |
@@ -4,17 +4,25 @@ |
24 |
EAPI=7 |
25 |
|
26 |
PYTHON_COMPAT=( python3_{6,7} ) |
27 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
+DISTUTILS_USE_SETUPTOOLS=bdepend |
29 |
|
30 |
inherit distutils-r1 eutils |
31 |
|
32 |
DESCRIPTION="Model-driven deployment, config management, and command execution framework" |
33 |
HOMEPAGE="https://ansible.com/" |
34 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+if [[ ${PV} == 9999 ]]; then |
37 |
+ inherit git-r3 |
38 |
+ EGIT_REPO_URI="https://github.com/ansible/ansible.git" |
39 |
+ EGIT_BRANCH="devel" |
40 |
+ KEYWORDS="" |
41 |
+else |
42 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" |
44 |
+fi |
45 |
|
46 |
LICENSE="GPL-3" |
47 |
SLOT="0" |
48 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" |
49 |
IUSE="doc test" |
50 |
RESTRICT="test" |
51 |
|
52 |
@@ -49,7 +57,10 @@ DEPEND=" |
53 |
dev-vcs/git |
54 |
)" |
55 |
|
56 |
-ANSIBLE_SKIP_CONFLICT_CHECK=1 |
57 |
+python_compile() { |
58 |
+ export ANSIBLE_SKIP_CONFLICT_CHECK=1 |
59 |
+ distutils-r1_python_compile |
60 |
+} |
61 |
|
62 |
python_compile_all() { |
63 |
if use doc; then |
64 |
|
65 |
diff --git a/app-admin/ansible/ansible-9999.ebuild b/app-admin/ansible/ansible-9999.ebuild |
66 |
index 6ff1f27cd47..546b4d203b3 100644 |
67 |
--- a/app-admin/ansible/ansible-9999.ebuild |
68 |
+++ b/app-admin/ansible/ansible-9999.ebuild |
69 |
@@ -4,13 +4,22 @@ |
70 |
EAPI=7 |
71 |
|
72 |
PYTHON_COMPAT=( python3_{6,7} ) |
73 |
+DISTUTILS_USE_SETUPTOOLS=bdepend |
74 |
|
75 |
-inherit distutils-r1 git-r3 eutils |
76 |
+inherit distutils-r1 eutils |
77 |
|
78 |
DESCRIPTION="Model-driven deployment, config management, and command execution framework" |
79 |
HOMEPAGE="https://ansible.com/" |
80 |
-EGIT_REPO_URI="https://github.com/ansible/ansible.git" |
81 |
-EGIT_BRANCH="devel" |
82 |
+ |
83 |
+if [[ ${PV} == 9999 ]]; then |
84 |
+ inherit git-r3 |
85 |
+ EGIT_REPO_URI="https://github.com/ansible/ansible.git" |
86 |
+ EGIT_BRANCH="devel" |
87 |
+ KEYWORDS="" |
88 |
+else |
89 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
90 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" |
91 |
+fi |
92 |
|
93 |
LICENSE="GPL-3" |
94 |
SLOT="0" |
95 |
@@ -22,7 +31,6 @@ RDEPEND=" |
96 |
dev-python/paramiko[${PYTHON_USEDEP}] |
97 |
dev-python/jinja[${PYTHON_USEDEP}] |
98 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
99 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
100 |
dev-python/cryptography[${PYTHON_USEDEP}] |
101 |
dev-python/httplib2[${PYTHON_USEDEP}] |
102 |
dev-python/six[${PYTHON_USEDEP}] |
103 |
@@ -34,7 +42,6 @@ RDEPEND=" |
104 |
" |
105 |
DEPEND=" |
106 |
!app-admin/ansible-base |
107 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
108 |
>=dev-python/packaging-16.6[${PYTHON_USEDEP}] |
109 |
doc? ( |
110 |
dev-python/sphinx[${PYTHON_USEDEP}] |
111 |
@@ -51,6 +58,11 @@ DEPEND=" |
112 |
dev-vcs/git |
113 |
)" |
114 |
|
115 |
+python_compile() { |
116 |
+ export ANSIBLE_SKIP_CONFLICT_CHECK=1 |
117 |
+ distutils-r1_python_compile |
118 |
+} |
119 |
+ |
120 |
python_compile_all() { |
121 |
if use doc; then |
122 |
cd docs/docsite || die |
123 |
@@ -66,6 +78,4 @@ python_test() { |
124 |
python_install_all() { |
125 |
use doc && local HTML_DOCS=( docs/docsite/_build/html/. ) |
126 |
distutils-r1_python_install_all |
127 |
- |
128 |
- dodoc -r examples |
129 |
} |