1 |
commit: 5ff758a079bc244bc3d8673d384070588f767db6 |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Jun 17 04:06:14 2021 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Thu Jun 17 04:51:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5ff758a0 |
7 |
|
8 |
app-editors/micro: update DESCRIPTION, use optfeature |
9 |
|
10 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
11 |
|
12 |
app-editors/micro/micro-2.0.9.ebuild | 19 ++++++++----------- |
13 |
1 file changed, 8 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/app-editors/micro/micro-2.0.9.ebuild b/app-editors/micro/micro-2.0.9.ebuild |
16 |
index 2dc1b350b..ce31b3d2d 100644 |
17 |
--- a/app-editors/micro/micro-2.0.9.ebuild |
18 |
+++ b/app-editors/micro/micro-2.0.9.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-inherit go-module |
24 |
+inherit go-module optfeature |
25 |
|
26 |
EGO_SUM=( |
27 |
"github.com/blang/semver v3.5.1+incompatible" |
28 |
@@ -97,7 +97,7 @@ EGO_SUM=( |
29 |
|
30 |
go-module_set_globals |
31 |
|
32 |
-DESCRIPTION="A modern and intuitive terminal-based text editor" |
33 |
+DESCRIPTION="Modern and intuitive terminal-based text editor" |
34 |
HOMEPAGE="https://github.com/zyedidia/micro" |
35 |
SRC_URI=" |
36 |
https://github.com/zyedidia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
37 |
@@ -107,17 +107,8 @@ SRC_URI=" |
38 |
LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0" |
39 |
SLOT="0" |
40 |
KEYWORDS="~amd64 ~arm64 ~x86" |
41 |
-IUSE="wayland" |
42 |
RESTRICT="mirror" |
43 |
|
44 |
-RDEPEND=" |
45 |
- !wayland? ( |
46 |
- x11-misc/xsel |
47 |
- x11-misc/xclip |
48 |
- ) |
49 |
- wayland? ( gui-apps/wl-clipboard ) |
50 |
-" |
51 |
- |
52 |
src_compile() { |
53 |
go build -v -work -x -o ${PN} ./cmd/micro || die |
54 |
} |
55 |
@@ -127,3 +118,9 @@ src_install() { |
56 |
doman ./assets/packaging/micro.1 |
57 |
einstalldocs |
58 |
} |
59 |
+ |
60 |
+pkg_postinst() { |
61 |
+ optfeature_header "Clipboard support with display servers:" |
62 |
+ optfeature "Xorg" x11-misc/xsel x11-misc/xclip |
63 |
+ optfeature "Wayland" gui-apps/wl-clipboard |
64 |
+} |