mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
media-video/mpv: strip ffnvcodec from mpv.pc for now
Dropped a note in #mpv-devel and seems being included is only because it does not make the distinction between build-only and runtime. Would need a fix like libplacebo did for xxhash. For now, just force drop it here. The sed is re-used from libplacebo for (another) similar issue, and should be proven to work fine by now. Revbump is not super worth it, but mpv does not take long to build. Closes: https://bugs.gentoo.org/971646 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -243,6 +243,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}
|
||||
}
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user