summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2020-04-02 14:59:15 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2020-04-02 14:59:38 +0200
commit5c1b9f407d0ac6513c4215dd8ab43e041b5f4069 (patch)
treedd93b693abbfb78b6fc6b192713951eebdfba510
parentsys-kernel/gentoo-sources: Linux patch 5.6.2. Removal of redundant patch (diff)
downloadgentoo-5c1b9f407d0ac6513c4215dd8ab43e041b5f4069.tar.gz
gentoo-5c1b9f407d0ac6513c4215dd8ab43e041b5f4069.tar.bz2
gentoo-5c1b9f407d0ac6513c4215dd8ab43e041b5f4069.zip
media-sound/musescore: fixed compilation for 9999
Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r--media-sound/musescore/files/musescore-9999-lambda-capture-this.patch13
-rw-r--r--media-sound/musescore/musescore-9999.ebuild1
2 files changed, 14 insertions, 0 deletions
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() {