gnu: font-gnu-freefont-ttf: Update to 20120503 and build from source.
* gnu/packages/fonts.scm (font-gnu-freefont-ttf): Update to 20120503. [arguments]: Build from source. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
97425486ee
commit
47268eec13
|
@ -33,10 +33,12 @@
|
||||||
#:use-module (guix build-system trivial)
|
#:use-module (guix build-system trivial)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages zip)
|
#:use-module (gnu packages fontutils)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages xorg)
|
#:use-module (gnu packages xorg)
|
||||||
#:use-module (gnu packages pkg-config))
|
#:use-module (gnu packages zip))
|
||||||
|
|
||||||
(define-public font-inconsolata
|
(define-public font-inconsolata
|
||||||
(package
|
(package
|
||||||
|
@ -260,47 +262,44 @@ sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
|
||||||
(define-public font-gnu-freefont-ttf
|
(define-public font-gnu-freefont-ttf
|
||||||
(package
|
(package
|
||||||
(name "font-gnu-freefont-ttf")
|
(name "font-gnu-freefont-ttf")
|
||||||
(version "20100919")
|
(version "20120503")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnu/freefont/freefont-ttf-"
|
(uri (string-append "mirror://gnu/freefont/freefont-src-"
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1q3h5jp1mbdkinkwxy0lfd0a1q7azlbagraydlzaa2ng82836wg4"))))
|
"0yk58blhcd4hm7nyincmqq4jrzjjk82wif2zmk1l3y2m4vif4qhd"))))
|
||||||
(build-system trivial-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:phases (modify-phases %standard-phases
|
||||||
#:builder (begin
|
(delete 'configure)
|
||||||
(use-modules (guix build utils)
|
(replace 'install
|
||||||
(srfi srfi-26))
|
(lambda _
|
||||||
|
(let ((doc-dir (string-append %output "/share/doc/"
|
||||||
(let ((tar (string-append (assoc-ref %build-inputs
|
,name "-" ,version))
|
||||||
"tar")
|
(font-dir (string-append %output
|
||||||
"/bin/tar"))
|
"/share/fonts/truetype")))
|
||||||
(PATH (string-append (assoc-ref %build-inputs
|
(mkdir-p doc-dir)
|
||||||
"gzip")
|
(substitute* "Makefile"
|
||||||
"/bin"))
|
(("\\$\\(TMPDIR\\)") doc-dir)
|
||||||
(font-dir (string-append %output
|
(("sfd/\\*.ttf") ""))
|
||||||
"/share/fonts/truetype"))
|
(system* "make" "ttftar")
|
||||||
(doc-dir (string-append %output "/share/doc/"
|
(mkdir-p font-dir)
|
||||||
,name "-" ,version)))
|
(for-each (lambda (file)
|
||||||
(setenv "PATH" PATH)
|
|
||||||
(system* tar "xvf" (assoc-ref %build-inputs "source"))
|
|
||||||
|
|
||||||
(mkdir-p font-dir)
|
|
||||||
(mkdir-p doc-dir)
|
|
||||||
(chdir (string-append "freefont-" ,version))
|
|
||||||
(for-each (lambda (file)
|
|
||||||
(let ((dir (if (string-suffix? "ttf" file)
|
|
||||||
font-dir
|
|
||||||
doc-dir)))
|
|
||||||
(copy-file file
|
(copy-file file
|
||||||
(string-append dir "/" file))))
|
(string-append font-dir "/"
|
||||||
(find-files "." ""))))))
|
(basename file))))
|
||||||
(native-inputs `(("source" ,source)
|
(filter
|
||||||
("tar" ,tar)
|
(lambda (file) (string-suffix? "ttf" file))
|
||||||
("gzip" ,gzip)))
|
(find-files "." "")))))))
|
||||||
|
#:test-target "tests"))
|
||||||
|
;; replace python 3 with python 2
|
||||||
|
;; python 3 support commits aren't yet released in 20120503
|
||||||
|
;; so freefont needs python 2 support in fontforge
|
||||||
|
(native-inputs `(("fontforge" ,(package (inherit fontforge)
|
||||||
|
(inputs `(("python-2" ,python-2)
|
||||||
|
,@(package-inputs fontforge)))))))
|
||||||
(home-page "http://www.gnu.org/software/freefont/")
|
(home-page "http://www.gnu.org/software/freefont/")
|
||||||
(synopsis "Unicode-encoded outline fonts")
|
(synopsis "Unicode-encoded outline fonts")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue