diff options
| author | Dariqq <dariqq@posteo.net> | 2026-02-27 13:55:13 +0000 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-16 20:01:52 +0100 |
| commit | d2de7901e67b26ec740e179b127224048f4cb340 (patch) | |
| tree | 64d026eb23b10015b44c5b096588140dd9fe8ff3 /gnu/packages/version-control.scm | |
| parent | 851d02997abbba560669ca3f989286c8584c69dd (diff) | |
gnu: breezy: Install man-pages, bash-completion add bzr symlink.
Since change to pyproject-build-system the man pages no longer got built
and installed.
* gnu/packages/version-control.scm (breezy):
[#:phases]: Add 'build-man, 'install-man, 'install-completion and
'bzr-compat phases.
Merges guix/guix!6740
Change-Id: I73324a5f74bbff5ae6e3b33cf1d159767c942e98
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages/version-control.scm')
| -rw-r--r-- | gnu/packages/version-control.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index a6662ff8b24..650cf76ac80 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm | |||
| @@ -231,6 +231,28 @@ | |||
| 231 | (find-files "breezy/tests")) | 231 | (find-files "breezy/tests")) |
| 232 | (("#!/bin/sh") | 232 | (("#!/bin/sh") |
| 233 | (format #f "#!~a" (which "sh")))))) | 233 | (format #f "#!~a" (which "sh")))))) |
| 234 | (add-after 'build 'build-man | ||
| 235 | (lambda _ | ||
| 236 | (invoke "python3" "tools/generate_docs.py" "man"))) | ||
| 237 | (add-after 'install 'install-man | ||
| 238 | (lambda _ | ||
| 239 | (let ((man1 (string-append #$output "/share/man/man1"))) | ||
| 240 | (install-file "brz.1" man1) | ||
| 241 | (install-file "breezy/git/git-remote-bzr.1" man1)))) | ||
| 242 | (add-after 'install 'install-completion | ||
| 243 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 244 | (let* ((bash (string-append #$output | ||
| 245 | "/share/bash-completion/completions"))) | ||
| 246 | (install-file "contrib/bash/brz" bash)))) | ||
| 247 | (add-after 'install-man 'bzr-compat | ||
| 248 | (lambda _ | ||
| 249 | (let ((bin (string-append #$output "/bin")) | ||
| 250 | (man1 (string-append #$output "/share/man/man1"))) | ||
| 251 | (symlink (in-vicinity bin "brz") | ||
| 252 | (in-vicinity bin "bzr")) | ||
| 253 | (call-with-output-file (string-append man1 "/bzr.1") | ||
| 254 | (lambda (port) | ||
| 255 | (format port ".so man1/brz.1")))))) | ||
| 234 | (replace 'check | 256 | (replace 'check |
| 235 | (lambda* (#:key tests? #:allow-other-keys) | 257 | (lambda* (#:key tests? #:allow-other-keys) |
| 236 | (when tests? | 258 | (when tests? |
