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

Collapse All | Expand All

(-)rabbitvcs-0.16.ebuild (-39 / +31 lines)
Lines 4-14 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
PYTHON_DEPEND="2:2.7"
7
PYTHON_COMPAT=( python2_7 )
8
SUPPORT_PYTHON_ABIS="1"
8
DISTUTILS_SINGLE_IMPL=1
9
RESTRICT_PYTHON_ABIS="3.*"
10
9
11
inherit eutils gnome2-utils multilib distutils vcs-snapshot
10
inherit eutils gnome2-utils multilib distutils-r1 vcs-snapshot
12
11
13
DESCRIPTION="Integrated version control support for your desktop"
12
DESCRIPTION="Integrated version control support for your desktop"
14
HOMEPAGE="http://rabbitvcs.org"
13
HOMEPAGE="http://rabbitvcs.org"
Lines 17-70 Link Here
17
LICENSE="GPL-2"
16
LICENSE="GPL-2"
18
SLOT="0"
17
SLOT="0"
19
KEYWORDS="~amd64 ~x86"
18
KEYWORDS="~amd64 ~x86"
20
IUSE="caja cli diff gedit git nautilus spell thunar"
19
IUSE="caja cli diff git nautilus spell thunar"
21
20
22
RDEPEND="dev-python/configobj
21
RDEPEND="dev-python/configobj[${PYTHON_USEDEP}]
23
	dev-python/pygobject:2
22
	dev-python/pygobject:2[${PYTHON_USEDEP}]
24
	dev-python/pygtk
23
	dev-python/pygtk[${PYTHON_USEDEP}]
25
	dev-python/pysvn
24
	dev-python/pysvn[${PYTHON_USEDEP}]
26
	dev-python/simplejson
25
	dev-python/simplejson[${PYTHON_USEDEP}]
27
	caja? ( dev-python/python-caja
26
	caja? ( dev-python/python-caja[${PYTHON_USEDEP}]
28
		dev-python/dbus-python
27
		dev-python/dbus-python[${PYTHON_USEDEP}]
29
		dev-python/gnome-vfs-python )
28
		dev-python/gnome-vfs-python[${PYTHON_USEDEP}] )
30
	diff? ( dev-util/meld )
29
	diff? ( dev-util/meld )
31
	gedit? ( app-editors/gedit )
30
	git? ( dev-python/dulwich[${PYTHON_USEDEP}] )
32
	git? ( dev-python/dulwich )
31
	nautilus? ( >=dev-python/nautilus-python-0.7.0[${PYTHON_USEDEP}]
33
	nautilus? ( >=dev-python/nautilus-python-0.7.0
32
		dev-python/dbus-python[${PYTHON_USEDEP}]
34
		dev-python/dbus-python
33
		dev-python/gnome-vfs-python[${PYTHON_USEDEP}] )
35
		dev-python/gnome-vfs-python )
34
	spell? ( dev-python/gtkspell-python[${PYTHON_USEDEP}] )
36
	spell? ( dev-python/gtkspell-python )
35
	thunar? ( dev-python/thunarx-python[${PYTHON_USEDEP}]
37
	thunar? ( dev-python/thunarx-python
36
		dev-python/dbus-python[${PYTHON_USEDEP}] )"
38
		dev-python/dbus-python )"
39
37
40
src_prepare() {
38
pkg_setup() {
41
	python_convert_shebangs -r 2 .
39
	python-single-r1_pkg_setup
40
}
42
41
43
	distutils_src_prepare
42
python_prepare() {
43
	distutils-r1_python_prepare
44
	python_fix_shebang .
44
45
45
	# we should not do gtk-update-icon-cache from setup script
46
	# we should not do gtk-update-icon-cache from setup script
46
	# we prefer portage for that
47
	# we prefer portage for that
47
	sed -e 's/"install"/"fakeinstall"/' -i "${S}/setup.py" || die
48
	sed -e 's/"install"/"fakeinstall"/' -i "${S}/setup.py" || die
48
}
49
}
49
50
50
src_install() {
51
	distutils_src_install
52
51
52
python_install() {
53
        distutils-r1_python_install
54
55
	if use cli ; then
56
		python_doscript clients/cli/${PN}
57
	fi
53
	if use caja ; then
58
	if use caja ; then
54
		insinto /usr/share/caja-python/extensions
59
		insinto /usr/share/caja-python/extensions
55
		doins clients/caja/RabbitVCS.py
60
		doins clients/caja/RabbitVCS.py
56
	fi
61
	fi
57
	if use cli ; then
58
		dobin clients/cli/${PN}
59
	fi
60
	if use gedit ; then
61
		insinto /usr/$(get_libdir)/gedit-2/plugins
62
		doins clients/gedit/${PN}-plugin.py
63
		doins clients/gedit/${PN}-gedit2.gedit-plugin
64
		insinto /usr/$(get_libdir)/gedit/plugins
65
		doins clients/gedit/${PN}-plugin.py
66
		doins clients/gedit/${PN}-gedit3.plugin
67
	fi
68
	if use nautilus ; then
62
	if use nautilus ; then
69
		insinto /usr/$(get_libdir)/nautilus/extensions-2.0/python
63
		insinto /usr/$(get_libdir)/nautilus/extensions-2.0/python
70
		doins clients/nautilus/RabbitVCS.py
64
		doins clients/nautilus/RabbitVCS.py
Lines 84-90 Link Here
84
}
78
}
85
79
86
pkg_postinst() {
80
pkg_postinst() {
87
	distutils_pkg_postinst
88
	gnome2_icon_cache_update
81
	gnome2_icon_cache_update
89
82
90
	elog "You should restart file manager to changes take effect:"
83
	elog "You should restart file manager to changes take effect:"
Lines 97-102 Link Here
97
}
90
}
98
91
99
pkg_postrm() {
92
pkg_postrm() {
100
	distutils_pkg_postrm
101
	gnome2_icon_cache_update
93
	gnome2_icon_cache_update
102
}
94
}

Return to bug 541296