mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: font-anonymous-pro: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-anonymous-pro): Switch to font-build-system.
This commit is contained in:
parent
c226f06c59
commit
bbb1a1d2cf
1 changed files with 1 additions and 22 deletions
|
@ -583,28 +583,7 @@ (define-public font-anonymous-pro
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
|
"1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
|
||||||
(build-system trivial-build-system)
|
(build-system font-build-system)
|
||||||
(arguments
|
|
||||||
`(#:modules ((guix build utils))
|
|
||||||
#:builder
|
|
||||||
(begin
|
|
||||||
(use-modules (guix build utils))
|
|
||||||
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
|
|
||||||
"/bin/unzip"))
|
|
||||||
(font-dir (string-append %output "/share/fonts/truetype"))
|
|
||||||
(doc-dir (string-append %output "/share/doc/" ,name)))
|
|
||||||
(system* unzip (assoc-ref %build-inputs "source"))
|
|
||||||
(mkdir-p font-dir)
|
|
||||||
(mkdir-p doc-dir)
|
|
||||||
(chdir (string-append "AnonymousPro-" ,version ".001"))
|
|
||||||
(for-each (lambda (ttf)
|
|
||||||
(install-file ttf font-dir))
|
|
||||||
(find-files "." "\\.ttf$"))
|
|
||||||
(for-each (lambda (doc)
|
|
||||||
(install-file doc doc-dir))
|
|
||||||
(find-files "." "\\.txt$"))))))
|
|
||||||
(native-inputs
|
|
||||||
`(("unzip" ,unzip)))
|
|
||||||
(home-page "http://www.marksimonson.com/fonts/view/anonymous-pro")
|
(home-page "http://www.marksimonson.com/fonts/view/anonymous-pro")
|
||||||
(synopsis "Fixed-width fonts designed with coding in mind")
|
(synopsis "Fixed-width fonts designed with coding in mind")
|
||||||
(description "Anonymous Pro is a family of four fixed-width fonts designed
|
(description "Anonymous Pro is a family of four fixed-width fonts designed
|
||||||
|
|
Loading…
Reference in a new issue