-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de>
- Loading branch information
Showing
4 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST MuseScore_General-0.2.0.tar.bz2 35122747 BLAKE2B 7f9cafb7912ab8c977842c51df69506d4ad3d1d37498c856978a2d5ab50a1c4fe9145a4807f8c353e6f14138704abb2bbd70c948f1621b494c6e0458c2df0184 SHA512 69eeb22e8c9d1d393a2af857baeb8e49bf2a492651d18190685c74df84a5f6b424e37077e39d9d69c117c4896ea1fbb857eba25a1fbcb6f98d53f384a55713cc | ||
DIST musescore-3.6.2.tar.gz 69077899 BLAKE2B 4562267b2fd6498b0ba1e503a9117c2680035ccdb66f94bbd9b98ef1c37d4f9eb7d8a84cbac7726b67b9c95e4f076aaaf83087f4ded195150c42ec77462d48e8 SHA512 04ff1ddd82358c070640f81bbaa9c47c5da95aa57c56a5d1b975ad984744e0def17d5581da6bbeda1aae1c68470100d104d4f8a39ba33bf37bf8891ffcbf1d6e | ||
DIST musescore-4.0.1-fix-missing-includes.patch 9899 BLAKE2B 5d29d5cefffd890702d3f1ca605e3e0d738d03ccddce6d47cb78736731c45fca972216d4c2b8a860ebd2e2d74cb6e6beb689d705a7868b832d3426a6dd648caa SHA512 028548d824e4a499753c6cf71046d2ac787e421c0ddaaf731fe428b3139d1be233e786b912de95c09756632286e4c0bd36158e2bde6a543394758ba6dd4bd3c7 | ||
DIST musescore-4.0.1.tar.gz 123830145 BLAKE2B 310c94b9b01221db2a0a34ea8a071b0529e31e2e9a7287b873aac876103e120e7af439d10f81f0d1f96b8523b881feb86d4f189ef7467fcdcdffbd0fddd5cae4 SHA512 33f9e3e1809615f37b6574e97a0cdba7c37cac4186abd30e697e8bfa188e8298df1290a9038d4c80b8c2ce3ea080d2ef94cfe54b9556ace20868f5855c93a522 |
29 changes: 29 additions & 0 deletions
29
media-sound/musescore/files/musescore-4.0.1-uncompressed-man-pages.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/build/cmake/SetupAppImagePackaging.cmake | ||
+++ b/build/cmake/SetupAppImagePackaging.cmake | ||
@@ -85,7 +85,7 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE | ||
# Compress man pages if gzip is installed (don't on OpenBSD) | ||
# Note: Compressing man pages is normal on Linux but not OpenBSD | ||
find_program( GZIP_EXECUTABLE gzip DOC "A tool for compressing manpages (optional)." ) | ||
- if (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | ||
+ if (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD" AND false) | ||
message(STATUS "Found 'gzip'. Man pages will be compressed.") | ||
set(MAN_TARGET ${MAN_BUILD}) | ||
set(MAN_EXTENSION ${MAN_EXTENSION}.gz) | ||
@@ -102,7 +102,7 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE | ||
COMMAND echo "Man pages have been compressed ready for installation." | ||
VERBATIM | ||
) | ||
- else (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | ||
+ else (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD" AND false) | ||
if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | ||
message(STATUS "System is OpenBSD: Man pages will not be compressed.") | ||
else (CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | ||
@@ -112,7 +112,7 @@ if (NOT MINGW AND NOT MSVC AND NOT APPLE | ||
COMMAND echo "Man pages will be installed uncompressed." | ||
VERBATIM | ||
) | ||
- endif (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD") | ||
+ endif (GZIP_EXECUTABLE AND NOT CMAKE_SYSTEM_NAME MATCHES "OpenBSD" AND false) | ||
# Install man pages in either compressed or uncompressed form | ||
install( FILES ${MAN_BUILD} DESTINATION share/man/man1 COMPONENT doc) | ||
# Create symlink alias for man pages so `man musescore` = `man mscore` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
#CMAKE_MAKEFILE_GENERATOR="emake" | ||
CHECKREQS_DISK_BUILD=3500M | ||
inherit cmake qmake-utils xdg check-reqs | ||
|
||
if [[ ${PV} == "9999" ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/${PN}/MuseScore.git" | ||
else | ||
SRC_URI=" | ||
https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz | ||
https://github.com/musescore/MuseScore/commit/6cd6ee136c0c3fe09cb58000e967986c0f36c28f.patch -> ${P}-fix-missing-includes.patch | ||
" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
S="${WORKDIR}/MuseScore-${PV}" | ||
fi | ||
|
||
DESCRIPTION="WYSIWYG Music Score Typesetter" | ||
HOMEPAGE="https://musescore.org/" | ||
# MuseScore_General-*.tar.bz2 packaged from https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/ | ||
# It has to be repackaged because the files are not versioned, current version can be found in VERSION file there. | ||
SRC_URI+=" https://dev.gentoo.org/~fordfrog/distfiles/MuseScore_General-0.2.0.tar.bz2" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
IUSE="debug jumbo-build test" | ||
RESTRICT="!test? ( test )" | ||
|
||
BDEPEND=" | ||
dev-qt/linguist-tools:5 | ||
virtual/pkgconfig | ||
" | ||
DEPEND=" | ||
dev-qt/designer:5 | ||
dev-qt/qtconcurrent:5 | ||
dev-qt/qtcore:5 | ||
dev-qt/qtdeclarative:5 | ||
dev-qt/qtgui:5 | ||
dev-qt/qthelp:5 | ||
dev-qt/qtnetwork:5 | ||
dev-qt/qtnetworkauth:5 | ||
dev-qt/qtopengl:5 | ||
dev-qt/qtprintsupport:5 | ||
dev-qt/qtquickcontrols:5 | ||
dev-qt/qtquickcontrols2:5 | ||
>=dev-qt/qtsingleapplication-2.6.1_p20171024[X] | ||
dev-qt/qtsvg:5 | ||
dev-qt/qtxml:5 | ||
dev-qt/qtxmlpatterns:5 | ||
>=media-libs/alsa-lib-1.0.0 | ||
>=media-libs/freetype-2.5.2 | ||
media-libs/libsndfile | ||
sys-libs/zlib:= | ||
" | ||
RDEPEND="${DEPEND}" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${P}-uncompressed-man-pages.patch" | ||
# Backport, remove after 4.0.1 | ||
"${DISTDIR}/${P}-fix-missing-includes.patch" | ||
) | ||
|
||
src_unpack() { | ||
if [[ ${PV} == "9999" ]]; then | ||
git-r3_src_unpack | ||
unpack ${A} | ||
else | ||
default | ||
fi | ||
} | ||
|
||
src_prepare() { | ||
cmake_src_prepare | ||
|
||
# Move soundfonts to the correct directory | ||
mv "${WORKDIR}"/sound/* "${S}"/share/sound/ || die "Failed to move soundfont files" | ||
} | ||
|
||
src_configure() { | ||
# bug #766111 | ||
export PATH="$(qt5_get_bindir):${PATH}" | ||
|
||
local mycmakeargs=( | ||
-DMUSESCORE_BUILD_CONFIG=release | ||
|
||
-DBUILD_CRASHPAD_CLIENT=OFF | ||
-DBUILD_AUTOUPDATE=OFF | ||
# Jack support has been dropped in 4.0.0, | ||
# but its remnants are still in the build system and cause trouble. | ||
# https://github.com/musescore/MuseScore/issues/12775 | ||
-DBUILD_JACK=OFF | ||
-DDOWNLOAD_SOUNDFONT=OFF | ||
-DSOUNDFONT3=ON | ||
-DBUILD_UNIT_TESTS="$(usex test)" | ||
-DCMAKE_SKIP_RPATH=ON | ||
-DTRY_USE_CCACHE=OFF | ||
-DBUILD_UNITY="$(usex jumbo-build)" | ||
-DUSE_SYSTEM_FREETYPE=ON | ||
) | ||
cmake_src_configure | ||
} | ||
|
||
src_compile() { | ||
cd "${BUILD_DIR}" || die | ||
cmake_build -j1 lrelease manpages | ||
cmake_src_compile | ||
} | ||
|
||
src_install() { | ||
cmake_src_install | ||
|
||
# Hack to not install bundled libraries like libogg | ||
rm -rf "${ED}/usr/include" "${ED}/usr/$(get_libdir)" || die | ||
} |