summaryrefslogtreecommitdiff
blob: 0d7683a160a61f99f8e59154735d98761a4ea403 (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
# 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/gnome-python
	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
}