commit: 4deed6c094a92a2ba7b8718f5082bab331741fd6 Author: Matt Smith <matt <AT> offtopica <DOT> uk> AuthorDate: Thu Apr 8 08:35:54 2021 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Thu May 27 11:59:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4deed6c0
app-misc/screenfetch: Use optfeature for runtime deps Closes: https://bugs.gentoo.org/789594 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Matt Smith <matt <AT> offtopica.uk> Closes: https://github.com/gentoo/gentoo/pull/20303 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> ...eenfetch-9999.ebuild => screenfetch-3.9.1-r1.ebuild} | 17 ++++++++--------- app-misc/screenfetch/screenfetch-9999.ebuild | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild similarity index 75% copy from app-misc/screenfetch/screenfetch-9999.ebuild copy to app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild index 3010104b14e..8bb13a276cb 100644 --- a/app-misc/screenfetch/screenfetch-9999.ebuild +++ b/app-misc/screenfetch/screenfetch-3.9.1-r1.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit optfeature + MY_PN="${PN/f/F}" DESCRIPTION="Bash Screenshot Information Tool" @@ -19,17 +21,14 @@ fi LICENSE="GPL-3+" SLOT="0" -IUSE="curl X" - -DEPEND="" -RDEPEND=" - curl? ( net-misc/curl ) - X? ( - media-gfx/scrot - x11-apps/xdpyinfo - )" src_install() { newbin ${PN}-dev ${PN} einstalldocs } + +pkg_postinst() { + optfeature "screenshot taking" media-gfx/scrot + optfeature "screenshot uploading" net-misc/curl + optfeature "resolution detection" x11-apps/xdpyinfo +} diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-9999.ebuild index 3010104b14e..8bb13a276cb 100644 --- a/app-misc/screenfetch/screenfetch-9999.ebuild +++ b/app-misc/screenfetch/screenfetch-9999.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit optfeature + MY_PN="${PN/f/F}" DESCRIPTION="Bash Screenshot Information Tool" @@ -19,17 +21,14 @@ fi LICENSE="GPL-3+" SLOT="0" -IUSE="curl X" - -DEPEND="" -RDEPEND=" - curl? ( net-misc/curl ) - X? ( - media-gfx/scrot - x11-apps/xdpyinfo - )" src_install() { newbin ${PN}-dev ${PN} einstalldocs } + +pkg_postinst() { + optfeature "screenshot taking" media-gfx/scrot + optfeature "screenshot uploading" net-misc/curl + optfeature "resolution detection" x11-apps/xdpyinfo +}
