diff options
-rw-r--r-- | media-sound/musescore/Manifest | 1 | ||||
-rw-r--r-- | media-sound/musescore/files/musescore-3.0.1-porttime.patch | 13 | ||||
-rw-r--r-- | media-sound/musescore/musescore-3.0.1.ebuild | 96 |
3 files changed, 110 insertions, 0 deletions
diff --git a/media-sound/musescore/Manifest b/media-sound/musescore/Manifest index e8a7c31de1d5..e3aa6440e5a6 100644 --- a/media-sound/musescore/Manifest +++ b/media-sound/musescore/Manifest @@ -1,3 +1,4 @@ DIST musescore-2.1.0-fix-buildsystem.patch.bz2 3736 BLAKE2B da2b1fa72c6fb59ff3d969ac8cf088bf034313ec8fe584f5f5fe335c7fd663a8f078d4d12a2ad439a086665384cfe7b24901c80707dd80403e1cdac1c2ebef1a SHA512 5f712ec046c0f53c24d61b43c79cd5e3e604c499ca95f47c79f29c5442b54d1867f699ea689de9328b5bece432ddaa4da557328ed6d069347870eba8e8695ffc DIST musescore-2.1.0.tar.gz 51131549 BLAKE2B 208377e786b83122402140bad2a9ac024d56a66316c74f52b7ca4d71f3dec9f91c3f0a7dd1b1c92e2bd5a81a63722593c2b41ac5f7af5dcb712e5de078df8852 SHA512 c8696685713cd4c4943f1ec2b69a6a93217449fa330105ed1ffb569918af293c1d6ef19cabe1e487f65ceadf27dff78185e286e82ac4517cd2b4de594a67beb2 +DIST musescore-3.0.1.tar.gz 60166011 BLAKE2B 8c8d1d063da9f14e21342313b58acffb88c375e42e2689bc572eb885be0d836cc946676482f0e58f95a773cc95ead5d767cc7a1052663389a0daad663844e1d9 SHA512 d480550b2c04c07f610d0ed7515a561fbb11a5b1af724e548827bb3817b586c78e5e9ee75730f5885c3f6ba076da52ef53713f10a9e3591e9a40a168af38d46d DIST musescore-9999-fix-buildsystem.patch.bz2 4019 BLAKE2B 0a80141d36fe8cf1bb4ac92f330c0b401a8686fa661b02842f49ee67d5fdeef339ae6909091637e22c81dddfa128b884c9bdaecdc540274896251424b40b78ae SHA512 6ac113314e3dc93856002df5b89f86728873869075db5e2b99f29f6b69c5ddbd178f89305656370b09d8180eb44b7a56623f06a8e674a522390c8dc59e32ad89 diff --git a/media-sound/musescore/files/musescore-3.0.1-porttime.patch b/media-sound/musescore/files/musescore-3.0.1-porttime.patch new file mode 100644 index 000000000000..b9bddf1d9d97 --- /dev/null +++ b/media-sound/musescore/files/musescore-3.0.1-porttime.patch @@ -0,0 +1,13 @@ +diff --git a/mscore/CMakeLists.txt b/mscore/CMakeLists.txt +index fcf9332..59db47a 100644 +--- a/mscore/CMakeLists.txt ++++ b/mscore/CMakeLists.txt +@@ -715,7 +715,7 @@ else (MINGW) + if (APPLE) + set(PORTMIDI_LIB portmidi) + else (APPLE) +- set(PORTMIDI_LIB -lportmidi -lporttime) # Remove -lporttime on RPM-based systems where PortTime is part of PortMidi. ++ set(PORTMIDI_LIB -lportmidi) # Remove -lporttime on RPM-based systems where PortTime is part of PortMidi. + endif (APPLE) + target_link_libraries(mscore ${PORTMIDI_LIB}) + endif (USE_PORTMIDI) diff --git a/media-sound/musescore/musescore-3.0.1.ebuild b/media-sound/musescore/musescore-3.0.1.ebuild new file mode 100644 index 000000000000..bbb6c5744c77 --- /dev/null +++ b/media-sound/musescore/musescore-3.0.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils xdg-utils gnome2-utils + +DESCRIPTION="WYSIWYG Music Score Typesetter" +HOMEPAGE="https://musescore.org/" +SRC_URI="https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio vorbis webengine" +REQUIRED_USE="portmidi? ( portaudio )" + +RDEPEND=" + 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/qtprintsupport:5 + >=dev-qt/qtsingleapplication-2.6.1_p20171024 + 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 ) + 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=( + "${FILESDIR}/${P}-porttime.patch" +) + +S="${WORKDIR}/MuseScore-${PV}" + +src_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -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_WEBENGINE="$(usex webengine)" + ) + cmake-utils_src_configure +} + +src_compile() { + cd "${BUILD_DIR}" || die + cmake-utils_src_make -j1 lrelease manpages + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + # Fix man page symlink + rm "${D}"/usr/share/man/man1/musescore.1.gz || die "Failed to remove man broken symlink" + dosym ${PN}.1.bz2 /usr/share/man/man1/mscore.1.bz2 || die "Failed to create man symlink" +} + +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 +} |