Subject: [bug#70496] [PATCH 10/14] gnu: font-recursive: Split outputs.

From: [email-masked]
Date: Sun, 21 Apr 2024 18:28:44 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/fonts.scm (font-recurive)[outputs]: New field.
[arguments]: New field.  Add 'remove-separate-statics' phase.

Change-Id: I4ab81efb12ded417724ed103339dac0125110592
---
 gnu/packages/fonts.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 7262add973..bad5ffffac 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -3746,6 +3746,17 @@ (define-public font-recursive
                (base32
                 "00ns6zwizp0wyxyrf7fxqmxm4gl7ygarxq1mj952h78q1rxdzjyb"))))
     (build-system font-build-system)
+    ;; Default to ttf, which has "Rec Mono" for code and variable font.
+    (outputs '("out" "otf" "woff"))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'install 'remove-separate-statics
+            (lambda _
+              ;; Prefer otc/ttc collection over those seperate files.
+              (delete-file-recursively
+               "Recursive_Desktop/separate_statics/"))))))
     (home-page "https://www.recursive.design/")
     (synopsis "Variable font family for code & UI")
     (description "Recursive Sans & Mono is a variable type family built for
-- 
2.41.0