commit:     8b87169bd784d2437cf7c4980f4cf596bc919adf
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 03:56:15 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat May 11 03:59:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b87169b

media-video/mpv: reword yt-dlp optfeature

USE=lua led to confusion that some action is needed, let's be
more verbose and only mention it when it's not set.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-video/mpv/mpv-0.38.0.ebuild | 3 ++-
 media-video/mpv/mpv-9999.ebuild   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-video/mpv/mpv-0.38.0.ebuild 
b/media-video/mpv/mpv-0.38.0.ebuild
index bc585e8fdb66..a44f459bb171 100644
--- a/media-video/mpv/mpv-0.38.0.ebuild
+++ b/media-video/mpv/mpv-0.38.0.ebuild
@@ -271,5 +271,6 @@ src_install() {
 pkg_postinst() {
        xdg_pkg_postinst
 
-       optfeature "URL support with USE=lua" net-misc/yt-dlp
+       optfeature "various websites URL support$(usev !lua \
+               " (requires ${PN} with USE=lua)")" net-misc/yt-dlp
 }

diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
index 43d88a932570..3825d102d45b 100644
--- a/media-video/mpv/mpv-9999.ebuild
+++ b/media-video/mpv/mpv-9999.ebuild
@@ -271,5 +271,6 @@ src_install() {
 pkg_postinst() {
        xdg_pkg_postinst
 
-       optfeature "URL support with USE=lua" net-misc/yt-dlp
+       optfeature "various websites URL support$(usev !lua \
+               " (requires ${PN} with USE=lua)")" net-misc/yt-dlp
 }

Reply via email to