[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/212: import/cran: Add directory-needs-esbuild?.
From: |
guix-commits |
Subject: |
03/212: import/cran: Add directory-needs-esbuild?. |
Date: |
Sat, 18 Feb 2023 14:00:44 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 6ce68a7a83a6106da9abaa818e25084e882219b5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Feb 17 22:20:45 2023 +0100
import/cran: Add directory-needs-esbuild?.
* guix/import/cran.scm (directory-needs-esbuild?): New procedure.
(source-dir->dependencies): Use it.
---
guix/import/cran.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index c4b36da12b..632d632163 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -447,6 +447,13 @@ empty list when the FIELD cannot be found."
(() #f)
(_ #t)))
+(define (directory-needs-esbuild? dir)
+ "Check if the directory DIR contains minified JavaScript files and thus
+needs a JavaScript compiler."
+ (match (find-files dir "\\.min.js$")
+ (() #f)
+ (_ #t)))
+
(define (files-match-pattern? directory regexp . file-patterns)
"Return #T if any of the files matching FILE-PATTERNS in the DIRECTORY match
the given REGEXP."
@@ -479,6 +486,7 @@ of package names for INPUTS and another list of names of
NATIVE-INPUTS."
(values
(if (directory-needs-zlib? dir) '("zlib") '())
(append
+ (if (directory-needs-esbuild? dir) '("esbuild") '())
(if (directory-needs-pkg-config? dir) '("pkg-config") '())
(if (directory-needs-fortran? dir) '("gfortran") '()))))
- branch master updated (b795976778 -> 0ba69c1ee2), guix-commits, 2023/02/18
- 01/212: gnu: r-liger: Rename to r-rliger., guix-commits, 2023/02/18
- 05/212: import/cran: Process all vignette builders., guix-commits, 2023/02/18
- 07/212: import/cran: Remove directory-needs-zlib? in favor of needed-libraries-in-directory., guix-commits, 2023/02/18
- 02/212: gnu: r-readods: Update to 1.8.0., guix-commits, 2023/02/18
- 04/212: import/cran: Add name mapping for libjpeg., guix-commits, 2023/02/18
- 03/212: import/cran: Add directory-needs-esbuild?.,
guix-commits <=
- 06/212: import/cran: Add generic way to detect needed libraries., guix-commits, 2023/02/18
- 08/212: gnu: r-flexdashboard: Update to 0.6.1., guix-commits, 2023/02/18
- 11/212: gnu: Add r-gfonts., guix-commits, 2023/02/18
- 13/212: gnu: r-d3r: Update to 1.0.1., guix-commits, 2023/02/18
- 14/212: gnu: r-wgcna: Update to 1.72-1., guix-commits, 2023/02/18
- 15/212: gnu: r-abn: Update to 2.7-3., guix-commits, 2023/02/18
- 17/212: gnu: r-ggalluvial: Update to 0.12.4., guix-commits, 2023/02/18
- 23/212: gnu: r-mapproj: Update to 1.2.11., guix-commits, 2023/02/18
- 18/212: gnu: r-ggpp: Update to 0.5.1., guix-commits, 2023/02/18
- 28/212: gnu: r-lpsolve: Update to 5.6.18., guix-commits, 2023/02/18