public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bernard Cafarelli" <voyageur@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/rdiff-backup/, app-backup/rdiff-backup/files/
Date: Mon, 19 Dec 2022 21:18:37 +0000 (UTC)	[thread overview]
Message-ID: <1671484713.d49ed7e9a94fe41be0ef8324d27ef745a69dcd20.voyageur@gentoo> (raw)

commit:     d49ed7e9a94fe41be0ef8324d27ef745a69dcd20
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 19 21:16:58 2022 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Mon Dec 19 21:18:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d49ed7e9

app-backup/rdiff-backup: manually install manpages

Using build/ generates errors when multiple python version are enabled

Closes: https://bugs.gentoo.org/887261
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../files/rdiff-backup-2.2.0-no-manpages.patch     | 35 ++++++++++++++++++++++
 app-backup/rdiff-backup/rdiff-backup-2.2.0.ebuild  | 12 ++++++--
 2 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/app-backup/rdiff-backup/files/rdiff-backup-2.2.0-no-manpages.patch b/app-backup/rdiff-backup/files/rdiff-backup-2.2.0-no-manpages.patch
new file mode 100644
index 000000000000..207bf6cfe106
--- /dev/null
+++ b/app-backup/rdiff-backup/files/rdiff-backup-2.2.0-no-manpages.patch
@@ -0,0 +1,35 @@
+diff -Naur rdiff-backup-2.2.0.orig/setup.py rdiff-backup-2.2.0/setup.py
+--- rdiff-backup-2.2.0.orig/setup.py	2022-12-18 09:19:30.000000000 +0100
++++ rdiff-backup-2.2.0/setup.py	2022-12-19 22:00:43.289239007 +0100
+@@ -283,10 +283,7 @@
+         ),
+     ],
+     data_files=[
+-        ("share/man/man1", ["build/rdiff-backup.1",
+-                            "build/rdiff-backup-old.1",
+-                            "build/rdiff-backup-delete.1",
+-                            "build/rdiff-backup-statistics.1"]),
++        ("share/man/man1", ["build/rdiff-backup-old.1"]),
+         (
+             "share/doc/rdiff-backup", [
+                 "CHANGELOG.adoc",
+@@ -311,19 +308,6 @@
+             ("tools/rdiff-backup.spec.template-fedora", "build/rdiff-backup.fedora.spec"),
+             ("docs/rdiff-backup-old.1", "build/rdiff-backup-old.1"),
+         ]},
+-        "build_exec": {"commands": [
+-            ("asciidoctor -b manpage -a revdate=\"{date}\" "
+-             "-a revnumber=\"{ver}\" -o {outfile} {infile}",
+-             ("docs", "rdiff-backup.1.adoc"), ("build", "rdiff-backup.1")),
+-            ("asciidoctor -b manpage -a revdate=\"{date}\" "
+-             "-a revnumber=\"{ver}\" -o {outfile} {infile}",
+-             ("docs", "rdiff-backup-statistics.1.adoc"),
+-             ("build", "rdiff-backup-statistics.1")),
+-            ("asciidoctor -b manpage -a revdate=\"{date}\" "
+-             "-a revnumber=\"{ver}\" -o {outfile} {infile}",
+-             ("docs", "rdiff-backup-delete.1.adoc"),
+-             ("build", "rdiff-backup-delete.1")),
+-        ]},
+     },
+     cmdclass={
+         'build_exec': build_exec,

diff --git a/app-backup/rdiff-backup/rdiff-backup-2.2.0.ebuild b/app-backup/rdiff-backup/rdiff-backup-2.2.0.ebuild
index 398e35fac70f..b65b8b6ec227 100644
--- a/app-backup/rdiff-backup/rdiff-backup-2.2.0.ebuild
+++ b/app-backup/rdiff-backup/rdiff-backup-2.2.0.ebuild
@@ -26,10 +26,16 @@ RDEPEND="dev-python/pylibacl[${PYTHON_USEDEP}]
 	dev-python/pyxattr[${PYTHON_USEDEP}]
 	>=net-libs/librsync-1.0:0="
 
-src_prepare() {
-	mkdir build || die
-	cp "${S}"-manpages/*.1 build || die
+PATCHES=(
+	"${FILESDIR}/${PN}-2.2.0-no-manpages.patch"
+)
 
+src_prepare() {
 	sed -e "s#share/doc/${PN}#share/doc/${PF}#" -i setup.py || die
 	default
 }
+
+python_install_all() {
+	distutils-r1_python_install_all
+	doman "${S}"-manpages/*.1
+}


             reply	other threads:[~2022-12-19 21:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 21:18 Bernard Cafarelli [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-04-02 18:29 [gentoo-commits] repo/gentoo:master commit in: app-backup/rdiff-backup/, app-backup/rdiff-backup/files/ Bernard Cafarelli
2021-12-29 11:16 Bernard Cafarelli
2020-05-30 22:51 Bernard Cafarelli
2020-03-18 19:42 Bernard Cafarelli
2020-03-18 19:42 Bernard Cafarelli
2016-02-15 14:52 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1671484713.d49ed7e9a94fe41be0ef8324d27ef745a69dcd20.voyageur@gentoo \
    --to=voyageur@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox