blob: 47930ce089cf69954201d50192237ac7d0508f10 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/pympd/pympd-0.06.1.ebuild,v 1.1 2006/03/22 10:54:37 ticho Exp $
inherit eutils python
DESCRIPTION="a Rhythmbox-like PyGTK+ client for Music Player Daemon"
HOMEPAGE="http://sourceforge.net/projects/pympd"
SRC_URI="http://pympd.sourceforge.net/files/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="gnome"
RDEPEND=">=virtual/python-2.4
>=dev-python/pygtk-2.6
gnome? ( dev-python/gnome-python-extras )"
DOCS="README"
src_compile() {
make PREFIX="/usr" DESTDIR="${D}"
}
src_install() {
make PREFIX="/usr" DESTDIR="${D}" install
use gnome || cd ${D} && find -iname trayicon.* | xargs rm
dodir /usr/share/pixmaps
insinto /usr/share/pixmaps
cd ${S}
newins src/glade/pixmaps/icon.png pympd.png
make_desktop_entry "pympd" "pympd" "pympd.png" "Audio"
}
pkg_postinst() {
python_version
python_mod_optimize /usr/lib/python${PYVER}/site-packages/pympd
echo
ewarn
ewarn "You need to remove the .pympd directory from your home directory, as new version uses different settings format"
ewarn
echo
}
pkg_postrm() {
python_version
python_mod_cleanup
}
|