Сравнение musescore-4.0.2 с musescore-9999

/usr/portage/media-sound/musescore/musescore-9999.ebuild 2023-10-09 14:52:31.792368408 +0300
5 5

  
6 6
#CMAKE_MAKEFILE_GENERATOR="emake"
7 7
CHECKREQS_DISK_BUILD=3500M
8
VIRTUALX_REQUIRED="test"
9
inherit cmake qmake-utils xdg check-reqs virtualx
8
inherit cmake qmake-utils xdg check-reqs
10 9

  
11 10
if [[ ${PV} == "9999" ]]; then
12 11
	inherit git-r3
13 12
	EGIT_REPO_URI="https://github.com/${PN}/MuseScore.git"
14 13
else
15
	SRC_URI="
16
		https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz
17
	"
14
	SRC_URI="https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 15
	KEYWORDS="~amd64 ~arm64 ~x86"
19 16
	S="${WORKDIR}/MuseScore-${PV}"
20 17
fi
......
27 24

  
28 25
LICENSE="GPL-2"
29 26
SLOT="0"
30
IUSE="debug jumbo-build test"
27
IUSE="alsa debug jack mp3 osc omr portaudio portmidi pulseaudio +sf3 sfz test webengine"
31 28
RESTRICT="!test? ( test )"
29
REQUIRED_USE="portmidi? ( portaudio )"
32 30

  
33 31
BDEPEND="
34 32
	dev-qt/linguist-tools:5
35 33
	virtual/pkgconfig
36 34
"
37
RDEPEND="
38
	dev-libs/tinyxml2:=
35
DEPEND="
39 36
	dev-qt/designer:5
40 37
	dev-qt/qtconcurrent:5
41 38
	dev-qt/qtcore:5
......
50 47
	dev-qt/qtquickcontrols2:5
51 48
	>=dev-qt/qtsingleapplication-2.6.1_p20171024[X]
52 49
	dev-qt/qtsvg:5
53
	dev-qt/qtx11extras:5
54 50
	dev-qt/qtxml:5
55 51
	dev-qt/qtxmlpatterns:5
56
	>=media-libs/alsa-lib-1.0.0
57
	media-libs/flac:=
58 52
	>=media-libs/freetype-2.5.2
59
	media-libs/libopusenc
60 53
	media-libs/libsndfile
61
	media-libs/opus
62
	media-sound/lame
63 54
	sys-libs/zlib:=
55
	alsa? ( >=media-libs/alsa-lib-1.0.0 )
56
	jack? ( virtual/jack )
57
	mp3? ( media-sound/lame )
58
	omr? ( app-text/poppler )
59
	portaudio? ( media-libs/portaudio )
60
	portmidi? ( media-libs/portmidi )
61
	pulseaudio? ( media-libs/libpulse )
62
	sf3? ( media-libs/libvorbis )
63
	webengine? ( dev-qt/qtwebengine:5[widgets] )
64 64
"
65
# dev-cpp/gtest is required even when tests are disabled!
66
DEPEND="
67
	${RDEPEND}
68

  
69
	dev-cpp/gtest
70
"
71

  
72
PATCHES=(
73
	"${FILESDIR}/${P}-uncompressed-man-pages.patch"
74
	"${FILESDIR}/${P}-unbundle-deps.patch"
75
)
65
RDEPEND="${DEPEND}"
76 66

  
77 67
src_unpack() {
78 68
	if [[ ${PV} == "9999" ]]; then
......
88 78

  
89 79
	# Move soundfonts to the correct directory
90 80
	mv "${WORKDIR}"/sound/* "${S}"/share/sound/ || die "Failed to move soundfont files"
91

  
92
	# Make sure we don't accidentally use bundled third party deps
93
	# for which we want to use system packages instead.
94
	rm -r thirdparty/{flac,freetype,googletest,lame,opus,opusenc} \
95
		|| die "Failed to remove unused thirdparty directories"
96 81
}
97 82

  
98 83
src_configure() {
......
100 85
	export PATH="$(qt5_get_bindir):${PATH}"
101 86

  
102 87
	local mycmakeargs=(
103
		-DMUSESCORE_BUILD_CONFIG=release
104

  
88
		-DAEOLUS=OFF # does not compile
89
		-DBUILD_ALSA="$(usex alsa)"
105 90
		-DBUILD_CRASHPAD_CLIENT=OFF
106
		-DBUILD_AUTOUPDATE=OFF
107
		# Jack support has been dropped in 4.0.0,
108
		# but its remnants are still in the build system and cause trouble.
109
		# https://github.com/musescore/MuseScore/issues/12775
110
		-DBUILD_JACK=OFF
91
		-DBUILD_JACK="$(usex jack)"
92
		-DBUILD_LAME="$(usex mp3)"
93
		-DBUILD_PCH=OFF
94
		-DBUILD_PORTAUDIO="$(usex portaudio)"
95
		-DBUILD_PORTMIDI="$(usex portmidi)"
96
		-DBUILD_PULSEAUDIO="$(usex pulseaudio)"
97
		-DBUILD_TELEMETRY_MODULE=ON
98
		-DBUILD_UNIT_TESTS=$(usex test)
99
		-DBUILD_WEBENGINE="$(usex webengine)"
100
		-DCMAKE_SKIP_RPATH=ON
111 101
		-DDOWNLOAD_SOUNDFONT=OFF
102
		-DHAS_AUDIOFILE=ON
103
		-DOCR=OFF
104
		-DOMR="$(usex omr)"
112 105
		-DSOUNDFONT3=ON
113
		-DBUILD_UNIT_TESTS="$(usex test)"
114
		-DCMAKE_SKIP_RPATH=ON
115 106
		-DTRY_USE_CCACHE=OFF
116
		-DBUILD_UNITY="$(usex jumbo-build)"
107
		-DZERBERUS="$(usex sfz)"
108
		-DUSE_PATH_WITH_EXPLICIT_QT_VERSION=ON
117 109
		-DUSE_SYSTEM_FREETYPE=ON
110
		-DUSE_SYSTEM_POPPLER=ON
111
		-DUSE_SYSTEM_QTSINGLEAPPLICATION=ON
118 112
	)
119 113
	cmake_src_configure
120 114
}
......
125 119
	cmake_src_compile
126 120
}
127 121

  
128
src_test() {
129
	virtx cmake_src_test
130
}
131

  
132 122
src_install() {
133 123
	cmake_src_install
134 124

  
Спасибо!