diff options
Diffstat (limited to 'media-sound/musescore/musescore-9999.ebuild')
-rw-r--r-- | media-sound/musescore/musescore-9999.ebuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/media-sound/musescore/musescore-9999.ebuild b/media-sound/musescore/musescore-9999.ebuild index 051ffdcc6ae9..cd2dec78e2d4 100644 --- a/media-sound/musescore/musescore-9999.ebuild +++ b/media-sound/musescore/musescore-9999.ebuild @@ -1,14 +1,17 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit cmake-utils git-r3 xdg-utils +CMAKE_MIN_VERSION="3.11" +inherit git-r3 cmake-utils xdg-utils gnome2-utils DESCRIPTION="WYSIWYG Music Score Typesetter" HOMEPAGE="https://musescore.org/" +# MuseScore_General-0.1.3.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.1.3.tar.bz2" EGIT_REPO_URI="https://github.com/${PN}/MuseScore.git" -SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}-fix-buildsystem.patch.bz2" LICENSE="GPL-2" SLOT="0" @@ -47,16 +50,26 @@ DEPEND="${RDEPEND} " PATCHES=( - "${WORKDIR}/${P}-fix-buildsystem.patch" + "${FILESDIR}/${PN}-3.0.1-man-pages.patch" + "${FILESDIR}/${PN}-3.0.1-porttime.patch" ) src_unpack() { git-r3_src_unpack - default_src_unpack + unpack ${A} +} + +src_prepare() { + cmake-utils_src_prepare + + # Move soundfonts to the correct directory + mv "${WORKDIR}"/sound/* "${S}"/share/sound/ || die "Failed to move soundfont files" } src_configure() { local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DDOWNLOAD_SOUNDFONT=OFF -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON -DUSE_PATH_WITH_EXPLICIT_QT_VERSION=ON -DUSE_SYSTEM_FREETYPE=ON @@ -67,7 +80,7 @@ src_configure() { -DBUILD_PORTMIDI="$(usex portmidi)" -DBUILD_PULSEAUDIO="$(usex pulseaudio)" -DSOUNDFONT3="$(usex vorbis)" - -DBUILD_WEBEBENGINE="$(usex webengine)" + -DBUILD_WEBENGINE="$(usex webengine)" ) cmake-utils_src_configure } @@ -81,9 +94,11 @@ src_compile() { pkg_postinst() { xdg_mimeinfo_database_update xdg_desktop_database_update + gnome2_icon_cache_update } pkg_postrm() { xdg_mimeinfo_database_update xdg_desktop_database_update + gnome2_icon_cache_update } |