blob: 9da1d135c412795cdb9fe82c5e73747b2313b882 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/backintime/backintime-0.9.26-r1.ebuild,v 1.1 2009/10/14 18:20:30 bangert Exp $
EAPI="2"
inherit eutils
DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
HOMEPAGE="http://backintime.le-web.org/"
SRC_URI="http://backintime.le-web.org/download/backintime/${P}_src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde gnome"
DEPEND="dev-lang/python
net-misc/rsync[xattr]
kde? (
>=kde-base/kdelibs-4
kde-base/pykde4
kde-base/kompare
kde-base/kdesu
)
gnome? ( gnome-base/libglade )
dev-python/notify-python
"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/backintime-0.9.26-information-disclosure.diff
}
src_configure() {
cd "${S}"/common
econf
if use kde ; then
cd "${S}"/kde4
econf
fi
if use gnome ; then
cd "${S}"/gnome
econf
fi
}
src_compile() {
cd "${S}"/common
emake
if use kde ; then
cd "${S}"/kde4
emake
fi
if use gnome ; then
cd "${S}"/gnome
emake
fi
}
src_install() {
cd "${S}"/common
emake DESTDIR="${D}" install
if use kde ; then
cd "${S}"/kde4
emake DESTDIR="${D}" install
#use kdesu instead of kdesudo
sed -i 's/kdesudo/kdesu/' \
"${D}"//usr/share/applications/kde4/backintime-kde4-root.desktop
fi
if use gnome ; then
cd "${S}"/gnome
emake DESTDIR="${D}" install
fi
}
|