1 |
commit: d554635fb1e0683395b6cf1c8ac205e8c9bc0327 |
2 |
Author: Richard Freeman <rich0 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 7 16:30:52 2020 +0000 |
4 |
Commit: Richard Freeman <rich0 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 16:52:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d554635f |
7 |
|
8 |
app-backup/duplicity: setup.py fix to allow python-exec wrapping |
9 |
|
10 |
Thanks to Alexander who discovered the root cause of this problem. |
11 |
|
12 |
Credit: Alexander Tsoy |
13 |
Closes: https://bugs.gentoo.org/710500 |
14 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
15 |
Signed-off-by: Richard Freeman <rich0 <AT> gentoo.org> |
16 |
|
17 |
.../duplicity/duplicity-0.8.12.1612-r1.ebuild | 50 ++++++++++++++++++++++ |
18 |
.../files/duplicity-0.8.12.1612-fix-docs-cmd.patch | 29 +++++++++++++ |
19 |
2 files changed, 79 insertions(+) |
20 |
|
21 |
diff --git a/app-backup/duplicity/duplicity-0.8.12.1612-r1.ebuild b/app-backup/duplicity/duplicity-0.8.12.1612-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..7c75e96f148 |
24 |
--- /dev/null |
25 |
+++ b/app-backup/duplicity/duplicity-0.8.12.1612-r1.ebuild |
26 |
@@ -0,0 +1,50 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+PYTHON_COMPAT=( python3_6 python3_7 ) |
32 |
+ |
33 |
+inherit distutils-r1 |
34 |
+ |
35 |
+DESCRIPTION="Secure backup system using gnupg to encrypt data" |
36 |
+HOMEPAGE="http://www.nongnu.org/duplicity/" |
37 |
+SRC_URI="https://code.launchpad.net/${PN}/$(ver_cut 1-2)-series/$(ver_cut 1-3)/+download/${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-3" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
42 |
+IUSE="s3 test" |
43 |
+ |
44 |
+CDEPEND=" |
45 |
+ net-libs/librsync |
46 |
+ app-crypt/gnupg |
47 |
+ dev-python/fasteners[${PYTHON_USEDEP}] |
48 |
+" |
49 |
+DEPEND="${CDEPEND} |
50 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+ test? ( |
52 |
+ app-arch/par2cmdline |
53 |
+ dev-python/mock[${PYTHON_USEDEP}] |
54 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
+RDEPEND="${CDEPEND} |
58 |
+ dev-python/paramiko[${PYTHON_USEDEP}] |
59 |
+ dev-python/future[${PYTHON_USEDEP}] |
60 |
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] ) |
61 |
+" |
62 |
+ |
63 |
+RESTRICT="test" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}/${P}-fix-docs-cmd.patch" |
67 |
+) |
68 |
+ |
69 |
+python_test() { |
70 |
+ esetup.py test |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ elog "Duplicity has many optional dependencies to support various backends." |
75 |
+ elog "Currently it's up to you to install them as necessary." |
76 |
+} |
77 |
|
78 |
diff --git a/app-backup/duplicity/files/duplicity-0.8.12.1612-fix-docs-cmd.patch b/app-backup/duplicity/files/duplicity-0.8.12.1612-fix-docs-cmd.patch |
79 |
new file mode 100644 |
80 |
index 00000000000..89cd583e6bf |
81 |
--- /dev/null |
82 |
+++ b/app-backup/duplicity/files/duplicity-0.8.12.1612-fix-docs-cmd.patch |
83 |
@@ -0,0 +1,29 @@ |
84 |
+--- duplicity-0.8.12.1612/setup.py 2020-05-07 12:07:21.571865871 -0400 |
85 |
++++ duplicity-0.8.12.1612/setup.py 2020-05-07 12:08:29.617846122 -0400 |
86 |
+@@ -88,18 +88,6 @@ |
87 |
+ u'bin/rdiffdir.1' |
88 |
+ ] |
89 |
+ ), |
90 |
+- (u'share/doc/duplicity-%s' % version_string, |
91 |
+- [ |
92 |
+- u'AUTHORS', |
93 |
+- u'CHANGELOG', |
94 |
+- u'Changelog.GNU', |
95 |
+- u'COPYING', |
96 |
+- u'README', |
97 |
+- u'README-LOG', |
98 |
+- u'README-REPO', |
99 |
+- u'README-TESTING', |
100 |
+- ], |
101 |
+- ), |
102 |
+ ] |
103 |
+ |
104 |
+ if not os.environ.get(u'READTHEDOCS') == u'True': |
105 |
+@@ -265,7 +253,6 @@ |
106 |
+ ], |
107 |
+ test_suite=u"testing", |
108 |
+ cmdclass={ |
109 |
+- u"build_scripts": BSCommand, |
110 |
+ u"install": InstallCommand, |
111 |
+ u"test": TestCommand, |
112 |
+ }, |