[gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx-celery/files/, dev-python/sphinx-celery/

2023-10-27 Thread Zac Medico
commit: 6419c207f76b47943212367ba76b5099ccd02497
Author: Marcin Deranek  slonko  net>
AuthorDate: Thu Aug  3 15:49:31 2023 +
Commit: Zac Medico  gentoo  org>
CommitDate: Sat Oct 28 04:07:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6419c207

dev-python/sphinx-celery: Add placeholder to extlinks

Closes: https://bugs.gentoo.org/911637
Signed-off-by: Marcin Deranek  slonko.net>
Closes: https://github.com/gentoo/gentoo/pull/32156
Signed-off-by: Zac Medico  gentoo.org>

 .../files/sphinx-celery-2.0.0-extlinks.patch   | 41 ++
 ...0.0-r3.ebuild => sphinx-celery-2.0.0-r4.ebuild} |  3 ++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch 
b/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch
new file mode 100644
index ..a57dce428118
--- /dev/null
+++ b/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch
@@ -0,0 +1,41 @@
+From 46d3ea167e7b6eab24f35354f44822981bc76767 Mon Sep 17 00:00:00 2001
+From: Oleg Hoefling 
+Date: Tue, 23 Aug 2022 15:56:17 +0200
+Subject: [PATCH] add placeholder to each extlinks caption
+
+https://github.com/celery/sphinx_celery/pull/40
+Signed-off-by: Oleg Hoefling 
+---
+ sphinx_celery/conf.py | 10 +-
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/sphinx_celery/conf.py b/sphinx_celery/conf.py
+index b35bc2b..8a6895b 100644
+--- a/sphinx_celery/conf.py
 b/sphinx_celery/conf.py
+@@ -158,20 +158,20 @@
+ 
+ extlinks.setdefault('sha', (
+ 'https://github.com/{0}/commit/%s'.format(github_project),
+-'GitHub SHA@',
++'GitHub SHA@%s',
+ ))
+ extlinks.setdefault('github_branch', (
+ 'https://github.com/{0}/tree/%s'.format(github_project),
+-'GitHub branch',
++'GitHub branch %s',
+ ))
+ extlinks.setdefault('github_user', (
+-'https://github.com/%s/', '@',
++'https://github.com/%s/', '@%s',
+ ))
+ extlinks.setdefault('pypi', (
+-'https://pypi.python.org/pypi/%s/', '',
++'https://pypi.python.org/pypi/%s/', None,
+ ))
+ extlinks.setdefault('wikipedia', (
+-'https://en.wikipedia.org/wiki/%s', '',
++'https://en.wikipedia.org/wiki/%s', None,
+ ))
+ 
+ if not canonical_dev_url:

diff --git a/dev-python/sphinx-celery/sphinx-celery-2.0.0-r3.ebuild 
b/dev-python/sphinx-celery/sphinx-celery-2.0.0-r4.ebuild
similarity index 83%
rename from dev-python/sphinx-celery/sphinx-celery-2.0.0-r3.ebuild
rename to dev-python/sphinx-celery/sphinx-celery-2.0.0-r4.ebuild
index c7091b89ec15..c8dd44e950bb 100644
--- a/dev-python/sphinx-celery/sphinx-celery-2.0.0-r3.ebuild
+++ b/dev-python/sphinx-celery/sphinx-celery-2.0.0-r4.ebuild
@@ -22,3 +22,6 @@ RDEPEND="
dev-python/six[${PYTHON_USEDEP}]
>=dev-python/sphinx-2.0.0[${PYTHON_USEDEP}]
 "
+
+# https://bugs.gentoo.org/show_bug.cgi?id=911637
+PATCHES=( "${FILESDIR}/${P}-extlinks.patch" )



[gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx-celery/files/

2023-10-27 Thread Zac Medico
commit: 8e5ab972973752e9d14cd99a9a0f83e0fe6c6ea8
Author: Zac Medico  gentoo  org>
AuthorDate: Sat Oct 28 04:02:18 2023 +
Commit: Zac Medico  gentoo  org>
CommitDate: Sat Oct 28 04:07:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5ab972

dev-python/sphinx-celery: trim patch context

Signed-off-by: Zac Medico  gentoo.org>

 .../files/sphinx-celery-2.0.0-extlinks.patch| 21 +
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch 
b/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch
index a57dce428118..c01e8dde882d 100644
--- a/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch
+++ b/dev-python/sphinx-celery/files/sphinx-celery-2.0.0-extlinks.patch
@@ -13,29 +13,18 @@ diff --git a/sphinx_celery/conf.py b/sphinx_celery/conf.py
 index b35bc2b..8a6895b 100644
 --- a/sphinx_celery/conf.py
 +++ b/sphinx_celery/conf.py
-@@ -158,20 +158,20 @@
- 
- extlinks.setdefault('sha', (
- 'https://github.com/{0}/commit/%s'.format(github_project),
+@@ -161 +161 @@
 -'GitHub SHA@',
 +'GitHub SHA@%s',
- ))
- extlinks.setdefault('github_branch', (
- 'https://github.com/{0}/tree/%s'.format(github_project),
+@@ -165 +165 @@
 -'GitHub branch',
 +'GitHub branch %s',
- ))
- extlinks.setdefault('github_user', (
+@@ -168 +168 @@
 -'https://github.com/%s/', '@',
 +'https://github.com/%s/', '@%s',
- ))
- extlinks.setdefault('pypi', (
+@@ -171 +171 @@
 -'https://pypi.python.org/pypi/%s/', '',
 +'https://pypi.python.org/pypi/%s/', None,
- ))
- extlinks.setdefault('wikipedia', (
+@@ -174 +174 @@
 -'https://en.wikipedia.org/wiki/%s', '',
 +'https://en.wikipedia.org/wiki/%s', None,
- ))
- 
- if not canonical_dev_url: