summaryrefslogtreecommitdiff
blob: 2e5f45b5df72e6125318996371d25e317134d5b3 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="2:2.5"

inherit distutils python versionator

MY_PV=$(get_version_component_range 1-2)

DESCRIPTION="Fork of the sbackup project with better user interaction"
HOMEPAGE="https://launchpad.net/nssbackup"
SRC_URI="http://launchpad.net/${PN}/${MY_PV}/${MY_PV}/+download/${PN}_${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DOCS="HACKING"

DEPEND="dev-python/setuptools"
RDEPEND="dev-python/notify-python
	dev-python/pexpect
	dev-python/pygtk
	net-fs/curlftpfs
	sys-devel/gettext
	sys-fs/fuse
	sys-fs/sshfs-fuse"

RESTRICT_PYTHON_ABIS="3.*"

src_compile(){
	emake DISTDIR=/usr PREFIX=/usr || die
	distutils_src_compile
}

src_install(){
	local script

	distutils_src_install
	cd scripts || die
	for script in *.py; do
		newbin ${script} ${script/.py/} || die
	done
}

pkg_postinst(){
	elog
	elog "If you want better gnome integration you may"
	elog "wish to install dev-python/gnome-python"
	elog

}