mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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.
This commit is contained in:
parent
603db2ad71
commit
1804a99d05
1 changed files with 4 additions and 2 deletions
|
@ -299,7 +299,7 @@ (define (formats package-data)
|
|||
(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 @@ (define (linked-scripts name package-database)
|
|||
(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 @@ (define (tlpdb->package name version package-database)
|
|||
,@(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 '()))
|
||||
|
|
Loading…
Reference in a new issue