summaryrefslogtreecommitdiff
path: root/media-video/mpv/mpv-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/mpv/mpv-9999.ebuild')
-rw-r--r--media-video/mpv/mpv-9999.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
index 5359f946d242..6237707d1408 100644
--- a/media-video/mpv/mpv-9999.ebuild
+++ b/media-video/mpv/mpv-9999.ebuild
@@ -245,6 +245,12 @@ src_install() {
mv "${ED}"/usr/share/doc/{mpv,${PF}/examples} || die
fi
+ # prevent build-only ffnvcodec from leaking into the .pc (bug #971646)
+ if use nvenc; then
+ sed -Ee '/^Requires/s/ffnvcodec[^,]*,? ?//;s/, $//;/^Requires[^:]*: $/d' \
+ -i "${ED}"/usr/$(get_libdir)/pkgconfig/mpv.pc || die
+ fi
+
local GLOBIGNORE=*/*build*:*/*policy*
dodoc RELEASE_NOTES DOCS/*.{md,rst}
}