Сравнение mixxx-2.3.9999 с mixxx-9999

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

  
6 6
inherit cmake xdg udev
7 7

  
8
MY_PV=$(ver_cut 1-2)
9 8
DESCRIPTION="Advanced Digital DJ tool based on Qt"
10 9
HOMEPAGE="https://mixxx.org/"
11 10
if [[ ${PV} == *9999 ]] ; then
......
15 14
	fi
16 15
	EGIT_REPO_URI="https://github.com/mixxxdj/${PN}.git"
17 16
else
18
	SRC_URI="https://github.com/mixxxdj/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
19
	#S="${WORKDIR}/${PN}-release-${PV}"
17
	SRC_URI="https://github.com/mixxxdj/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
18
	S="${WORKDIR}/${PN}-release-${PV}"
20 19
	KEYWORDS="~amd64 ~x86"
21 20
fi
21

  
22 22
LICENSE="GPL-2"
23 23
SLOT="0"
24
IUSE="aac ffmpeg hid keyfinder lv2 modplug mp3 mp4 opus qtkeychain shout wavpack"
24
IUSE="aac doc ffmpeg hid keyfinder lv2 mp3 mp4 opus qtkeychain shout wavpack"
25 25

  
26 26
RDEPEND="
27 27
	dev-db/sqlite
28 28
	dev-libs/glib:2
29 29
	dev-libs/protobuf:=
30
	dev-qt/qtconcurrent:5
30 31
	dev-qt/qtcore:5
31 32
	dev-qt/qtdbus:5
32 33
	dev-qt/qtgui:5
......
46 47
	media-libs/libsndfile
47 48
	media-libs/libsoundtouch
48 49
	media-libs/libvorbis
49
	media-libs/portaudio[alsa]
50
	media-libs/portaudio
50 51
	media-libs/portmidi
51 52
	media-libs/rubberband
52 53
	media-libs/taglib
53 54
	media-libs/vamp-plugin-sdk
54
	media-sound/lame
55 55
	sci-libs/fftw:3.0=
56 56
	sys-power/upower
57 57
	virtual/glu
......
67 67
	hid? ( dev-libs/hidapi )
68 68
	keyfinder? ( media-libs/libkeyfinder )
69 69
	lv2? ( media-libs/lilv )
70
	modplug? ( media-libs/libmodplug )
71 70
	mp3? ( media-libs/libmad )
72 71
	mp4? ( media-libs/libmp4v2:= )
73 72
	opus? (	media-libs/opusfile )
74 73
	qtkeychain? ( dev-libs/qtkeychain:=[qt5(+)] )
74
	shout? ( >=media-libs/libshout-2.4.5 )
75 75
	wavpack? ( media-sound/wavpack )
76 76
"
77
	# libshout-idjc-2.4.6 is required. Please check and re-add once it's
78
	# available in ::gentoo
79
	# Meanwhile we're using the bundled libshout-idjc. See bug #775443
80
	#shout? ( >=media-libs/libshout-idjc-2.4.6 )
81

  
82 77
DEPEND="${RDEPEND}
83
	dev-qt/qtconcurrent:5
78
	dev-cpp/ms-gsl
84 79
"
85 80
BDEPEND="
86 81
	dev-qt/qttest:5
......
92 87
	"${FILESDIR}"/${PN}-9999-docs.patch
93 88
)
94 89

  
95
PLOCALES="
96
	ca cs de en es fi fr gl id it ja kn nl pl pt ro ru sl sq sr tr zh-CN zh-TW
97
"
98

  
99
mixxx_set_globals() {
100
	local lang
101
	local MANUAL_URI_BASE="https://downloads.mixxx.org/manual/${MY_PV}"
102
	for lang in ${PLOCALES} ; do
103
		SRC_URI+=" l10n_${lang}? ( ${MANUAL_URI_BASE}/${PN}-manual-${MY_PV}-${lang/ja/ja-JP}.pdf )"
104
		IUSE+=" l10n_${lang/ en/ +en}"
105
	done
106
	SRC_URI+=" ${MANUAL_URI_BASE}/${PN}-manual-${MY_PV}-en.pdf"
107
}
108
mixxx_set_globals
109

  
110 90
src_configure() {
111 91
	local mycmakeargs=(
112
		# Not available on Linux yet and requires additional deps
113
		-DBATTERY="off"
114
		-DBROADCAST="$(usex shout on off)"
115
		-DCCACHE_SUPPORT="off"
116 92
		-DFAAD="$(usex aac on off)"
117 93
		-DFFMPEG="$(usex ffmpeg on off)"
118 94
		-DHID="$(usex hid on off)"
119
		-DINSTALL_USER_UDEV_RULES=OFF
120
		-DKEYFINDER="$(usex keyfinder on off)"
121 95
		-DLILV="$(usex lv2 on off)"
122 96
		-DMAD="$(usex mp3 on off)"
123
		-DMODPLUG="$(usex modplug on off)"
124 97
		-DOPTIMIZE="off"
98
		-DCCACHE_SUPPORT="off"
125 99
		-DOPUS="$(usex opus on off)"
126
		-DQTKEYCHAIN="$(usex qtkeychain on off)"
100
		-DBROADCAST="$(usex shout on off)"
127 101
		-DVINYLCONTROL="on"
102
		-DINSTALL_USER_UDEV_RULES=OFF
128 103
		-DWAVPACK="$(usex wavpack on off)"
104
		-DQTKEYCHAIN="$(usex qtkeychain on off)"
105
		-DKEYFINDER="$(usex keyfinder on off)"
106
		-DDOWNLOAD_MANUAL=OFF
107
		-DBUILD_SHARED_LIBS=OFF
129 108
	)
130 109

  
131 110
	if [[ ${PV} == 9999 ]] ; then
......
139 118
src_install() {
140 119
	cmake_src_install
141 120
	udev_newrules "${S}"/res/linux/mixxx-usb-uaccess.rules 69-mixxx-usb-uaccess.rules
142
	dodoc README.md CHANGELOG.md
143
	local locale
144
	for locale in ${PLOCALES} ; do
145
		if use l10n_${locale} ; then
146
			dodoc "${DISTDIR}"/${PN}-manual-${MY_PV}-${locale/ja/ja-JP}.pdf
147
		fi
148
	done
121

  
122
	if use doc ; then
123
		dodoc README res/Mixxx-Keyboard-Shortcuts.pdf
124
	fi
149 125
}
150 126

  
151 127
pkg_postinst() {
Спасибо!