1 |
commit: b4f3034f4e4353733954ffcaa2504e227144726d |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 22:48:07 2016 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 22:49:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f3034f |
7 |
|
8 |
app-backup/backintime: add RDEPEND PyQt4 (thanks Luis Lucas, bug 569982). |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
app-backup/backintime/backintime-1.1.8-r1.ebuild | 78 ++++++++++++++++++++++++ |
13 |
1 file changed, 78 insertions(+) |
14 |
|
15 |
diff --git a/app-backup/backintime/backintime-1.1.8-r1.ebuild b/app-backup/backintime/backintime-1.1.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..dae091c |
18 |
--- /dev/null |
19 |
+++ b/app-backup/backintime/backintime-1.1.8-r1.ebuild |
20 |
@@ -0,0 +1,78 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_3 python3_4 ) |
28 |
+ |
29 |
+inherit eutils python-single-r1 |
30 |
+ |
31 |
+DESCRIPTION="Backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4" |
32 |
+HOMEPAGE="http://backintime.le-web.org/" |
33 |
+SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="qt4" |
39 |
+ |
40 |
+DEPEND="${PYTHON_DEPS} |
41 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
42 |
+ dev-python/keyring[${PYTHON_USEDEP}] |
43 |
+ net-misc/openssh |
44 |
+ net-misc/rsync[xattr,acl]" |
45 |
+RDEPEND="${DEPEND} |
46 |
+ qt4? ( dev-python/PyQt4 )" |
47 |
+ |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ #fix doc install location |
52 |
+ sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \ |
53 |
+ -i common/configure || die |
54 |
+ sed -e "s:/doc/${PN}-qt4:/doc/${PF}:g" \ |
55 |
+ -i qt4/configure || die |
56 |
+ sed -e "/addInstallFile \"..\/VERSION/d" \ |
57 |
+ -e "/addInstallFile \"..\/LICENSE/d" \ |
58 |
+ -e "/addInstallFile \"..\/debian\/copyright/d" \ |
59 |
+ -i {qt4,common}/configure || die |
60 |
+ |
61 |
+ if [ -n ${LINGUAS+x} ] ; then |
62 |
+ cd common/po || die |
63 |
+ for po in *.po ; do |
64 |
+ if ! has ${po/.po} ${LINGUAS} ; then |
65 |
+ rm ${po} || die |
66 |
+ fi |
67 |
+ done |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ cd "${S}"/common || die |
73 |
+ ./configure --python3 --no-fuse-group || die |
74 |
+ if use qt4 ; then |
75 |
+ cd "${S}"/qt4 || die |
76 |
+ ./configure --python3 || die |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ cd "${S}"/common || die |
82 |
+ emake |
83 |
+ if use qt4 ; then |
84 |
+ cd "${S}"/qt4 || die |
85 |
+ emake |
86 |
+ fi |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ cd "${S}"/common || die |
91 |
+ emake DESTDIR="${D}" install |
92 |
+ if use qt4 ; then |
93 |
+ cd "${S}"/qt4 || die |
94 |
+ emake DESTDIR="${D}" install |
95 |
+ fi |
96 |
+ |
97 |
+ python_optimize "${D}" |
98 |
+} |