diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-24 01:50:05 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-24 01:50:28 +0100 |
commit | c06a62f24c1a4edffc64833984a41ce6596345bc (patch) | |
tree | 9212e8e4422bdd3056ab2a891c481ba7884e261c /media-sound/musescore | |
parent | sys-fs/unionfs-fuse: Use slotted sys-fs/fuse dep (diff) | |
download | gentoo-c06a62f24c1a4edffc64833984a41ce6596345bc.tar.gz gentoo-c06a62f24c1a4edffc64833984a41ce6596345bc.tar.bz2 gentoo-c06a62f24c1a4edffc64833984a41ce6596345bc.zip |
media-sound/musescore: Fix build with Qt 5.12
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/musescore')
-rw-r--r-- | media-sound/musescore/files/musescore-2.1.0-pch.patch | 2 | ||||
-rw-r--r-- | media-sound/musescore/files/musescore-2.1.0-qt-5.12.patch | 48 | ||||
-rw-r--r-- | media-sound/musescore/musescore-2.1.0-r1.ebuild | 3 |
3 files changed, 51 insertions, 2 deletions
diff --git a/media-sound/musescore/files/musescore-2.1.0-pch.patch b/media-sound/musescore/files/musescore-2.1.0-pch.patch index d69d1cd2f654..6cce1bd81cfe 100644 --- a/media-sound/musescore/files/musescore-2.1.0-pch.patch +++ b/media-sound/musescore/files/musescore-2.1.0-pch.patch @@ -28,4 +28,4 @@ index 66b0ddfce8..7fdfffcc9b 100644 + COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/all.h ${PROJECT_BINARY_DIR}/all.h WORKING_DIRECTORY ${PROJECT_BINARY_DIR} ) -
\ No newline at end of file + diff --git a/media-sound/musescore/files/musescore-2.1.0-qt-5.12.patch b/media-sound/musescore/files/musescore-2.1.0-qt-5.12.patch new file mode 100644 index 000000000000..9d9a1cca7ef0 --- /dev/null +++ b/media-sound/musescore/files/musescore-2.1.0-qt-5.12.patch @@ -0,0 +1,48 @@ +From ff014657939f30c0052a1d2d66d87d13833c5255 Mon Sep 17 00:00:00 2001 +From: Joachim Schmitz <jojo@schmitz-digital.de> +Date: Tue, 18 Sep 2018 14:42:43 +0200 +Subject: [PATCH] changes needed for MuseScore to build with Qt 5.12 (Alpha) + +One needed for MSVC only (and only since Alpha, not with the previous +preview), the other needed for MSVC and MinGW. +Neither seems to cause issues with Qt 5.9 (like AppVeyor and Travis CI +prove) +--- + mscore/editstringdata.cpp | 4 ++-- + mscore/prefsdialog.ui | 1 - + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/mscore/editstringdata.cpp b/mscore/editstringdata.cpp +index 21a621bac0..a86207e5db 100644 +--- a/mscore/editstringdata.cpp ++++ b/mscore/editstringdata.cpp +@@ -52,7 +52,7 @@ EditStringData::EditStringData(QWidget *parent, QList<instrString> * strings, in + strg = (*_strings)[numOfStrings - i - 1]; + _stringsLoc.append(strg); + QTableWidgetItem *newCheck = new QTableWidgetItem(); +- newCheck->setFlags(Qt::ItemFlag(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled)); ++ newCheck->setFlags(Qt::ItemFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled)); + newCheck->setCheckState(strg.open ? Qt::Checked : Qt::Unchecked); + stringList->setItem(i, 0, newCheck); + QTableWidgetItem *newPitch = new QTableWidgetItem(midiCodeToStr(strg.pitch)); +@@ -168,7 +168,7 @@ void EditStringData::newStringClicked() + _stringsLoc.insert(i, strg); + stringList->insertRow(i); + QTableWidgetItem *newCheck = new QTableWidgetItem(); +- newCheck->setFlags(Qt::ItemFlag(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled)); ++ newCheck->setFlags(Qt::ItemFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled)); + newCheck->setCheckState(strg.open ? Qt::Checked : Qt::Unchecked); + stringList->setItem(i, 0, newCheck); + QTableWidgetItem *newPitch = new QTableWidgetItem(midiCodeToStr(strg.pitch)); +diff --git a/mscore/prefsdialog.ui b/mscore/prefsdialog.ui +index 5dd493fdc7..21af750846 100644 +--- a/mscore/prefsdialog.ui ++++ b/mscore/prefsdialog.ui +@@ -4276,7 +4276,6 @@ Adjusting latency can help synchronize your MIDI hardware with MuseScore's inter + </item> + </layout> + </widget> +- <pixmapfunction>getPixmap</pixmapfunction> + <customwidgets> + <customwidget> + <class>Awl::ColorLabel</class> diff --git a/media-sound/musescore/musescore-2.1.0-r1.ebuild b/media-sound/musescore/musescore-2.1.0-r1.ebuild index 56805b5d0079..d2c6bf1f0939 100644 --- a/media-sound/musescore/musescore-2.1.0-r1.ebuild +++ b/media-sound/musescore/musescore-2.1.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -51,6 +51,7 @@ PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" "${FILESDIR}/${P}-qtsingleapplication.patch" "${FILESDIR}/${P}-pch.patch" + "${FILESDIR}/${P}-qt-5.12.patch" ) S="${WORKDIR}/MuseScore-${PV}" |