~ruther/guix-local

3ee1e8028e46108dee1d56c1ce11636d15059672 — Simon South 3 years ago 43c77ee
build-system/font: Add #:license-file-regexp argument.

* 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).
2 files changed, 7 insertions(+), 0 deletions(-)

M guix/build-system/font.scm
M guix/build/font-build-system.scm
M guix/build-system/font.scm => guix/build-system/font.scm +2 -0
@@ 76,6 76,7 @@
                     (tests? #t)
                     (test-target "test")
                     (configure-flags ''())
                     (license-file-regexp '%license-file-regexp)
                     (phases '%standard-phases)
                     (outputs '("out"))
                     (search-paths '())


@@ 97,6 98,7 @@
                            #:system #$system
                            #:test-target #$test-target
                            #:tests? #$tests?
                            #:license-file-regexp #$license-file-regexp
                            #:phases #$(if (pair? phases)
                                           (sexp->gexp phases)
                                           phases)

M guix/build/font-build-system.scm => guix/build/font-build-system.scm +5 -0
@@ 23,6 23,7 @@
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-26)
  #:export (%standard-phases
            %license-file-regexp
            font-build))

;; Commentary:


@@ 56,6 57,10 @@ archive, or a font file."
    (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)