gnu: fontutils: Remove PDF files from the "doc" output.
* gnu/packages/fontutils.scm (fontconfig)[arguments]: Add 'remove-pdf-files' phase.
This commit is contained in:
parent
d6517ddb8e
commit
dbb4c665e4
1 changed files with 7 additions and 0 deletions
|
@ -373,6 +373,13 @@ Font Format (WOFF).")
|
||||||
(copy-recursively source target)
|
(copy-recursively source target)
|
||||||
(delete-file-recursively source)))
|
(delete-file-recursively source)))
|
||||||
'("man3" "man5"))
|
'("man3" "man5"))
|
||||||
|
#t)))
|
||||||
|
(add-after 'install 'remove-pdf-files
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; By default PDF versions of the user and development manuals are
|
||||||
|
;; installs but they bring nothing useful. Remove them.
|
||||||
|
(let ((doc (assoc-ref outputs "doc")))
|
||||||
|
(for-each delete-file (find-files doc "\\.pdf$"))
|
||||||
#t))))))
|
#t))))))
|
||||||
(synopsis "Library for configuring and customizing font access")
|
(synopsis "Library for configuring and customizing font access")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue