diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2023-07-15 15:59:01 +0200 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2023-07-15 16:00:53 +0200 |
commit | 593b9705c8e6519948ee0ab17563662c06c97516 (patch) | |
tree | ac306441d201cd16496980d9fff205bc57c16081 /x11/kitty/files/patch-docs_conf.py | |
parent | databases/py-unqlite: Update version 0.9.3=>0.9.4 (diff) |
x11/kitty: Update to 0.29.0
- Remove patches merged by upstream
- Update lib dependencies
- Pet portfmt/portclippy/portlint
- Add option DOCS
- Don't install all files in $PREFIX/lib/kitty, but in the canonical
directories DATADIR, DESKTOPDIR, etc.
- Add a couple of patch to fix some links in the documentation.
Error shown:
fatal: ambiguous argument '8dea5b3': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'ad1109b': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument '889ca77': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
reading sources... [100%] protocol-extensions .. unscroll
/usr/local/poudriere/ports/default/x11/kitty/work/github.com/kovidgoyal/kitty@v0.29.0/docs/changelog.rst:2940: ERROR: GitHub commit id "8dea5b3" not recognized.
/usr/local/poudriere/ports/default/x11/kitty/work/github.com/kovidgoyal/kitty@v0.29.0/docs/changelog.rst:3055: ERROR: GitHub commit id "ad1109b" not recognized.
/usr/local/poudriere/ports/default/x11/kitty/work/github.com/kovidgoyal/kitty@v0.29.0/docs/changelog.rst:3067: ERROR: GitHub commit id "889ca77" not recognized.
Release changes: https://sw.kovidgoyal.net/kitty/changelog/#id1
Diffstat (limited to 'x11/kitty/files/patch-docs_conf.py')
-rw-r--r-- | x11/kitty/files/patch-docs_conf.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/x11/kitty/files/patch-docs_conf.py b/x11/kitty/files/patch-docs_conf.py new file mode 100644 index 000000000000..a9775ffc7d43 --- /dev/null +++ b/x11/kitty/files/patch-docs_conf.py @@ -0,0 +1,23 @@ +--- docs/conf.py.orig 2023-05-12 12:26:28 UTC ++++ docs/conf.py +@@ -207,18 +207,10 @@ def commit_role( + name: str, rawtext: str, text: str, lineno: int, inliner: Any, options: Any = {}, content: Any = [] + ) -> Tuple[List[nodes.reference], List[nodes.problematic]]: + ' Link to a github commit ' +- try: +- commit_id = subprocess.check_output( +- f'git rev-list --max-count=1 --skip=# {text}'.split()).decode('utf-8').strip() +- except Exception: +- msg = inliner.reporter.error( +- f'GitHub commit id "{text}" not recognized.', line=lineno) +- prb = inliner.problematic(rawtext, rawtext, msg) +- return [prb], [msg] ++ commit_id = text + url = f'https://github.com/kovidgoyal/kitty/commit/{commit_id}' + set_classes(options) +- short_id = subprocess.check_output( +- f'git rev-list --max-count=1 --abbrev-commit --skip=# {commit_id}'.split()).decode('utf-8').strip() ++ short_id = text[:9] + node = nodes.reference(rawtext, f'commit: {short_id}', refuri=url, **options) + return [node], [] + # }}} |