diff options
author | Sam James <sam@gentoo.org> | 2022-06-02 03:52:05 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-02 03:59:59 +0100 |
commit | da2fd474f20d6540338e651e1ea7f17196bff974 (patch) | |
tree | 29148113d3e1569a8e035acae3156fe8dc5c19b2 /media-sound/musescore | |
parent | media-sound/musescore: fix finding qmake (diff) | |
download | gentoo-da2fd474f20d6540338e651e1ea7f17196bff974.tar.gz gentoo-da2fd474f20d6540338e651e1ea7f17196bff974.tar.bz2 gentoo-da2fd474f20d6540338e651e1ea7f17196bff974.zip |
media-sound/musescore: disable PCH (and ccache automagic in live)
PCH is buggy and we disable it where possible in Gentoo. As for ccache, automagic
usage isn't correct, and users can enable it properly via e.g. FEATURES.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/musescore')
-rw-r--r-- | media-sound/musescore/musescore-3.6.2-r1.ebuild | 121 | ||||
-rw-r--r-- | media-sound/musescore/musescore-9999.ebuild | 3 |
2 files changed, 123 insertions, 1 deletions
diff --git a/media-sound/musescore/musescore-3.6.2-r1.ebuild b/media-sound/musescore/musescore-3.6.2-r1.ebuild new file mode 100644 index 000000000000..d9fdbd5e6e56 --- /dev/null +++ b/media-sound/musescore/musescore-3.6.2-r1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + 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="alsa debug jack mp3 osc omr portaudio portmidi pulseaudio +sf3 sfz webengine" +REQUIRED_USE="portmidi? ( portaudio )" + +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/qtopengl:5 + dev-qt/qtprintsupport: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/freetype-2.5.2 + media-libs/libsndfile + sys-libs/zlib:= + alsa? ( >=media-libs/alsa-lib-1.0.0 ) + jack? ( virtual/jack ) + mp3? ( media-sound/lame ) + omr? ( app-text/poppler ) + portaudio? ( media-libs/portaudio ) + portmidi? ( media-libs/portmidi ) + pulseaudio? ( media-sound/pulseaudio ) + sf3? ( media-libs/libvorbis ) + webengine? ( dev-qt/qtwebengine:5[widgets] ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-3.0.1-man-pages.patch" + "${FILESDIR}/${PN}-3.6.1-rename-audioitem.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=( + -DAEOLUS=OFF # does not compile + -DBUILD_ALSA="$(usex alsa)" + -DBUILD_CRASH_REPORTER=OFF + -DBUILD_JACK="$(usex jack)" + -DBUILD_LAME="$(usex mp3)" + -DBUILD_PCH=OFF + -DBUILD_PORTAUDIO="$(usex portaudio)" + -DBUILD_PORTMIDI="$(usex portmidi)" + -DBUILD_PULSEAUDIO="$(usex pulseaudio)" + -DBUILD_SHARED_LIBS=ON + -DBUILD_TELEMETRY_MODULE=ON + -DBUILD_WEBENGINE="$(usex webengine)" + -DCMAKE_SKIP_RPATH=ON + -DDOWNLOAD_SOUNDFONT=OFF + -DHAS_AUDIOFILE=ON + -DOCR=OFF + -DOMR="$(usex omr)" + -DSOUNDFONT3=ON + -DZERBERUS="$(usex sfz)" + -DUSE_PATH_WITH_EXPLICIT_QT_VERSION=ON + -DUSE_SYSTEM_FREETYPE=ON + -DUSE_SYSTEM_POPPLER=ON + -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON + ) + cmake_src_configure +} + +src_compile() { + cd "${BUILD_DIR}" || die + cmake_build -j1 lrelease manpages + cmake_src_compile +} diff --git a/media-sound/musescore/musescore-9999.ebuild b/media-sound/musescore/musescore-9999.ebuild index c7f38acd5608..d2e8794771d9 100644 --- a/media-sound/musescore/musescore-9999.ebuild +++ b/media-sound/musescore/musescore-9999.ebuild @@ -88,7 +88,7 @@ src_configure() { -DBUILD_CRASH_REPORTER=OFF -DBUILD_JACK="$(usex jack)" -DBUILD_LAME="$(usex mp3)" - -DBUILD_PCH=ON + -DBUILD_PCH=OFF -DBUILD_PORTAUDIO="$(usex portaudio)" -DBUILD_PORTMIDI="$(usex portmidi)" -DBUILD_PULSEAUDIO="$(usex pulseaudio)" @@ -101,6 +101,7 @@ src_configure() { -DOCR=OFF -DOMR="$(usex omr)" -DSOUNDFONT3=ON + -DTRY_USE_CCACHE=OFF -DZERBERUS="$(usex sfz)" -DUSE_PATH_WITH_EXPLICIT_QT_VERSION=ON -DUSE_SYSTEM_FREETYPE=ON |