[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/54: guix: import: texlive importer handles Ruby linked scripts.
From: |
guix-commits |
Subject: |
01/54: guix: import: texlive importer handles Ruby linked scripts. |
Date: |
Wed, 16 Aug 2023 07:16:54 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 1804a99d055570e7c6e14415790cb7689ce1aa17
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Aug 16 11:46:17 2023 +0200
guix: import: texlive importer handles Ruby linked scripts.
* guix/import/texlive.scm (linked-scripts): Also check for scripts with
".rb" extension.
(tlpdb->package): Add proper RUBY input for Ruby linked scripts.
---
guix/import/texlive.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm
index 581bd1b85b..7e79c77884 100644
--- a/guix/import/texlive.scm
+++ b/guix/import/texlive.scm
@@ -299,7 +299,7 @@ When TEXLIVE-ONLY is true, only TeX Live packages are
returned."
(define (linked-scripts name package-database)
"Return a list of script names to symlink from \"bin/\" directory for
package NAME according to PACKAGE-DATABASE. Consider as scripts files with
-\".lua\", \".pl\", \".py\", \".sh\", \".tcl\", \".texlua\", \".tlu\"
+\".lua\", \".pl\", \".py\", \".rb\", \".sh\", \".tcl\", \".texlua\", \".tlu\"
extensions, and files without extension."
(and-let* ((data (assoc-ref package-database name))
;; Check if binaries are associated to the package.
@@ -318,7 +318,8 @@ extensions, and files without extension."
(filter-map (lambda (script)
(and (any (lambda (ext)
(member (basename script ext) binaries))
- '(".lua" ".pl" ".py" ".sh" ".tcl" ".texlua"
".tlu"))
+ '(".lua" ".pl" ".py" ".rb" ".sh" ".tcl" ".texlua"
+ ".tlu"))
(basename script)))
;; Get the right (alphabetic) order.
(reverse scripts))))
@@ -477,6 +478,7 @@ of those files are returned that are unexpectedly
installed."
,@(match (append-map (lambda (s)
(cond ((string-suffix? ".pl" s) '(perl))
((string-suffix? ".py" s) '(python))
+ ((string-suffix? ".rb" s) '(ruby))
((string-suffix? ".tcl" s) '(tcl tk))
(else '())))
(or scripts '()))
- branch master updated (603db2ad71 -> c7e95cb941), guix-commits, 2023/08/16
- 01/54: guix: import: texlive importer handles Ruby linked scripts.,
guix-commits <=
- 03/54: gnu: Add texlive-ipaex., guix-commits, 2023/08/16
- 02/54: gnu: Add texlive-convbkmk., guix-commits, 2023/08/16
- 04/54: gnu: Add texlive-jsclasses., guix-commits, 2023/08/16
- 06/54: gnu: Add texlive-ascmac., guix-commits, 2023/08/16
- 07/54: gnu: Add texlive-asternote., guix-commits, 2023/08/16
- 08/54: gnu: Add texlive-babel-japanese., guix-commits, 2023/08/16
- 15/54: gnu: Add texlive-bxjatoucs., guix-commits, 2023/08/16
- 19/54: gnu: Add texlive-endnotesj., guix-commits, 2023/08/16
- 09/54: gnu: Add texlive-bxbase., guix-commits, 2023/08/16
- 11/54: gnu: Add texlive-bxghost., guix-commits, 2023/08/16