summaryrefslogtreecommitdiff
path: root/audio/musescore/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-03-13 07:46:10 +0000
committerwiz <wiz@pkgsrc.org>2020-03-13 07:46:10 +0000
commit23afa6e6bd9d844f8eec4b5965a705715f8914f8 (patch)
treeb220c54a124aed57cfc3712425339aa52e658a36 /audio/musescore/patches
parent31b6a8fbb62f9f4b34ce878aec20d9b66e80206e (diff)
downloadpkgsrc-23afa6e6bd9d844f8eec4b5965a705715f8914f8.tar.gz
musescore: fix unportable test(1) operator.
Diffstat (limited to 'audio/musescore/patches')
-rw-r--r--audio/musescore/patches/patch-CMakeLists.txt11
-rw-r--r--audio/musescore/patches/patch-build_Linux+BSD_portable_portable-utils.in78
2 files changed, 88 insertions, 1 deletions
diff --git a/audio/musescore/patches/patch-CMakeLists.txt b/audio/musescore/patches/patch-CMakeLists.txt
index 9338523f3d8..e32b4e04968 100644
--- a/audio/musescore/patches/patch-CMakeLists.txt
+++ b/audio/musescore/patches/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
-$NetBSD: patch-CMakeLists.txt,v 1.2 2020/02/19 03:00:21 gutteridge Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.3 2020/03/13 07:46:11 wiz Exp $
Never compress man pages.
@@ -9,6 +9,15 @@ https://github.com/musescore/MuseScore/pull/5732
--- CMakeLists.txt.orig 2020-02-06 21:10:58.000000000 +0000
+++ CMakeLists.txt
+@@ -83,7 +83,7 @@ else (SCRIPT_INTERFACE)
+ SET(QT_MIN_VERSION "5.7.0")
+ endif (SCRIPT_INTERFACE)
+ # Include modules
+-set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build" ${CMAKE_MODULE_PATH})
++set (CMAKE_MODULE_PATH "/scratch/audio/musescore/work/.buildlink/cmake-Modules" "${CMAKE_CURRENT_SOURCE_DIR}/build" ${CMAKE_MODULE_PATH})
+ include (FindQt5)
+ include (UsePkgConfig1) # Defines MACRO(PKGCONFIG1 _package _minVersion _include_DIR _link_DIR _link_FLAGS _cflags)
+ include (FindPulseAudio)
@@ -385,7 +385,7 @@ endif(BUILD_FOR_WINSTORE)
if (USE_SYSTEM_FREETYPE)
diff --git a/audio/musescore/patches/patch-build_Linux+BSD_portable_portable-utils.in b/audio/musescore/patches/patch-build_Linux+BSD_portable_portable-utils.in
new file mode 100644
index 00000000000..ffa82517c43
--- /dev/null
+++ b/audio/musescore/patches/patch-build_Linux+BSD_portable_portable-utils.in
@@ -0,0 +1,78 @@
+$NetBSD: patch-build_Linux+BSD_portable_portable-utils.in,v 1.1 2020/03/13 07:46:11 wiz Exp $
+
+Fix unportable test(1) operator.
+
+--- build/Linux+BSD/portable/portable-utils.in.orig 2020-02-06 21:10:58.000000000 +0000
++++ build/Linux+BSD/portable/portable-utils.in
+@@ -51,7 +51,7 @@ EOF
+ function printVersion() {
+ local pretty=$(sed -rn "s|^Name=([^#]*)|\1|p" "${APPDIR}/mscore@MSCORE_INSTALL_SUFFIX@.desktop")
+ local long=$("${APPDIR}/bin/mscore@MSCORE_INSTALL_SUFFIX@" --long-version 2>&1 | tail -n 1)
+- if [ "$1" == "centered" ]; then
++ if [ "$1" = "centered" ]; then
+ printf "%*s\n" "$(((${#pretty}+80)/2))" "$pretty"
+ printf "%*s\n" "$(((${#long}+80)/2))" "$long"
+ return
+@@ -62,7 +62,7 @@ function printVersion() {
+
+ function readYes() {
+ read -s -n 1 answer
+- if [ "$answer" == "n" ] || [ "$answer" == "N" ] ; then
++ if [ "$answer" = "n" ] || [ "$answer" = "N" ] ; then
+ echo " N"
+ return 1
+ fi
+@@ -72,9 +72,9 @@ function readYes() {
+
+ function installResources() {
+ local interactive=""
+- if [ "$2" == "-i" ]; then
++ if [ "$2" = "-i" ]; then
+ interactive=true
+- elif [ "$1" == "-i" ]; then
++ elif [ "$1" = "-i" ]; then
+ interactive=true
+ shift
+ fi
+@@ -85,7 +85,7 @@ function installResources() {
+ local bin_str="PREFIX/bin"
+ local question="The default location might be better. Proceed anyway [Y/n]?"
+ local cancelled="Cancelled: rerun without a PREFIX to use the default."
+- elif [ "${EUID}" == "0" ]; then
++ elif [ "${EUID}" = "0" ]; then
+ # Running as root (sudo)
+ local prefix="/usr/local"
+ local bin="$prefix/bin"
+@@ -198,12 +198,12 @@ EOF
+ }
+
+ function removeResources() {
+- [ "$1" == "-i" ] && shift # ignore option. Remove is always interactive
++ [ "$1" = "-i" ] && shift # ignore option. Remove is always interactive
+ if [ "$1" != "" ]; then
+ # User specified a directory
+ prefix="$1"
+ echo -n "Remove resources from ${prefix} [Y/n]?"
+- elif [ "${EUID}" == "0" ]; then
++ elif [ "${EUID}" = "0" ]; then
+ prefix=/usr/local
+ echo -n "Running as root. Remove MuseScore resources from '$prefix' for all users [Y/n]?"
+ else
+@@ -235,7 +235,7 @@ function checkDependencies() {
+
+ echo "AppImage contains ${num_exes} executables and ${num_libs} libraries." >&2
+
+- if [ "$1" == "exes-only" ]; then
++ if [ "$1" = "exes-only" ]; then
+ echo "Checking dependencies for executables..." >&2
+ include_libs=""
+ num_includes="${num_exes}"
+@@ -317,7 +317,7 @@ $1. Things to check:
+ - do the files and/or directories exist?
+ - do you have the right privileges?
+ EOF
+-[ "$2" == "fatal" ] && echo "Error: $1. Terminating." && exit 1
++[ "$2" = "fatal" ] && echo "Error: $1. Terminating." && exit 1
+ }
+
+ main "$@" || exit 1