blob: d45fb8f062d002e7e8f829640e04c12073eab9a3 (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator-extras/avant-window-navigator-extras-0.3.2.ebuild,v 1.1 2009/02/25 22:52:49 eva Exp $
EAPI="2"
inherit eutils gnome2 python
MY_P="awn-extras-applets-${PV}"
DESCRIPTION="Applets for the avant-window-navigator"
HOMEPAGE="http://launchpad.net/awn-extras"
SRC_URI="https://launchpad.net/awn-extras/0.2/${PV}/+download/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome gstreamer gtkhtml"
RDEPEND=">=x11-libs/libwnck-2.22
>=dev-python/pygobject-2
>=dev-python/pygtk-2
>=gnome-extra/avant-window-navigator-0.3.1[gnome=]
>=dev-libs/dbus-glib-0.70
dev-python/pyalsaaudio
dev-python/notify-python
dev-python/feedparser
gnome? (
dev-python/gnome-applets-python
dev-python/gnome-desktop-python
dev-python/gnome-keyring-python
dev-python/gnome-media-python
dev-python/gnome-vfs-python
dev-python/libgnomecanvas-python
dev-python/libgnomeprint-python
dev-python/libgnome-python
dev-python/gnome-desktop-python
dev-python/librsvg-python
dev-python/libwnck-python
dev-python/gconf-python
gnome-base/gnome-menus[python]
gnome-base/librsvg
>=gnome-base/libgtop-2
>=gnome-base/gconf-2
x11-libs/vte[python]
>=gnome-base/gnome-vfs-2
)
gtkhtml? ( dev-python/gtkmozembed-python )
gstreamer? (
>=media-libs/gstreamer-0.10.15
dev-python/gst-python )
gnome-extra/avant-window-navigator
x11-libs/libXcomposite
x11-libs/libXrender
x11-libs/libsexy
x11-libs/libnotify"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.17
>=dev-util/intltool-0.35"
DOCS="AUTHORS Changelog NEWS README"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use gstreamer; then
G2CONF="${G2CONF} --enable-sound=gstreamer"
else
G2CONF="${G2CONF} --enable-sound=no"
fi
G2CONF="${G2CONF}
--disable-static
--disable-pymod-checks
$(use_with gnome)
$(use_with gnome gconf)"
}
src_prepare() {
# Disable pyc compiling.
mv py-compile py-compile.orig
ln -s $(type -P true) py-compile
}
src_install() {
gnome2_src_install
if use gnome ; then
# Give the gconf schemas non-conflicting names.
mv "${D}/etc/gconf/schemas/notification-daemon.schemas" \
"${D}/etc/gconf/schemas/awn-notification-daemon.schemas"
mv "${D}/etc/gconf/schemas/awnsystemmonitor.schemas" \
"${D}/etc/gconf/schemas/awn-system-monitor.schemas"
mv "${D}/etc/gconf/schemas/filebrowser.schemas" \
"${D}/etc/gconf/schemas/awn-filebrowser.schemas"
mv "${D}/etc/gconf/schemas/switcher.schemas" \
"${D}/etc/gconf/schemas/awn-switcher.schemas"
mv "${D}/etc/gconf/schemas/trash.schemas" \
"${D}/etc/gconf/schemas/awn-trash.schemas"
mv "${D}/etc/gconf/schemas/shinyswitcher.schemas" \
"${D}/etc/gconf/schemas/awn-shinyswitcher.schemas"
mv "${D}/etc/gconf/schemas/places.schemas" \
"${D}/etc/gconf/schemas/awn-places.schemas"
fi
}
pkg_postinst() {
gnome2_pkg_postinst
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/awn/extras
}
pkg_postrm() {
gnome2_pkg_postrm
python_version
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/awn/extras
}
|