summaryrefslogtreecommitdiff
path: root/gnu/packages/version-control.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-23 13:56:41 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:54 +0200
commit6619021d32ca8c9c062d3935312f73fb7098cd12 (patch)
treecb9c66f4a47c5bd8cf187cc311df330456fb09ed /gnu/packages/version-control.scm
parentd2df6e4d23add9cb7abfd4e61e6b4dbccb286ae1 (diff)
gnu: stgit-2: Install info pages, shell completions.
* gnu/packages/version-control.scm (stgit-2)[arguments]: Add a phase to build the info pages and shell completions. Add a phase to install the info pages and shell completions. [native-inputs]: Add asciidoc, docbook2x, libxslt, perl, texinfo, xmlto. Change-Id: Ie82d723e9dc2448492f327329c5a4ef0370f532e
Diffstat (limited to 'gnu/packages/version-control.scm')
-rw-r--r--gnu/packages/version-control.scm30
1 files changed, 28 insertions, 2 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e63ff0ab8d..469a2183c4 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1556,8 +1556,34 @@ lot easier.")
("rust-termcolor" ,rust-termcolor-1)
("rust-thiserror" ,rust-thiserror-1)
("rust-time" ,rust-time-0.3))
- #:install-source? #f))
- (native-inputs (list pkg-config))
+ #:install-source? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-extras
+ (lambda _
+ (substitute* "Documentation/Makefile"
+ (("docbook2x-texi") "docbook2texi"))
+ (setenv "PERL_PATH" "perl")
+ (invoke "make" "-C" "Documentation" "info")
+ (invoke "make" "-C" "completion" "stgit.bash")
+ (invoke "make" "-C" "completion" "stg.fish")))
+ (add-after 'install 'install-extras
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "make" "-C" "Documentation" "install-info"
+ (string-append "prefix=" out))
+ (invoke "make" "-C" "completion" "install"
+ (string-append "prefix=" out)
+ (string-append "bashdir=" out "/etc/bash_completion.d/"))))))))
+ (native-inputs
+ (list pkg-config
+ ;; For the documentation
+ asciidoc
+ docbook2x
+ libxslt
+ perl
+ texinfo
+ xmlto))
(inputs (list openssl zlib curl))
(home-page "https://stacked-git.github.io/")
(synopsis "Stacked Git (StGit) manages Git commits as a stack of patches")