Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452656 | Differences between
and this patch

Collapse All | Expand All

(-)screenlets-0.1.2.ebuild (-10 / +7 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/screenlets-0.1.2.ebuild,v 1.2 2011/04/11 20:52:51 arfrever Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/screenlets-0.1.2.ebuild,v 1.2 2011/04/11 20:52:51 arfrever Exp $
4
4
5
EAPI=3
5
EAPI=5
6
PYTHON_DEPEND="2"
6
PYTHON_DEPEND="2"
7
7
8
inherit distutils eutils
8
inherit distutils eutils
Lines 22-30 Link Here
22
	dev-python/gnome-keyring-python
22
	dev-python/gnome-keyring-python
23
	dev-python/pyxdg
23
	dev-python/pyxdg
24
	x11-libs/libnotify
24
	x11-libs/libnotify
25
	x11-misc/xdg-utils"
25
	x11-misc/xdg-utils
26
26
	dev-python/beautifulsoup:python-2"
27
S="${WORKDIR}/${PN}"
28
27
29
pkg_setup() {
28
pkg_setup() {
30
	python_set_active_version 2
29
	python_set_active_version 2
Lines 34-51 Link Here
34
src_prepare() {
33
src_prepare() {
35
	distutils_src_prepare
34
	distutils_src_prepare
36
	python_convert_shebangs -r 2 src
35
	python_convert_shebangs -r 2 src
37
	sed -e "s/exec python/&2/" -i src/bin/* || die "sed failed"
36
	sed -i $(find src/ -type f) -e 's|exec python|&2|g;s|python -u|python2 -u|g' || die
37
	sed -i desktop-menu/screenlets-{daemon,manager}.desktop -e 's|> .*||g' || die
38
}
38
}
39
39
40
src_install() {
40
src_install() {
41
	distutils_src_install
41
	distutils_src_install
42
42
43
	insinto /usr/share/desktop-directories
44
	doins desktop-menu/desktop-directories/Screenlets.directory || die "doins failed"
45
46
	insinto /usr/share/icons
43
	insinto /usr/share/icons
47
	doins desktop-menu/screenlets.svg || die "doins failed"
44
	doins desktop-menu/screenlets.svg
48
45
49
	# Insert .desktop files
46
	# Insert .desktop files
50
	domenu desktop-menu/*.desktop || die "domenu failed"
47
	domenu desktop-menu/*.desktop
51
}
48
}

Return to bug 452656