1 |
commit: bbeb1a680387e42c0e62046dc0ce89f62f8e8052 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Thu Apr 15 18:48:22 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Apr 15 18:48:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bbeb1a68 |
7 |
|
8 |
app-editors/atom-bin: use optfeature for GLEP 62 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781020 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
13 |
|
14 |
...n-1.56.0-r1.ebuild => atom-bin-1.56.0-r2.ebuild} | 21 ++++++++++----------- |
15 |
app-editors/atom-bin/metadata.xml | 3 --- |
16 |
2 files changed, 10 insertions(+), 14 deletions(-) |
17 |
|
18 |
diff --git a/app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild b/app-editors/atom-bin/atom-bin-1.56.0-r2.ebuild |
19 |
similarity index 82% |
20 |
rename from app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild |
21 |
rename to app-editors/atom-bin/atom-bin-1.56.0-r2.ebuild |
22 |
index 7569cec58..37324372b 100644 |
23 |
--- a/app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild |
24 |
+++ b/app-editors/atom-bin/atom-bin-1.56.0-r2.ebuild |
25 |
@@ -3,7 +3,7 @@ |
26 |
|
27 |
EAPI=7 |
28 |
|
29 |
-inherit desktop xdg |
30 |
+inherit desktop optfeature xdg |
31 |
|
32 |
DESCRIPTION="A hackable text editor for the 21st Century" |
33 |
HOMEPAGE="https://atom.io/" |
34 |
@@ -13,10 +13,7 @@ LICENSE="MIT" |
35 |
SLOT="0" |
36 |
KEYWORDS="~amd64" |
37 |
|
38 |
-# beautify contains packages used by atom-beautify. |
39 |
-# If you want other plugins to be working please file |
40 |
-# a bug on bugs.gentoo.org under GURU section. |
41 |
-IUSE="alsa beautify cups ssl test X" |
42 |
+IUSE="alsa cups ssl test X" |
43 |
RESTRICT="!test? ( test )" |
44 |
|
45 |
S="${WORKDIR}/atom-${PV}-amd64" |
46 |
@@ -29,12 +26,6 @@ RDEPEND=" |
47 |
dev-libs/nss |
48 |
dev-vcs/git |
49 |
alsa? ( media-libs/alsa-lib ) |
50 |
- beautify? ( |
51 |
- dev-python/autopep8 |
52 |
- dev-python/black |
53 |
- dev-util/beautysh |
54 |
- dev-util/uncrustify |
55 |
- ) |
56 |
cups? ( net-print/cups ) |
57 |
ssl? ( |
58 |
dev-libs/openssl |
59 |
@@ -92,3 +83,11 @@ src_install(){ |
60 |
|
61 |
find "${ED}" -name '*.la' -delete || die |
62 |
} |
63 |
+ |
64 |
+pkg_postinst(){ |
65 |
+ optfeature_header "If you want to use atom-beautify please install following packages:" |
66 |
+ optfeature "python code beautifier" dev-python/autopep8 |
67 |
+ optfeature "python code beautifier" dev-python/black |
68 |
+ optfeature "shell code beautifier" dev-util/beautysh |
69 |
+ optfeature "C, C++, Java code beautifier" dev-util/uncrustify |
70 |
+} |
71 |
|
72 |
diff --git a/app-editors/atom-bin/metadata.xml b/app-editors/atom-bin/metadata.xml |
73 |
index 6d0088886..a0b29038e 100644 |
74 |
--- a/app-editors/atom-bin/metadata.xml |
75 |
+++ b/app-editors/atom-bin/metadata.xml |
76 |
@@ -8,7 +8,4 @@ |
77 |
<upstream> |
78 |
<remote-id type="github">atom/atom</remote-id> |
79 |
</upstream> |
80 |
- <use> |
81 |
- <flag name="beautify">Install packages for atom-beautify</flag> |
82 |
- </use> |
83 |
</pkgmetadata> |