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