gnu: font-go: Use 'font-build-system'.

* gnu/packages/fonts.scm (font-go): Switch to font-build-system.
Re-indent.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Alex Griffin 2017-05-31 14:54:20 -05:00 committed by Danny Milosavljevic
parent 4a9140b1ee
commit b6726480e2
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -1237,20 +1237,14 @@ (define-public font-go
(sha256 (sha256
(base32 (base32
"1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d")))) "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
(build-system trivial-build-system) (build-system font-build-system)
(arguments (arguments
`(#:modules ((guix build utils)) `(#:phases
#:builder (begin (modify-phases %standard-phases
(use-modules (guix build utils)) (add-before 'install 'chdir
(let ((font-dir (string-append %output (lambda _
"/share/fonts/truetype")) (chdir "font/gofont/ttfs")
(source (assoc-ref %build-inputs "source"))) #t)))))
(mkdir-p font-dir)
(with-directory-excursion
(string-append source "/font/gofont/ttfs")
(for-each (lambda (ttf)
(install-file ttf font-dir))
(find-files "." "\\.ttf$")))))))
(home-page "https://blog.golang.org/go-fonts") (home-page "https://blog.golang.org/go-fonts")
(synopsis "The Go font family") (synopsis "The Go font family")
(description (description