[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: font-abattis-cantarell: Build from source.
From: |
guix-commits |
Subject: |
08/08: gnu: font-abattis-cantarell: Build from source. |
Date: |
Sun, 26 Jun 2022 22:35:25 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 97766323bc6e2b4dcfba4d6b46749a4280bca709
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jun 26 21:58:37 2022 -0400
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.
---
gnu/packages/fonts.scm | 50 +++++++++++++++++++-------------------------------
1 file 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.")
(version "0.303")
(source
(origin
- (method url-fetch/zipbomb)
- (uri (string-append "https://gitlab.gnome.org/GNOME/cantarell-fonts/-/"
- "jobs/1515399/artifacts/download"))
- (file-name (string-append name "-" version "-static"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.gnome.org/GNOME/cantarell-fonts")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1dz551xrrhx6l40j57ksk2alllrihghg4947z1r88dpcq3snpn1s"))))
- (build-system font-build-system)
+ (base32
+ "1d1ay0fdqchk0wa5yqxis2c98imvzsbbd2kjv0x8sk4fm419847b"))))
+ (build-system meson-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'unpack-source
- ;; The actual OTF fonts are prebuilt (building them requires at
least
- ;; the currently unpackaged psautohint and its numerous
dependencies;
- ;; TODO), but unpack the source so that COPYING is installed later.
- (lambda* (#:key outputs #:allow-other-keys)
- (invoke "tar" "--strip-components=1" "-xvf"
- (string-append "build/meson-dist/cantarell-fonts-"
- ,version ".tar.xz"))))
- (add-after 'unpack 'unpack-variable-font
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((variable-font (assoc-ref inputs "variable-font")))
- (copy-recursively (string-append variable-font "/prebuilt")
- ".")))))))
+ (list #:configure-flags #~(list "-Dbuildstatics=true")))
(native-inputs
- `(("variable-font"
- ,(origin
- (method url-fetch/zipbomb)
- (uri (string-append
"https://gitlab.gnome.org/GNOME/cantarell-fonts/-/"
- "jobs/1515398/artifacts/download"))
- (file-name (string-append name "-" version "-variable"))
- (sha256
- (base32 "0z93pbkxidsx3y98rsl2jm2qpvxv5pj0w870xhnsciglw6pc9a9i"))))
- ("unzip" ,unzip)))
+ (list gettext-minimal
+ psautohint
+ python
+ python-cffsubr
+ python-fontmath
+ python-statmake
+ python-ufo2ft))
(home-page "https://wiki.gnome.org/Projects/CantarellFonts")
(synopsis "Cantarell sans-serif typeface")
(description "The Cantarell font family is a contemporary Humanist
-sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.")
+sans-serif designed for on-screen reading. It is used by GNOME@tie{}3.
+This package contains both the non-variable as well as the variable versions
+of the font.")
(license license:silofl1.1)))
(define-public font-lato
- branch master updated (8d0e696243 -> 97766323bc), guix-commits, 2022/06/26
- 01/08: gnu: python-setuptools-scm: Move to (gnu packages python-build)., guix-commits, 2022/06/26
- 02/08: gnu: Add python-flit-scm., guix-commits, 2022/06/26
- 04/08: gnu: python-pymongo: Update to 4.1.1., guix-commits, 2022/06/26
- 03/08: gnu: Add python-exceptiongroup., guix-commits, 2022/06/26
- 05/08: gnu: python-immutables: Update to 0.18., guix-commits, 2022/06/26
- 07/08: gnu: Add python-statmake., guix-commits, 2022/06/26
- 06/08: gnu: Add python-cattrs., guix-commits, 2022/06/26
- 08/08: gnu: font-abattis-cantarell: Build from source.,
guix-commits <=