mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
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:
parent
4a9140b1ee
commit
b6726480e2
1 changed files with 24 additions and 30 deletions
|
@ -1226,39 +1226,33 @@ (define-public font-go
|
||||||
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
|
(let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
|
||||||
(revision "1"))
|
(revision "1"))
|
||||||
(package
|
(package
|
||||||
(name "font-go")
|
(name "font-go")
|
||||||
(version (string-append "20170330-" revision "." (string-take commit 7)))
|
(version (string-append "20170330-" revision "." (string-take commit 7)))
|
||||||
(source (origin
|
(source (origin
|
||||||
(file-name (string-append "go-image-" version "-checkout"))
|
(file-name (string-append "go-image-" version "-checkout"))
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://go.googlesource.com/image")
|
(url "https://go.googlesource.com/image")
|
||||||
(commit commit)))
|
(commit commit)))
|
||||||
(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)
|
(home-page "https://blog.golang.org/go-fonts")
|
||||||
(with-directory-excursion
|
(synopsis "The Go font family")
|
||||||
(string-append source "/font/gofont/ttfs")
|
(description
|
||||||
(for-each (lambda (ttf)
|
"The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
|
||||||
(install-file ttf font-dir))
|
|
||||||
(find-files "." "\\.ttf$")))))))
|
|
||||||
(home-page "https://blog.golang.org/go-fonts")
|
|
||||||
(synopsis "The Go font family")
|
|
||||||
(description
|
|
||||||
"The Go font family is a set of WGL4 TrueType fonts from the Bigelow &
|
|
||||||
Holmes type foundry, released under the same license as the Go programming
|
Holmes type foundry, released under the same license as the Go programming
|
||||||
language. It includes a set of proportional, sans-serif fonts, and a set of
|
language. It includes a set of proportional, sans-serif fonts, and a set of
|
||||||
monospace, slab-serif fonts.")
|
monospace, slab-serif fonts.")
|
||||||
(license (package-license go-1.4)))))
|
(license (package-license go-1.4)))))
|
||||||
|
|
||||||
(define-public font-google-material-design-icons
|
(define-public font-google-material-design-icons
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue