diff options
author | Prafulla Giri <pratheblackdiamond@gmail.com> | 2020-08-25 22:54:56 +0545 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-08-25 20:35:09 +0300 |
commit | 8b760279766eb182bb15d04e9765c72c081471cc (patch) | |
tree | 87d54d807512ccff5b59013fec8d7327c25d0cb6 /gnu | |
parent | c6a7ae4f140208bcd1198577f11a9c5f5ee62d55 (diff) | |
download | guix-8b760279766eb182bb15d04e9765c72c081471cc.tar guix-8b760279766eb182bb15d04e9765c72c081471cc.tar.gz |
gnu: git-lfs: Install man pages.
* gnu/packages/version-control.scm (git-lfs)[arguments]: Add build
phases to build and install man pages.
[native-inputs]: Add ronn-ng.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/version-control.scm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index fb36da9c41..0acd2551e0 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2587,7 +2587,25 @@ interrupted, published, and collaborated on while in progress.") "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc")))) (build-system go-build-system) (arguments - '(#:import-path "github.com/git-lfs/git-lfs")) + `(#:import-path "github.com/git-lfs/git-lfs" + #:phases + (modify-phases %standard-phases + (add-after 'build 'build-man-pages + (lambda _ + (with-directory-excursion "src/github.com/git-lfs/git-lfs" + (invoke "make" "man")) + #t)) + (add-after 'install 'install-man-pages + (lambda _ + (with-directory-excursion "src/github.com/git-lfs/git-lfs/man" + (let ((out (assoc-ref %outputs "out"))) + (for-each + (lambda (manpage) + (install-file manpage (string-append out "/share/man/man1"))) + (find-files "." "^git-lfs.*\\.1$")))) + #t))))) + ;; make `ronn` available during build for man page generation + (native-inputs `(("ronn-ng" ,ronn-ng))) (home-page "https://git-lfs.github.com/") (synopsis "Git extension for versioning large files") (description |