diff options
Diffstat (limited to 'media-sound/musescore/musescore-9999.ebuild')
-rw-r--r-- | media-sound/musescore/musescore-9999.ebuild | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/media-sound/musescore/musescore-9999.ebuild b/media-sound/musescore/musescore-9999.ebuild index 09988cf9c632..051ffdcc6ae9 100644 --- a/media-sound/musescore/musescore-9999.ebuild +++ b/media-sound/musescore/musescore-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit cmake-utils git-r3 +inherit cmake-utils git-r3 xdg-utils DESCRIPTION="WYSIWYG Music Score Typesetter" HOMEPAGE="https://musescore.org/" @@ -13,7 +13,7 @@ SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}-fix-buildsystem.patch.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio" +IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio vorbis webengine" REQUIRED_USE="portmidi? ( portaudio )" RDEPEND=" @@ -23,24 +23,29 @@ RDEPEND=" dev-qt/qtdeclarative:5 dev-qt/qtgui:5 dev-qt/qthelp:5 + dev-qt/qtnetwork:5 dev-qt/qtprintsupport:5 + >=dev-qt/qtsingleapplication-2.6.1_p20171024 dev-qt/qtsvg:5 - dev-qt/qtwebkit:5 + dev-qt/qtxml:5 dev-qt/qtxmlpatterns:5 >=media-libs/freetype-2.5.2 media-libs/libsndfile - sys-libs/zlib + sys-libs/zlib:= alsa? ( >=media-libs/alsa-lib-1.0.0 ) jack? ( virtual/jack ) mp3? ( media-sound/lame ) portaudio? ( media-libs/portaudio ) portmidi? ( media-libs/portmidi ) pulseaudio? ( media-sound/pulseaudio ) - " + vorbis? ( media-libs/libvorbis ) + webengine? ( dev-qt/qtwebengine:5[widgets] ) +" DEPEND="${RDEPEND} dev-qt/linguist-tools:5 virtual/pkgconfig - " +" + PATCHES=( "${WORKDIR}/${P}-fix-buildsystem.patch" ) @@ -52,12 +57,17 @@ src_unpack() { src_configure() { local mycmakeargs=( + -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON + -DUSE_PATH_WITH_EXPLICIT_QT_VERSION=ON + -DUSE_SYSTEM_FREETYPE=ON -DBUILD_ALSA="$(usex alsa)" -DBUILD_JACK="$(usex jack)" -DBUILD_LAME="$(usex mp3)" -DBUILD_PORTAUDIO="$(usex portaudio)" -DBUILD_PORTMIDI="$(usex portmidi)" -DBUILD_PULSEAUDIO="$(usex pulseaudio)" + -DSOUNDFONT3="$(usex vorbis)" + -DBUILD_WEBEBENGINE="$(usex webengine)" ) cmake-utils_src_configure } @@ -67,3 +77,13 @@ src_compile() { cmake-utils_src_make -j1 lrelease manpages cmake-utils_src_compile } + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |