mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: mpd: Split outputs.
The HTML manual accounts for more than 40% of the package size. * gnu/packages/mpd.scm (mpd)[outputs]: Add 'doc' output. [arguments]<#:phases>: Add ‘split-package’. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
709fd0e5e0
commit
65bce4d9f9
1 changed files with 10 additions and 1 deletions
|
@ -146,7 +146,15 @@ (define-public mpd
|
|||
(("systemd_dep = declare_dependency" all)
|
||||
(string-append "_" all)))
|
||||
(substitute* "meson.build"
|
||||
(("systemd_dep,") "systemd_dep, _systemd_dep,")))))))
|
||||
(("systemd_dep,") "systemd_dep, _systemd_dep,"))))
|
||||
(add-after 'install 'split-package
|
||||
(lambda _
|
||||
;; The HTML manual accounts for over 40% of the disk
|
||||
;; space used by the package.
|
||||
(let* ((old (string-append #$output "/share/doc"))
|
||||
(new (string-append #$output:doc "/share/doc")))
|
||||
(mkdir-p (dirname new))
|
||||
(rename-file old new)))))))
|
||||
(inputs (append
|
||||
(if (target-linux?) (list liburing) '())
|
||||
(list ao
|
||||
|
@ -189,6 +197,7 @@ (define-public mpd
|
|||
;;
|
||||
;; Used when zziplib feature is enabled.
|
||||
zip))
|
||||
(outputs (list "out" "doc"))
|
||||
;; Missing optional inputs:
|
||||
;; libcdio_paranoia
|
||||
;; libmms
|
||||
|
|
Loading…
Reference in a new issue