blob: 18f568ac9c8aa0685222305560a5fdab90c6a0c5 (
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
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_8 python3_9 )
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 xdg-utils
DESCRIPTION="audio library tagger, manager, and player for GTK+"
HOMEPAGE="https://quodlibet.readthedocs.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE="+dbus gstreamer +udev"
RDEPEND="dev-libs/keybinder:3[introspection]
dev-python/feedparser[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.32[${PYTHON_USEDEP}]
net-libs/libsoup[introspection]
x11-libs/gtk+[introspection]
gstreamer? (
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
media-libs/gst-plugins-good:1.0
media-plugins/gst-plugins-meta:1.0
)
!gstreamer? ( media-libs/xine-lib )
dbus? (
app-misc/media-player-info
dev-python/dbus-python[${PYTHON_USEDEP}]
)
udev? ( virtual/udev )"
DEPEND="dev-util/intltool"
S="${WORKDIR}/${PN}-release-${PV}"
src_prepare() {
local qlconfig=quodlibet/config.py
pwd
if ! use gstreamer; then
sed -i -e '/backend/s:gstbe:xinebe:' ${qlconfig} || die
fi
sed -i -e '/gst_pipeline/s:"":"alsasink":' ${qlconfig} || die
distutils-r1_src_prepare
}
src_install() {
distutils-r1_src_install
dodoc README.rst
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
|