gnu: font-google-material-design-icons: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-google-material-design-icons): Re-indent. Switch to font-build-system. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
parent
0e5c9cf530
commit
99e9d598e3
1 changed files with 16 additions and 39 deletions
|
|
@ -1044,51 +1044,28 @@ monospace, slab-serif fonts.")
|
||||||
|
|
||||||
(define-public font-google-material-design-icons
|
(define-public font-google-material-design-icons
|
||||||
(package
|
(package
|
||||||
(name "font-google-material-design-icons")
|
(name "font-google-material-design-icons")
|
||||||
(version "3.0.1")
|
(version "3.0.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://github.com/google/material-design-icons/archive/"
|
"https://github.com/google/material-design-icons/archive/"
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
|
"183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
(file-name (string-append name "-" version ".tar.gz"))))
|
||||||
(build-system trivial-build-system)
|
(build-system font-build-system)
|
||||||
(native-inputs
|
(home-page "http://google.github.io/material-design-icons")
|
||||||
`(("tar" ,tar)
|
(synopsis "Icon font of Google Material Design icons")
|
||||||
("gzip" ,gzip)))
|
(description
|
||||||
(arguments
|
"Material design system icons are simple, modern, friendly, and sometimes
|
||||||
`(#:modules ((guix build utils))
|
|
||||||
#:builder (begin
|
|
||||||
(use-modules (guix build utils))
|
|
||||||
(let* ((font-dir (string-append %output
|
|
||||||
"/share/fonts/truetype"))
|
|
||||||
(source (assoc-ref %build-inputs "source"))
|
|
||||||
(font-filename "MaterialIcons-Regular.ttf")
|
|
||||||
(src-ttf-file (string-append "material-design-icons-"
|
|
||||||
,version
|
|
||||||
"/iconfont/"
|
|
||||||
font-filename))
|
|
||||||
(dest-ttf-file (string-append font-dir font-filename))
|
|
||||||
(gzip (assoc-ref %build-inputs "gzip"))
|
|
||||||
(tar (assoc-ref %build-inputs "tar")))
|
|
||||||
(setenv "PATH" (string-append gzip "/bin:"
|
|
||||||
tar "/bin:"))
|
|
||||||
(system* "tar" "xf" source)
|
|
||||||
(mkdir-p font-dir)
|
|
||||||
(copy-file src-ttf-file dest-ttf-file)))))
|
|
||||||
(home-page "http://google.github.io/material-design-icons")
|
|
||||||
(synopsis "Icon font of Google Material Design icons")
|
|
||||||
(description
|
|
||||||
"Material design system icons are simple, modern, friendly, and sometimes
|
|
||||||
quirky. Each icon is created using our design guidelines to depict in simple
|
quirky. Each icon is created using our design guidelines to depict in simple
|
||||||
and minimal forms the universal concepts used commonly throughout a UI.
|
and minimal forms the universal concepts used commonly throughout a UI.
|
||||||
Ensuring readability and clarity at both large and small sizes, these icons
|
Ensuring readability and clarity at both large and small sizes, these icons
|
||||||
have been optimized for beautiful display on all common platforms and display
|
have been optimized for beautiful display on all common platforms and display
|
||||||
resolutions.")
|
resolutions.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public font-mathjax
|
(define-public font-mathjax
|
||||||
(package
|
(package
|
||||||
|
|
|
||||||
Reference in a new issue