summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-26 21:58:37 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-26 22:10:40 -0400
commit97766323bc6e2b4dcfba4d6b46749a4280bca709 (patch)
tree41ec62ab1c2b98aeb89dff0abcf520ce3ebdcedd
parentgnu: Add python-statmake. (diff)
downloadguix-97766323bc6e2b4dcfba4d6b46749a4280bca709.tar.gz
guix-97766323bc6e2b4dcfba4d6b46749a4280bca709.tar.bz2
guix-97766323bc6e2b4dcfba4d6b46749a4280bca709.tar.xz
gnu: font-abattis-cantarell: Build from source.
* gnu/packages/fonts.scm (font-abattis-cantarell) [source]: Fetch source from git. [build-system]: Switch to meson-build-system. [phases]: Delete phases. [configure-flags]: New argument. [native-inputs]: Remove variable-font archive and unzip. Add gettext-minimal, psautohint, python, python-cffsubr, python-fontmath, python-statmake and python-ufo2ft. [description]: Mention the non-variable and variable font variants.
-rw-r--r--gnu/packages/fonts.scm50
1 files changed, 19 insertions, 31 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index eaa11b1c81..1630c80925 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -212,43 +212,31 @@ Cyrillic, Canadian Syllabics and most Latin based languages are supported.")
212 (version "0.303") 212 (version "0.303")
213 (source 213 (source
214 (origin 214 (origin
215 (method url-fetch/zipbomb) 215 (method git-fetch)
216 (uri (string-append "https://gitlab.gnome.org/GNOME/cantarell-fonts/-/" 216 (uri (git-reference
217 "jobs/1515399/artifacts/download")) 217 (url "https://gitlab.gnome.org/GNOME/cantarell-fonts")
218 (file-name (string-append name "-" version "-static")) 218 (commit (string-append "v" version))))
219 (file-name (git-file-name name version))
219 (sha256 220 (sha256
220 (base32 "1dz551xrrhx6l40j57ksk2alllrihghg4947z1r88dpcq3snpn1s")))) 221 (base32
221 (build-system font-build-system) 222 "1d1ay0fdqchk0wa5yqxis2c98imvzsbbd2kjv0x8sk4fm419847b"))))
223 (build-system meson-build-system)
222 (arguments 224 (arguments
223 `(#:phases 225 (list #:configure-flags #~(list "-Dbuildstatics=true")))
224 (modify-phases %standard-phases
225 (add-after 'unpack 'unpack-source
226 ;; The actual OTF fonts are prebuilt (building them requires at least
227 ;; the currently unpackaged psautohint and its numerous dependencies;
228 ;; TODO), but unpack the source so that COPYING is installed later.
229 (lambda* (#:key outputs #:allow-other-keys)
230 (invoke "tar" "--strip-components=1" "-xvf"
231 (string-append "build/meson-dist/cantarell-fonts-"
232 ,version ".tar.xz"))))
233 (add-after 'unpack 'unpack-variable-font
234 (lambda* (#:key inputs #:allow-other-keys)
235 (let ((variable-font (assoc-ref inputs "variable-font")))
236 (copy-recursively (string-append variable-font "/prebuilt")
237 ".")))))))
238 (native-inputs 226 (native-inputs
239 `(("variable-font" 227 (list gettext-minimal
240 ,(origin 228 psautohint
241 (method url-fetch/zipbomb) 229 python
242 (uri (string-append "https://gitlab.gnome.org/GNOME/cantarell-fonts/-/" 230 python-cffsubr
243 "jobs/1515398/artifacts/download")) 231 python-fontmath
244 (file-name (string-append name "-" version "-variable")) 232 python-statmake
245 (sha256 233 python-ufo2ft))
246 (base32 "0z93pbkxidsx3y98rsl2jm2qpvxv5pj0w870xhnsciglw6pc9a9i"))))
247 ("unzip" ,unzip)))
248 (home-page "https://wiki.gnome.org/Projects/CantarellFonts") 234 (home-page "https://wiki.gnome.org/Projects/CantarellFonts")
249 (synopsis "Cantarell sans-serif typeface") 235 (synopsis "Cantarell sans-serif typeface")
250 (description "The Cantarell font family is a contemporary Humanist 236 (description "The Cantarell font family is a contemporary Humanist
251sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.") 237sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.
238This package contains both the non-variable as well as the variable versions
239of the font.")
252 (license license:silofl1.1))) 240 (license license:silofl1.1)))
253 241
254(define-public font-lato 242(define-public font-lato