mpv-plugin/mpv-mpris: Patch out -O2 from Makefile.

This overrides optimization flags specified by the user otherwise.
Also, revbump and re-sync live ebuild.

Closes: https://bugs.gentoo.org/887795
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
Oliver Freyermuth
2022-12-21 23:42:08 +01:00
parent 851504dd4f
commit 75760867b5
2 changed files with 15 additions and 2 deletions

View File

@@ -42,6 +42,11 @@ MPV_PLUGIN_FILES=( mpris.so )
RESTRICT="!test? ( test )"
src_prepare() {
sed -e 's:-O2 ::' -i Makefile || die "sed Makefile(s) failed"
default
}
src_compile() {
tc-export CC
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"

View File

@@ -19,9 +19,10 @@ fi
LICENSE="MIT"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-libs/glib:2"
RDEPEND="
dev-libs/glib:2
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
@@ -39,6 +40,13 @@ BDEPEND="
MPV_PLUGIN_FILES=( mpris.so )
RESTRICT="!test? ( test )"
src_prepare() {
sed -e 's:-O2 ::' -i Makefile || die "sed Makefile(s) failed"
default
}
src_compile() {
tc-export CC
emake PKG_CONFIG="$(tc-getPKG_CONFIG)"