Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 562610 | Differences between
and this patch

Collapse All | Expand All

(-)clementine-1.3.1-r6.ebuild (-15 / +52 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=6
Lines 19-46 Link Here
19
SLOT="0"
19
SLOT="0"
20
[[ ${PV} == *9999* ]] || \
20
[[ ${PV} == *9999* ]] || \
21
KEYWORDS="~amd64 ~x86"
21
KEYWORDS="~amd64 ~x86"
22
IUSE="amazoncloud box cdda +dbus debug dropbox googledrive ipod lastfm mms moodbar mtp projectm pulseaudio skydrive test +udisks wiimote"
22
IUSE="amazoncloud box cdda +dbus debug dropbox googledrive ipod lastfm mms moodbar mtp projectm pulseaudio skydrive +qt4 qt5 test +udisks wiimote"
23
IUSE+="${LANGS// / linguas_}"
23
IUSE+="${LANGS// / linguas_}"
24
24
25
REQUIRED_USE="
25
REQUIRED_USE="
26
	^^ ( qt4 qt5 )
26
	udisks? ( dbus )
27
	udisks? ( dbus )
27
	wiimote? ( dbus )
28
	wiimote? ( dbus )
28
"
29
"
29
30
30
COMMON_DEPEND="
31
COMMON_DEPEND="
31
	dev-db/sqlite:=
32
	qt4? ( >=dev-qt/qtcore-4.5:4
33
		>=dev-qt/qtgui-4.5:4
34
		>=dev-qt/qtopengl-4.5:4
35
		>=dev-qt/qtsql-4.5:4[sqlite]
36
		app-crypt/qca:2[qt4(+)]
37
		>=media-libs/libmygpo-qt-1.0.7[qt4]
38
		media-libs/libechonest[qt4]
39
		lastfm? ( >=media-libs/liblastfm-1[qt4] )
40
		dbus? ( >=dev-qt/qtdbus-4.5:4 ) )
41
	qt5? ( >=dev-qt/qtcore-5.1:5
42
		>=dev-qt/qtgui-5.1:5
43
		>=dev-qt/qtnetwork-5.1:5
44
		>=dev-qt/qtopengl-5.1:5
45
		>=dev-qt/qttranslations-5.1:5
46
		>=dev-qt/qtsql-5.1:5[sqlite]
47
		>=dev-qt/qtwidgets-5.1:5
48
		>=dev-qt/qtx11extras-5.1:5
49
		>=dev-qt/qtxml-5.1:5
50
		>=dev-qt/linguist-tools-5.1:5
51
		app-crypt/qca:2[qt5(+)]
52
		>=media-libs/libmygpo-qt-1.0.8[qt5]
53
		>=media-libs/libechonest-2.3.0[qt5]
54
		lastfm? ( >=media-libs/liblastfm-1[qt5] )
55
		dbus? ( >=dev-qt/qtdbus-5.1:5 ) )
56
32
	>=dev-libs/glib-2.24.1-r1
57
	>=dev-libs/glib-2.24.1-r1
33
	dev-libs/libxml2
58
	dev-libs/libxml2
34
	dev-libs/protobuf:=
59
	dev-libs/protobuf:=
35
	dev-libs/qjson
60
	dev-libs/qjson
36
	>=dev-qt/qtcore-4.5:4[ssl]
37
	>=dev-qt/qtgui-4.5:4
38
	>=dev-qt/qtopengl-4.5:4
39
	>=dev-qt/qtsql-4.5:4
40
	>=media-libs/chromaprint-0.6
61
	>=media-libs/chromaprint-0.6
41
	media-libs/gstreamer:1.0
62
	media-libs/gstreamer:1.0
42
	media-libs/gst-plugins-base:1.0
63
	media-libs/gst-plugins-base:1.0
43
	>=media-libs/libmygpo-qt-1.0.9[qt4(+)]
44
	>=media-libs/taglib-1.8[mp4(+)]
64
	>=media-libs/taglib-1.8[mp4(+)]
45
	sys-libs/zlib
65
	sys-libs/zlib
46
	dev-libs/crypto++
66
	dev-libs/crypto++
Lines 48-56 Link Here
48
	virtual/opengl
68
	virtual/opengl
49
	x11-libs/libX11
69
	x11-libs/libX11
50
	cdda? ( dev-libs/libcdio )
70
	cdda? ( dev-libs/libcdio )
51
	dbus? ( >=dev-qt/qtdbus-4.5:4 )
52
	ipod? ( >=media-libs/libgpod-0.8.0 )
71
	ipod? ( >=media-libs/libgpod-0.8.0 )
53
	lastfm? ( >=media-libs/liblastfm-1[qt4(+)] )
54
	mtp? ( >=media-libs/libmtp-1.0.0 )
72
	mtp? ( >=media-libs/libmtp-1.0.0 )
55
	moodbar? ( sci-libs/fftw:3.0 )
73
	moodbar? ( sci-libs/fftw:3.0 )
56
	projectm? ( media-libs/glew:=
74
	projectm? ( media-libs/glew:=
Lines 74-80 Link Here
74
	>=dev-libs/boost-1.39:=
92
	>=dev-libs/boost-1.39:=
75
	virtual/pkgconfig
93
	virtual/pkgconfig
76
	sys-devel/gettext
94
	sys-devel/gettext
77
	dev-qt/qttest:4
95
	qt4? ( test? ( dev-qt/qttest:4 ) )
96
	qt5? ( test? ( dev-qt/qttest:5 ) )
78
	dev-cpp/gmock
97
	dev-cpp/gmock
79
	amazoncloud? ( dev-cpp/sparsehash )
98
	amazoncloud? ( dev-cpp/sparsehash )
80
	box? ( dev-cpp/sparsehash )
99
	box? ( dev-cpp/sparsehash )
Lines 91-102 Link Here
91
S="${WORKDIR}/${MY_P^}"
110
S="${WORKDIR}/${MY_P^}"
92
111
93
PATCHES=(
112
PATCHES=(
94
	"${FILESDIR}"/${PN}-1.3-fix-tokenizer.patch
113
	"${FILESDIR}"/${P}-fix-tokenizer.patch
95
	"${FILESDIR}"/${P}-fix-desktop-file.patch
96
	"${FILESDIR}"/${P}-chromaprint14.patch #603662
97
	"${FILESDIR}"/${P}-libechonest_removal.patch
98
)
114
)
99
115
116
# https://github.com/clementine-player/Clementine/issues/3935
117
RESTRICT="test"
118
119
src_unpack() {
120
	if use qt5; then
121
		EGIT_BRANCH="qt5"
122
	fi
123
124
	git-r3_src_unpack
125
}
126
100
src_prepare() {
127
src_prepare() {
101
	cmake-utils_src_prepare
128
	cmake-utils_src_prepare
102
129
Lines 104-109 Link Here
104
	sed -i \
131
	sed -i \
105
		-e '/add_test_file(translations_test.cpp/d' \
132
		-e '/add_test_file(translations_test.cpp/d' \
106
		tests/CMakeLists.txt || die
133
		tests/CMakeLists.txt || die
134
	# If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt version may be used.
135
	# Setting QT_SELECT environment variable will enforce correct binaries.
136
	if use qt4; then
137
		export QT_SELECT=qt4
138
	elif use qt5; then
139
		export QT_SELECT=qt5
140
		ewarn "Please note that Qt5 support is still experimental."
141
		ewarn "If you find anything to not work with Qt5, please report a bug."
142
		ewarn "«Work (slowly) in progress.»© https://github.com/clementine-player/Clementine/issues/3463#issuecomment-90714420"
143
	fi
107
}
144
}
108
145
109
src_configure() {
146
src_configure() {

Return to bug 562610