From b03bcd0d01a1355a09012237022aff550d26d7e1 Mon Sep 17 00:00:00 2001 From: Prafulla Giri Date: Tue, 25 Aug 2020 22:54:56 +0545 Subject: [PATCH 1/2] git-lfs: build, and install man pages to user's GUIX_PROFILE * gnu/packages/version-control.scm (git-lfs): Add build phases to build and install man pages to the user's GUIX_PROFILE. [native-inputs]: Add `ronn-ng`. --- gnu/packages/version-control.scm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index fb36da9c41..94ecb235e9 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2584,10 +2584,26 @@ interrupted, published, and collaborated on while in progress.") (file-name (git-file-name name version)) (sha256 (base32 - "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 -- 2.28.0