Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/screenfetch/
Date: Thu, 27 May 2021 11:59:26
Message-Id: 1622116754.4deed6c094a92a2ba7b8718f5082bab331741fd6.juippis@gentoo
1 commit: 4deed6c094a92a2ba7b8718f5082bab331741fd6
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Thu Apr 8 08:35:54 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu May 27 11:59:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4deed6c0
7
8 app-misc/screenfetch: Use optfeature for runtime deps
9
10 Closes: https://bugs.gentoo.org/789594
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
13 Closes: https://github.com/gentoo/gentoo/pull/20303
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 ...eenfetch-9999.ebuild => screenfetch-3.9.1-r1.ebuild} | 17 ++++++++---------
17 app-misc/screenfetch/screenfetch-9999.ebuild | 17 ++++++++---------
18 2 files changed, 16 insertions(+), 18 deletions(-)
19
20 diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild
21 similarity index 75%
22 copy from app-misc/screenfetch/screenfetch-9999.ebuild
23 copy to app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild
24 index 3010104b14e..8bb13a276cb 100644
25 --- a/app-misc/screenfetch/screenfetch-9999.ebuild
26 +++ b/app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild
27 @@ -3,6 +3,8 @@
28
29 EAPI=7
30
31 +inherit optfeature
32 +
33 MY_PN="${PN/f/F}"
34
35 DESCRIPTION="Bash Screenshot Information Tool"
36 @@ -19,17 +21,14 @@ fi
37
38 LICENSE="GPL-3+"
39 SLOT="0"
40 -IUSE="curl X"
41 -
42 -DEPEND=""
43 -RDEPEND="
44 - curl? ( net-misc/curl )
45 - X? (
46 - media-gfx/scrot
47 - x11-apps/xdpyinfo
48 - )"
49
50 src_install() {
51 newbin ${PN}-dev ${PN}
52 einstalldocs
53 }
54 +
55 +pkg_postinst() {
56 + optfeature "screenshot taking" media-gfx/scrot
57 + optfeature "screenshot uploading" net-misc/curl
58 + optfeature "resolution detection" x11-apps/xdpyinfo
59 +}
60
61 diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-9999.ebuild
62 index 3010104b14e..8bb13a276cb 100644
63 --- a/app-misc/screenfetch/screenfetch-9999.ebuild
64 +++ b/app-misc/screenfetch/screenfetch-9999.ebuild
65 @@ -3,6 +3,8 @@
66
67 EAPI=7
68
69 +inherit optfeature
70 +
71 MY_PN="${PN/f/F}"
72
73 DESCRIPTION="Bash Screenshot Information Tool"
74 @@ -19,17 +21,14 @@ fi
75
76 LICENSE="GPL-3+"
77 SLOT="0"
78 -IUSE="curl X"
79 -
80 -DEPEND=""
81 -RDEPEND="
82 - curl? ( net-misc/curl )
83 - X? (
84 - media-gfx/scrot
85 - x11-apps/xdpyinfo
86 - )"
87
88 src_install() {
89 newbin ${PN}-dev ${PN}
90 einstalldocs
91 }
92 +
93 +pkg_postinst() {
94 + optfeature "screenshot taking" media-gfx/scrot
95 + optfeature "screenshot uploading" net-misc/curl
96 + optfeature "resolution detection" x11-apps/xdpyinfo
97 +}