gnu: font-terminus: Install the README.
* gnu/packages/fonts.scm (font-terminus): Add a new 'install-documentation phase.
This commit is contained in:
parent
12ddeaad78
commit
62d42bdd75
1 changed files with 14 additions and 1 deletions
|
@ -580,6 +580,10 @@ The unified Libertinus family consists of:
|
||||||
(outputs (list "out" "pcf-8bit" "otb"))
|
(outputs (list "out" "pcf-8bit" "otb"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no test target in tarball
|
`(#:tests? #f ; no test target in tarball
|
||||||
|
#:modules
|
||||||
|
((guix build gnu-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(ice-9 match))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'build 'build-more-bits
|
(add-after 'build 'build-more-bits
|
||||||
|
@ -601,7 +605,16 @@ The unified Libertinus family consists of:
|
||||||
(lambda* (#:key make-flags outputs #:allow-other-keys)
|
(lambda* (#:key make-flags outputs #:allow-other-keys)
|
||||||
(let ((otb (assoc-ref outputs "otb")))
|
(let ((otb (assoc-ref outputs "otb")))
|
||||||
(apply invoke "make" "install-otb" (string-append "prefix=" otb)
|
(apply invoke "make" "install-otb" (string-append "prefix=" otb)
|
||||||
make-flags)))))))
|
make-flags))))
|
||||||
|
(add-after 'install 'install-documentation
|
||||||
|
;; There's no way to decypher the cryptic file names without this.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(for-each (match-lambda
|
||||||
|
((name . directory)
|
||||||
|
(install-file "README"
|
||||||
|
(string-append directory "/share/doc/"
|
||||||
|
,name "-" ,version))))
|
||||||
|
outputs))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bdftopcf font-util mkfontdir pkg-config python))
|
(list bdftopcf font-util mkfontdir pkg-config python))
|
||||||
(home-page "https://terminus-font.sourceforge.net/")
|
(home-page "https://terminus-font.sourceforge.net/")
|
||||||
|
|
Reference in a new issue