blob: aae8086f9092b5aad1383b9fa72638ac54c0d31e (
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
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools xdg l10n
DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000"
HOMEPAGE="https://deadbeef.sourceforge.io/"
SRC_URI="https://github.com/DeaDBeeF-Player/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm mp3 musepack nls notify nullout opus oss pulseaudio shellexec +supereq threads vorbis"
REQUIRED_USE="
|| ( alsa oss pulseaudio nullout )
"
DEPEND="
x11-libs/gtk+:3
net-misc/curl:0=
dev-libs/jansson
aac? ( media-libs/faad2 )
alsa? ( media-libs/alsa-lib )
cdda? (
dev-libs/libcdio:0=
media-libs/libcddb
dev-libs/libcdio-paranoia:0=
)
cover? ( media-libs/imlib2[jpeg,png] )
dts? ( media-libs/libdca )
ffmpeg? ( media-video/ffmpeg )
flac? (
media-libs/flac
media-libs/libogg
)
mp3? ( media-sound/mpg123 )
musepack? ( media-sound/musepack-tools )
nls? ( virtual/libintl )
notify? ( sys-apps/dbus )
opus? ( media-libs/opusfile )
pulseaudio? ( media-sound/pulseaudio )
vorbis? ( media-libs/libvorbis )
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/intltool
sys-devel/gettext
"
PATCHES=(
"${FILESDIR}/deadbeef-use-ffmpeg-plugin-for-ape-by-default.patch"
)
src_prepare() {
default
drop_from_linguas() {
sed "/${1}/d" -i "${S}/po/LINGUAS" || die
}
drop_and_stub() {
rm -rf "${1}"
mkdir "${1}"
cat > "${1}/Makefile.in" <<-EOF
all: nothing
install: nothing
nothing:
EOF
}
l10n_for_each_disabled_locale_do drop_from_linguas || die
eautopoint --force
eautoreconf
# Get rid of bundled gettext.
drop_and_stub "${S}/intl"
# Plugins that are undesired for whatever reason, candidates for unbundling and such.
for i in adplug alac dumb ffap mms gme mono2stereo psf sc60 shn sid soundtouch wma; do
drop_and_stub "${S}/plugins/${i}"
done
rm -rf "${S}/plugins/rg_scanner/ebur128"
}
src_configure () {
local myconf=(
"--disable-static"
"--disable-staticlink"
"--disable-portable"
"--disable-rpath"
"--disable-libmad"
"--disable-gtk2"
"--disable-adplug"
"--disable-coreaudio"
"--disable-dumb"
"--disable-alac"
"--disable-ffap"
"--disable-gme"
"--disable-mms"
"--disable-mono2stereo"
"--disable-psf"
"--disable-rgscanner"
"--disable-sc68"
"--disable-shn"
"--disable-sid"
"--disable-sndfile"
"--disable-soundtouch"
"--disable-src"
"--disable-tta"
"--disable-vfs-zip"
"--disable-vtx"
"--disable-wavpack"
"--disable-wildmidi"
"--disable-wma"
"$(use_enable alsa)"
"$(use_enable oss)"
"$(use_enable pulseaudio pulse)"
"$(use_enable mp3)"
"$(use_enable mp3 libmpg123)"
"$(use_enable nls)"
"$(use_enable vorbis)"
"$(use_enable threads)"
"$(use_enable flac)"
"$(use_enable supereq)"
"$(use_enable cdda)"
"$(use_enable cdda cdda-paranoia)"
"$(use_enable aac)"
"$(use_enable cover artwork)"
"$(use_enable cover artwork-imlib2)"
"$(use_enable cover artwork-network)"
"$(use_enable dts dca)"
"$(use_enable ffmpeg)"
"$(use_enable converter)"
"$(use_enable musepack)"
"$(use_enable notify)"
"$(use_enable nullout)"
"$(use_enable opus)"
"$(use_enable pulseaudio pulse)"
"$(use_enable shellexec)"
"$(use_enable shellexec shellexecui)"
"$(use_enable lastfm lfm)"
"--enable-gtk3"
"--enable-vfs-curl"
"--enable-shared"
"--enable-m3u"
"--enable-pltbrowser"
)
econf "${myconf[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|