From 4bfb3c2fa12bc6f26cf20d6c22bc9a9fbac75caf Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Sat, 27 Mar 2021 17:35:01 +0300 Subject: [PATCH] media-video/mpv: use optfeature fpr youtube-dl Closes: https://bugs.gentoo.org/767463 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Mikle Kolyada --- media-video/mpv/mpv-0.33.0-r100.ebuild | 4 ++-- media-video/mpv/mpv-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/media-video/mpv/mpv-0.33.0-r100.ebuild b/media-video/mpv/mpv-0.33.0-r100.ebuild index edb74a93b7044..c749f487bd6a4 100644 --- a/media-video/mpv/mpv-0.33.0-r100.ebuild +++ b/media-video/mpv/mpv-0.33.0-r100.ebuild @@ -9,7 +9,7 @@ PYTHON_REQ_USE='threads(+)' WAF_PV=2.0.9 -inherit bash-completion-r1 flag-o-matic lua-single pax-utils python-r1 toolchain-funcs waf-utils xdg-utils +inherit bash-completion-r1 flag-o-matic lua-single optfeature pax-utils python-r1 toolchain-funcs waf-utils xdg-utils DESCRIPTION="Media player based on MPlayer and mplayer2" HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" @@ -336,7 +336,7 @@ pkg_postinst() { elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." fi - elog "If you want URL support, please install net-misc/youtube-dl." + optfeature "URL support" net-misc/youtube-dl xdg_icon_cache_update xdg_desktop_database_update diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index edb74a93b7044..c749f487bd6a4 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -9,7 +9,7 @@ PYTHON_REQ_USE='threads(+)' WAF_PV=2.0.9 -inherit bash-completion-r1 flag-o-matic lua-single pax-utils python-r1 toolchain-funcs waf-utils xdg-utils +inherit bash-completion-r1 flag-o-matic lua-single optfeature pax-utils python-r1 toolchain-funcs waf-utils xdg-utils DESCRIPTION="Media player based on MPlayer and mplayer2" HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" @@ -336,7 +336,7 @@ pkg_postinst() { elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." fi - elog "If you want URL support, please install net-misc/youtube-dl." + optfeature "URL support" net-misc/youtube-dl xdg_icon_cache_update xdg_desktop_database_update