mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: font-comic-neue: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-comic-neue): Switch to 'font-build-system'. Re-indent. [source]: Use url-fetch/zipbomb. [native-inputs]: Remove dependency on unzip. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
parent
a5ce48c8f5
commit
b963d8c2e5
1 changed files with 22 additions and 32 deletions
|
@ -1108,39 +1108,29 @@ (define-public font-tamzen
|
||||||
|
|
||||||
(define-public font-comic-neue
|
(define-public font-comic-neue
|
||||||
(package
|
(package
|
||||||
(name "font-comic-neue")
|
(name "font-comic-neue")
|
||||||
(version "2.3")
|
(version "2.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch/zipbomb)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"http://www.comicneue.com/comic-neue-" version ".zip"))
|
"http://www.comicneue.com/comic-neue-" version ".zip"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1695hkpd8kqnr2a88p8xs496slgzxjjkzpa9aa33ml3pnh7519zk"))))
|
"1695hkpd8kqnr2a88p8xs496slgzxjjkzpa9aa33ml3pnh7519zk"))))
|
||||||
(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 "Web")
|
||||||
(source (assoc-ref %build-inputs "source"))
|
#t)))))
|
||||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
(home-page "http://www.comicneue.com/")
|
||||||
"/bin/unzip")))
|
(synopsis "Font that fixes the shortcomings of Comic Sans")
|
||||||
(mkdir-p font-dir)
|
(description
|
||||||
(system* unzip source)
|
"Comic Neue is a font that attempts to create a respectable casual
|
||||||
(with-directory-excursion
|
|
||||||
(string-append "Web")
|
|
||||||
(for-each (lambda (ttf)
|
|
||||||
(install-file ttf font-dir))
|
|
||||||
(find-files "." "\\.ttf$")))))))
|
|
||||||
(native-inputs `(("unzip" ,unzip)))
|
|
||||||
(home-page "http://www.comicneue.com/")
|
|
||||||
(synopsis "Font that fixes the shortcomings of Comic Sans")
|
|
||||||
(description
|
|
||||||
"Comic Neue is a font that attempts to create a respectable casual
|
|
||||||
typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
|
typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
|
||||||
(license license:silofl1.1)))
|
(license license:silofl1.1)))
|
||||||
|
|
||||||
(define-public font-iosevka
|
(define-public font-iosevka
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue