1 |
commit: b37ff50bd59c5c68c3d46adfc10866a96e5e7b59 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 23 09:27:31 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 23 09:27:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b37ff50b |
7 |
|
8 |
dev-python/editorconfig-core-py: Restore USE=cli |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
...ore-py-0.12.3.ebuild => editorconfig-core-py-0.12.3-r1.ebuild} | 8 ++++++-- |
13 |
1 file changed, 6 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3-r1.ebuild |
16 |
similarity index 83% |
17 |
rename from dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild |
18 |
rename to dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3-r1.ebuild |
19 |
index 1c0da663b09..7bae9392d2c 100644 |
20 |
--- a/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3.ebuild |
21 |
+++ b/dev-python/editorconfig-core-py/editorconfig-core-py-0.12.3-r1.ebuild |
22 |
@@ -18,15 +18,19 @@ SRC_URI="https://github.com/${PN%-core-py}/${PN}/archive/v${PV}.tar.gz -> ${P}.t |
23 |
LICENSE="PYTHON BSD-4" |
24 |
SLOT="0" |
25 |
KEYWORDS="~amd64 ~x86" |
26 |
-IUSE="test" |
27 |
+IUSE="cli test" |
28 |
RESTRICT="!test? ( test )" |
29 |
|
30 |
-RDEPEND="!<app-vim/editorconfig-vim-0.3.3-r1" |
31 |
+RDEPEND="!<app-vim/editorconfig-vim-0.3.3-r1 |
32 |
+ cli? ( !app-text/editorconfig-core-c[cli] )" |
33 |
|
34 |
src_prepare() { |
35 |
if use test; then |
36 |
mv "${WORKDIR}"/${PN%-core-py}-core-test-${TESTVER}/* "${S}"/tests || die |
37 |
fi |
38 |
+ if ! use cli; then |
39 |
+ sed -i -e '/editorconfig\.__main__/d' setup.py || die |
40 |
+ fi |
41 |
|
42 |
cmake_src_prepare |
43 |
distutils-r1_src_prepare |