gnu: font-wqy-microhei: Use 'font-build-system'.

* gnu/packages/fonts.scm (font-wqy-microhei): Switch to font-build-system.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Feng Shu 2017-07-16 05:57:02 +08:00 committed by Ludovic Courtès
parent 9b7ee28d57
commit 7fc6ce46f9
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 17 deletions

View File

@ -516,23 +516,7 @@ ko (Korean) locales for @code{fontconfig}.")
(sha256
(base32
"0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8"))))
(build-system trivial-build-system)
(arguments
`(#:modules ((guix build utils))
#:builder
(begin
(use-modules (guix build utils))
(let ((PATH (string-append (assoc-ref %build-inputs "tar") "/bin:"
(assoc-ref %build-inputs "gzip") "/bin"))
(font-dir (string-append (assoc-ref %outputs "out")
"/share/fonts/wenquanyi")))
(mkdir-p font-dir)
(setenv "PATH" PATH)
(system* "tar" "xvf" (assoc-ref %build-inputs "source"))
(install-file "wqy-microhei/wqy-microhei.ttc" font-dir)))))
(native-inputs
`(("gzip" ,gzip)
("tar" ,tar)))
(build-system font-build-system)
(home-page "http://wenq.org/wqy2/")
(synopsis "CJK font")
(description