commit:     75760867b56172fabfb5dee516c8e9ca500c814e
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Wed Dec 21 22:42:08 2022 +0000
Commit:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Wed Dec 21 22:42:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=75760867

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 <AT> googlemail.com>

 .../{mpv-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(-)

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 a9bcf1de1..f5ef84c62 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 33adfb1da..f5ef84c62 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)"

Reply via email to