blob: 6a5839f03b41ac216059d7a6d90c2fccbe6128f9 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit gnome2-utils python-r1
DESCRIPTION="GNOME integration for Spotify"
HOMEPAGE="https://github.com/mrpdaemon/gnome-integration-spotify"
#SRC_URI="https://github.com/mrpdaemon/${PN}/tarball/${PV} -> ${PN}-git-${PV}.tgz"
SRC_URI="https://github.com/mrpdaemon/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
#S="${WORKDIR}/mrpdaemon-${PN}-df9124d"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
${PYTHON_DEPS}
dev-python/dbus-python[${PYTHON_USEDEP}]
media-gfx/imagemagick
x11-misc/wmctrl
x11-misc/xautomation
x11-misc/xdotool
x11-apps/xwininfo"
src_install() {
dobin spotify-dbus.py
python_replicate_script "${ED}"/usr/bin/spotify-dbus.py
mkdir -p "${D}/etc/gconf/schemas"
cp spotify.schemas "${D}/etc/gconf/schemas"
}
pkg_preinst() {
gnome2_gconf_savelist
}
pkg_postinst() {
gnome2_gconf_install
}
pkg_prerm() {
gnome2_gconf_uninstall
}
|