blob: d5590f18edb4f3c264d9fe2fde4f8590ddbd353f (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit xdg-utils gnome2-utils
DESCRIPTION="A media player for Gtk+ with a slick GUI, great speed and lots of
features"
HOMEPAGE="http://www.xnoise-media-player.com/"
SRC_URI="https://www.bitbucket.org/shuerhaaken/${PN}/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ayatana +lastfm +lyrics"
RDEPEND="x11-libs/gtk+:3
>=dev-libs/glib-2.34:2
gnome-base/librsvg:2
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
media-plugins/gst-plugins-meta:1.0
dev-db/sqlite:3
>=media-libs/libtaginfo-0.2.0
x11-libs/cairo
x11-libs/libX11
ayatana? ( dev-libs/libappindicator:3 )
lastfm? ( net-libs/libsoup:2.4 )
lyrics? ( net-libs/libsoup:2.4
dev-libs/libxml2:2 )"
DEPEND="${RDEPEND}
dev-util/intltool
virtual/pkgconfig
sys-devel/gettext"
DOCS=( AUTHORS README )
src_prepare() {
sed -i -e "/OnlyShowIn/d" data/misc/xnoise.desktop.* || die
}
src_configure() {
econf \
$(use_enable ayatana appindicator) \
$(use_enable lyrics lyricwiki) \
$(use_enable lastfm) \
--enable-mpris \
--enable-soundmenu2 \
--enable-mediakeys \
$(use_enable lyrics chartlyrics) \
$(use_enable lyrics azlyrics) \
--enable-magnatune
}
src_install() {
default
find "${ED}" -type f -name "*.la" -delete || die
rm -rf "${ED}"/usr/share/${PN}/license || die
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
gnome2_icon_cache_update
}
|