[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61253] [PATCH core-updates 01/19] build-system/font: Add #:license-
From: |
Simon South |
Subject: |
[bug#61253] [PATCH core-updates 01/19] build-system/font: Add #:license-file-regexp argument. |
Date: |
Fri, 3 Feb 2023 07:42:58 -0500 |
* guix/build-system/font.scm (font-build): Add #:license-file-regexp argument
and honour it.
* guix/build/font-build-system.scm (%license-file-regexp): New variable,
duplicated from (gnu build gnu-build-system).
---
guix/build-system/font.scm | 2 ++
guix/build/font-build-system.scm | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/guix/build-system/font.scm b/guix/build-system/font.scm
index c43fb9a542..45933b138f 100644
--- a/guix/build-system/font.scm
+++ b/guix/build-system/font.scm
@@ -77,6 +77,7 @@ (define* (font-build name inputs
(tests? #t)
(test-target "test")
(configure-flags ''())
+ (license-file-regexp '%license-file-regexp)
(phases '%standard-phases)
(outputs '("out"))
(search-paths '())
@@ -98,6 +99,7 @@ (define builder
#:system #$system
#:test-target #$test-target
#:tests? #$tests?
+ #:license-file-regexp #$license-file-regexp
#:phases #$(if (pair? phases)
(sexp->gexp phases)
phases)
diff --git a/guix/build/font-build-system.scm b/guix/build/font-build-system.scm
index e4784bc17d..8418ada1d2 100644
--- a/guix/build/font-build-system.scm
+++ b/guix/build/font-build-system.scm
@@ -23,6 +23,7 @@ (define-module (guix build font-build-system)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
#:export (%standard-phases
+ %license-file-regexp
font-build))
;; Commentary:
@@ -56,6 +57,10 @@ (define* (install #:key outputs #:allow-other-keys)
(for-each (cut install-file <> (string-append fonts "/web"))
(find-files source "\\.(woff|woff2)$"))))
+(define %license-file-regexp
+ ;; Regexp matching license files.
+ "^(COPYING.*|LICEN[CS]E.*|[Ll]icen[cs]e.*|Copy[Rr]ight(\\.(txt|md))?)$")
+
(define %standard-phases
(modify-phases gnu:%standard-phases
(replace 'unpack unpack)
--
2.39.1
- [bug#61253] [PATCH core-updates 00/19] Add license files missing from font packages, Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 02/19] build-system/font: Customize %license-file-regexp., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 12/19] gnu: font-go: Install license files., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 09/19] gnu: font-fira-go: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 11/19] gnu: font-space-grotesk: Remove obsolete phase., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 01/19] build-system/font: Add #:license-file-regexp argument.,
Simon South <=
- [bug#61253] [PATCH core-updates 04/19] gnu: font-lato: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 14/19] gnu: font-culmus: Install all license files., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 19/19] gnu: font-charter: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 06/19] gnu: font-wqy-zenhei: Install all license files., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 15/19] gnu: font-dseg: Simplify "install" phase., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 18/19] gnu: font-fontna-yasashisa-antique: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 13/19] gnu: font-dosis: Remove extraneous files; install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 16/19] gnu: font-dseg: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 03/19] gnu: font-canada1500: Install license file., Simon South, 2023/02/03
- [bug#61253] [PATCH core-updates 08/19] gnu: font-fira-sans: Install license file., Simon South, 2023/02/03