From 75760867b56172fabfb5dee516c8e9ca500c814e Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Wed, 21 Dec 2022 23:42:08 +0100 Subject: [PATCH] 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 --- ...v-mpris-0.9-r1.ebuild => mpv-mpris-0.9-r2.ebuild} | 5 +++++ mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) rename mpv-plugin/mpv-mpris/{mpv-mpris-0.9-r1.ebuild => mpv-mpris-0.9-r2.ebuild} (91%) diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-0.9-r1.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-0.9-r2.ebuild similarity index 91% rename from mpv-plugin/mpv-mpris/mpv-mpris-0.9-r1.ebuild rename to mpv-plugin/mpv-mpris/mpv-mpris-0.9-r2.ebuild index a9bcf1de18..f5ef84c625 100644 --- a/mpv-plugin/mpv-mpris/mpv-mpris-0.9-r1.ebuild +++ b/mpv-plugin/mpv-mpris/mpv-mpris-0.9-r2.ebuild @@ -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)" diff --git a/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild b/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild index 33adfb1da8..f5ef84c625 100644 --- a/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild +++ b/mpv-plugin/mpv-mpris/mpv-mpris-9999.ebuild @@ -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)"