summaryrefslogtreecommitdiff
blob: dfc0ddae6bb82a68ff0d920c26dd78767dc98d4f (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzr-gtk/bzr-gtk-0.98.0.ebuild,v 1.1 2010/03/08 08:47:08 fauli Exp $

EAPI=1
NEED_PYTHON=2.4

inherit python distutils

MY_P="/${P/_rc/rc}"

DESCRIPTION="A GTK+ interfaces to most Bazaar operations"
HOMEPAGE="http://bazaar-vcs.org/bzr-gtk"
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gconf gnome-keyring gpg +sourceview libnotify nautilus"

DEPEND=">=dev-vcs/bzr-1.6_rc1
	>=dev-python/pygtk-2.8
	nautilus? ( dev-python/nautilus-python )
	>=dev-python/pycairo-1.0"
RDEPEND="${DEPEND}
	gnome-keyring? ( dev-python/gnome-keyring-python )
	gpg? ( app-crypt/seahorse )
	sourceview? (
		dev-python/pygtksourceview
		gconf? ( dev-python/gconf-python )
	)"

S="${WORKDIR}/${MY_P}"

#TODO: src_test

src_install() {
	distutils_src_install

	if use libnotify; then
		insinto /etc/xdg/autostart
		doins bzr-notify.desktop
	fi
}