From: Miroslav Šulc Date: Thu, 2 Apr 2020 12:59:15 +0000 (+0200) Subject: media-sound/musescore: fixed compilation for 9999 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5c1b9f407d0ac6513c4215dd8ab43e041b5f4069;p=gentoo.git media-sound/musescore: fixed compilation for 9999 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Miroslav Šulc --- diff --git a/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch b/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch new file mode 100644 index 000000000000..c0bb7083324d --- /dev/null +++ b/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch @@ -0,0 +1,13 @@ +diff --git a/mscore/scoreview.cpp b/mscore/scoreview.cpp +index 9804e1f32..83e0c0e47 100644 +--- a/mscore/scoreview.cpp ++++ b/mscore/scoreview.cpp +@@ -2405,7 +2405,7 @@ void ScoreView::cmd(const char* s) + cv->updateGrips(); + }}, + #ifdef OMR +- {{"show-omr"}, [](ScoreView* cv, const QByteArray&) { ++ {{"show-omr"}, [&](ScoreView* cv, const QByteArray&) { + if (cv->score()->masterScore()->omr()) + showOmr(!_score->masterScore()->showOmr()); + }}, diff --git a/media-sound/musescore/musescore-9999.ebuild b/media-sound/musescore/musescore-9999.ebuild index 89e66d393cfd..d6ea4938d868 100644 --- a/media-sound/musescore/musescore-9999.ebuild +++ b/media-sound/musescore/musescore-9999.ebuild @@ -55,6 +55,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-3.0.1-man-pages.patch" + "${FILESDIR}/${P}-lambda-capture-this.patch" ) src_unpack() {