commit: 6419c207f76b47943212367ba76b5099ccd02497 Author: Marcin Deranek <marcin.deranek <AT> slonko <DOT> net> AuthorDate: Thu Aug 3 15:49:31 2023 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sat Oct 28 04:07:24 2023 +0000 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 <marcin.deranek <AT> slonko.net> Closes: https://github.com/gentoo/gentoo/pull/32156 Signed-off-by: Zac Medico <zmedico <AT> 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 000000000000..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 <oleg.hoefl...@ionos.com> +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 <oleg.hoefl...@ionos.com> +--- + 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" )