GNU bug report logs -
#78069
[PATCH 0/1] libsecret: Add bin output.
Previous Next
Full log
Message #14 received at 78069 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/gnome.scm (libsecret): Add "bin" output.
[phases] add "install-man-to-bin" phase to install the compressed documentation
to the new output.
Change-Id: I4f07c0f040b980b557c72d299fb02e8ccb2cb521
---
gnu/packages/gnome.scm | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 34162d5138..3f12052079 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5355,10 +5355,13 @@ (define-public libsecret
(base32
"081bj59ws08kb261cd1w1mkdkhfbzsjbbkkrm6wllvdyhgbhhg8n"))))
(build-system meson-build-system)
+ (outputs '("out" "bin"))
(arguments
(list
#:configure-flags
- #~(list "-Dgtk_doc=false") ;requires gi-docgen
+ #~(list "-Dgtk_doc=false" ;requires gi-docgen
+ (string-append "--bindir="
+ #$output:bin "/bin"))
#:phases
#~(modify-phases %standard-phases
(delete 'check)
@@ -5367,11 +5370,19 @@ (define-public libsecret
(when tests?
(setenv "HOME" "/tmp")
(setenv "XDG_DATA_DIRS" ;for /org/freedesktop/secrets/collection
- (string-append #$output "/share:"
+ (string-append #$output:out "/share:"
(getenv "XDG_DATA_DIRS")))
(apply invoke "dbus-run-session" "--"
"meson" "test" "--print-errorlogs" "-t" "0"
- test-options)))))))
+ test-options))))
+ (add-after 'compress-documentation 'install-man-to-bin
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (bin (assoc-ref outputs "bin"))
+ (man "/share/man/man1"))
+ (mkdir-p (string-append bin man))
+ (copy-file (string-append out man "/secret-tool.1.zst")
+ (string-append bin man "/secret-tool.1.zst"))))))))
(native-inputs
(list dbus
docbook-xml-4.2
base-commit: 7ff20b9e94c429f1160bd8f0db86b153a03e4683
--
2.49.0
This bug report was last modified 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.