blob: 85158513214e2e985a98245b95d0f74a646339ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PLOCALES="be bg bn ca cs da de el en_GB es et eu fa fi fr gl he hr hu id it ja kk km lg
lt nl pl pt pt_BR ro ru si_LK sk sl sr sr@latin sv te tr ug uk vi zh_CN zh_TW"
PLOCALE_BACKUP="en_GB"
inherit autotools eutils fdo-mime gnome2-utils l10n
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="*"
DESCRIPTION="foobar2k-like music player"
HOMEPAGE="http://deadbeef.sourceforge.net"
RESTRICT="mirror"
LICENSE="BSD
UNICODE
ZLIB
aac? ( GPL GPL-2 )
adplug? ( LGPL-2.1 ZLIB )
alac? ( MIT GPL-2 )
alsa? ( GPL-2 )
cdda? ( GPL-2 LGPL-2 GPL-3 )
cover? ( ZLIB )
converter? ( GPL-2 )
curl? ( curl ZLIB )
dts? ( GPL-2 )
dumb? ( DUMB-0.9.3 ZLIB )
equalizer? ( GPL-2 )
ffmpeg? ( GPL-2 )
flac? ( BSD )
gme? ( LGPL-2.1 )
gtk2? ( GPL-2 )
gtk3? ( GPL-2 )
hotkeys? ( ZLIB )
lastfm? ( GPL-2 )
libav? ( GPL-2 )
libnotify? ( GPL-2 )
libsamplerate? ( GPL-2 )
m3u? ( ZLIB )
mac? ( GPL-2 )
midi? ( LGPL-2.1 ZLIB )
mms? ( GPL-2 ZLIB )
mono2stereo? ( ZLIB )
mp3? ( GPL-2 ZLIB )
musepack? ( BSD ZLIB )
nullout? ( ZLIB )
oss? ( GPL-2 )
playlist-browser? ( ZLIB )
psf? ( BSD GPL MAME ZLIB )
pulseaudio? ( GPL-2 )
shell-exec? ( GPL-2 )
shn? ( shorten ZLIB )
sid? ( GPL-2 )
sndfile? ( GPL-2 LGPL-2 )
tta? ( BSD ZLIB )
vorbis? ( BSD ZLIB )
vtx? ( GPL-2 ZLIB )
wavpack? ( BSD )
wma? ( GPL-2 LGPL-2 ZLIB )
zip? ( ZLIB )"
SLOT="0"
IUSE="+alsa +flac +gtk2 +hotkeys +m3u +mp3 +sndfile +vorbis
aac adplug alac cdda converter cover cover-imlib2 cover-network curl dts dumb equalizer
ffmpeg gme gtk3 lastfm libav libnotify libsamplerate mac midi mms mono2stereo musepack nls nullout
oss playlist-browser psf pulseaudio shell-exec shn sid tta unity vtx wavpack wma zip"
REQUIRED_USE="converter? ( || ( gtk2 gtk3 ) )
cover-imlib2? ( cover )
cover-network? ( cover curl )
cover? ( || ( gtk2 gtk3 ) )
ffmpeg? ( !libav )
lastfm? ( curl )
playlist-browser? ( || ( gtk2 gtk3 ) )
|| ( alsa oss pulseaudio nullout )"
PDEPEND="media-plugins/deadbeef-plugins-meta:0"
RDEPEND="dev-libs/glib:2
aac? ( media-libs/faad2:0 )
adplug? ( media-libs/adplug:0 )
alsa? ( media-libs/alsa-lib:0 )
alac? ( media-libs/faad2:0 )
cdda? ( dev-libs/libcdio:0=
media-libs/libcddb:0 )
cover? ( cover-imlib2? ( media-libs/imlib2:0 )
media-libs/libpng:0=
virtual/jpeg:0
x11-libs/gdk-pixbuf:2[jpeg] )
curl? ( net-misc/curl:0 )
ffmpeg? ( media-video/ffmpeg:0= )
libav? ( media-video/libav:0= )
flac? ( media-libs/libogg
media-libs/flac:0 )
gme? ( sys-libs/zlib:0 )
gtk2? ( dev-libs/atk:0
x11-libs/cairo:0
x11-libs/gtk+:2
x11-libs/pango:0 )
gtk3? ( x11-libs/gtk+:3 )
hotkeys? ( x11-libs/libX11:0 )
libnotify? ( sys-apps/dbus:0 )
libsamplerate? ( media-libs/libsamplerate:0 )
mac? ( x86? ( dev-lang/yasm:0 )
amd64? ( dev-lang/yasm:0 ) )
midi? ( media-sound/timidity-freepats:0 )
mp3? ( media-libs/libmad:0 )
psf? ( sys-libs/zlib:0 )
pulseaudio? ( media-sound/pulseaudio:0 )
sndfile? ( media-libs/libsndfile:0 )
vorbis? ( media-libs/libogg:0
media-libs/libvorbis:0 )
wavpack? ( media-sound/wavpack:0 )
zip? ( dev-libs/libzip:0 )"
DEPEND="${RDEPEND}
virtual/pkgconfig:0
nls? ( dev-util/intltool:0
virtual/libintl:0 )"
src_prepare() {
if ! use_if_iuse linguas_pt_BR && use_if_iuse linguas_ru ; then
epatch "${FILESDIR}/${PN}-remove-pt_br-help-translation.patch"
rm "${S}/translation/help.pt_BR.txt" || die
fi
if ! use_if_iuse linguas_ru && use_if_iuse linguas_pt_BR ; then
epatch "${FILESDIR}/${PN}-remove-ru-help-translation.patch"
rm "${S}/translation/help.ru.txt" || die
fi
if ! use_if_iuse linguas_pt_BR && ! use_if_iuse linguas_ru ; then
epatch "${FILESDIR}/${PN}-remove-pt_br-and-ru-help-translation.patch"
rm "${S}/translation/help.pt_BR.txt" "${S}/translation/help.ru.txt" || die
fi
if use midi ; then
# set default gentoo path
sed -e 's;/etc/timidity++/timidity-freepats.cfg;/usr/share/timidity/freepats/timidity.cfg;g' \
-i "${S}/plugins/wildmidi/wildmidiplug.c" || die
fi
if ! use unity ; then
# remove unity trash
epatch "${FILESDIR}/${P}-remove-unity-trash.patch"
fi
config_rpath_update "${S}/config.rpath" || die
eautoreconf
}
src_configure() {
if use shell-exec ; then
if use gtk2 || use gtk3 ; then
shell-exec-ui="--enable-shellexec-ui"
else
shell-exec-ui="--disable-shellexec-ui"
fi
fi
econf --disable-coreaudio \
--disable-portable \
--disable-static \
--docdir=/usr/share/${PN} \
${shell-exec-ui} \
$(use_enable aac) \
$(use_enable adplug) \
$(use_enable alac) \
$(use_enable alsa) \
$(use_enable cdda) \
$(use_enable converter) \
$(use_enable cover artwork) \
$(use_enable cover-imlib2 artwork-imlib2) \
$(use_enable cover-network artwork-network) \
$(use_enable curl vfs-curl) \
$(use_enable dts dca) \
$(use_enable dumb) \
$(use_enable equalizer supereq) \
$(use_enable ffmpeg) \
$(use_enable flac) \
$(use_enable gme) \
$(use_enable gtk2) \
$(use_enable gtk3) \
$(use_enable hotkeys) \
$(use_enable lastfm lfm) \
$(use_enable libav ffmpeg) \
$(use_enable libnotify notify) \
$(use_enable libsamplerate src) \
$(use_enable m3u) \
$(use_enable mac ffap) \
$(use_enable midi wildmidi) \
$(use_enable mms) \
$(use_enable mono2stereo) \
$(use_enable mp3 mad) \
$(use_enable musepack) \
$(use_enable nls) \
$(use_enable nullout) \
$(use_enable oss) \
$(use_enable playlist-browser pltbrowser) \
$(use_enable psf) \
$(use_enable pulseaudio pulse) \
$(use_enable shell-exec shellexec) \
$(use_enable shn) \
$(use_enable sid) \
$(use_enable sndfile) \
$(use_enable tta) \
$(use_enable vorbis) \
$(use_enable vtx) \
$(use_enable wavpack) \
$(use_enable wma) \
$(use_enable zip vfs-zip)
}
pkg_preinst() {
if use gtk2 || use gtk3 ; then
gnome2_icon_savelist
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
if use gtk2 || use gtk3 ; then
gnome2_icon_cache_update
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
if use gtk2 || use gtk3 ; then
gnome2_icon_cache_update
fi
}
|