blob: fac0101b0fffd4e706d9d67fc6e0fb797ee58895 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/panflute/panflute-0.7.0.ebuild,v 1.3 2011/07/01 21:14:57 hwoarang Exp $
EAPI="3"
GCONF_DEBUG="no"
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit eutils gnome2 python versionator
MY_MAJORV="$(get_version_component_range 1-2)"
DESCRIPTION="GNOME applet to control various music players"
HOMEPAGE="http://launchpad.net/panflute"
SRC_URI="http://launchpad.net/${PN}/${MY_MAJORV}/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="libnotify mpd"
# This ebuild is far from perfect, it does a lot of automagic detection
RDEPEND="
>=dev-python/dbus-python-0.80
>=dev-libs/dbus-glib-0.71
dev-python/pygobject:2
>=x11-libs/pango-1.6
>=dev-python/gconf-python-2.14
>=dev-python/gnome-applets-python-2.14
>=dev-python/pygtk-2.16:2
libnotify? ( >=dev-python/notify-python-0.1.1-r2 )
mpd? ( >=dev-python/python-mpd-0.2.1 )
!gnome-extra/music-applet
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
>=dev-util/intltool-0.40
"
pkg_setup() {
DOCS="AUTHORS ChangeLog NEWS README THANKS"
python_pkg_setup
}
src_prepare() {
gnome2_src_prepare
# Upstream: https://bugs.launchpad.net/panflute/+bug/761701
epatch "${FILESDIR}"/${PN}-0.6.2-libnotify-0.7.patch
# disable pyc compiling
mv py-compile py-compile.orig
ln -s $(type -P true) py-compile
python_copy_sources
}
src_configure() {
python_execute_function -s gnome2_src_configure
}
src_compile() {
python_execute_function -s gnome2_src_compile
}
src_test() {
python_execute_function -s -d
}
src_install() {
python_execute_function -s gnome2_src_install
python_clean_installation_image
python_convert_shebangs -r 2 "${ED}"
}
pkg_postinst() {
gnome2_pkg_postinst
python_mod_optimize panflute
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup panflute
}
|