app-backup/rdiff-backup: Fix DOCS, HTML_DOCS install paths
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 16 Jun 2018 16:42:02 +0000 (18:42 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 16 Jun 2018 16:42:45 +0000 (18:42 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-backup/rdiff-backup/files/rdiff-backup-1.3.3-no-docs.patch [new file with mode: 0644]
app-backup/rdiff-backup/rdiff-backup-1.3.3-r3.ebuild

diff --git a/app-backup/rdiff-backup/files/rdiff-backup-1.3.3-no-docs.patch b/app-backup/rdiff-backup/files/rdiff-backup-1.3.3-no-docs.patch
new file mode 100644 (file)
index 0000000..9d69bba
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/setup.py 2009-03-16 15:45:54.000000000 +0100
++++ b/setup.py 2018-06-16 18:23:29.689677175 +0200
+@@ -73,9 +73,6 @@
+                                                          libraries=libname,
+                                                          extra_link_args=lflags_arg)],
+         scripts = ['rdiff-backup', 'rdiff-backup-statistics'],
+-        data_files = [('share/man/man1', ['rdiff-backup.1',
+-                                                                              'rdiff-backup-statistics.1']),
+-                                      ('share/doc/rdiff-backup-%s' % (version_string,),
+-                                       ['CHANGELOG', 'COPYING', 'README', 'FAQ.html'])],
++        data_files = [('share/man/man1', ['rdiff-backup.1','rdiff-backup-statistics.1'])],
+                                       **extra_options)
index 2233c2d12faed48fb143f43e11b2d384a6cdc994..62b2ece86a006064587f3b8285b0c3d6ee295f25 100644 (file)
@@ -25,10 +25,13 @@ RDEPEND="${DEPEND}
        dev-python/pyxattr[${PYTHON_USEDEP}]
 "
 
-PATCHES=( "${FILESDIR}/${P}-librsync-1.0.0.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-librsync-1.0.0.patch"
+       "${FILESDIR}/${P}-no-docs.patch"
+)
 
 python_install_all() {
+       local HTML_DOCS=( FAQ.html )
        use examples && local EXAMPLES=( examples.html )
-
        distutils-r1_python_install_all
 }