me
/
guix
Archived
1
0
Fork 0

gnu: r-reportingtools: Update to 2.42.3.

* gnu/packages/bioconductor.scm (r-reportingtools): Update to 2.42.3.
[source]: Adjust snippet.
[arguments]: Use minify-build-system in 'process-javascript phase.
[native-inputs]: Remove r-knitr; add r-rmarkdown.

Change-Id: I1c00e1a1d8095f40da29b57b8e82de493fcff26e
Ricardo Wurmus 2023-12-15 17:25:58 +01:00
parent 9013d47d5e
commit c5f2535346
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 15 additions and 22 deletions

View File

@ -9837,18 +9837,16 @@ region sets and other genomic features.")
(define-public r-reportingtools
(package
(name "r-reportingtools")
(version "2.39.0")
(version "2.42.3")
(source
(origin
(method url-fetch)
(uri (bioconductor-uri "ReportingTools" version))
(sha256
(base32
"15h7vqdxfv7y0f82ff7a8brqnscs324x22izlkgjk2wqahnmr2l1"))
"109vmrdsjdjnfrlcdyadzbwz9a50hqaahf7dawwxkbbh4mmdih78"))
(snippet
'(for-each delete-file
(list "inst/doc/jslib/jquery-1.8.0.min.js"
"inst/extdata/jslib/jquery-1.8.0.min.js")))))
'(delete-file "inst/extdata/jslib/jquery-1.8.0.min.js"))))
(properties
`((upstream-name . "ReportingTools")))
(build-system r-build-system)
@ -9856,25 +9854,20 @@ region sets and other genomic features.")
(list
#:modules '((guix build utils)
(guix build r-build-system)
(srfi srfi-1))
(guix build minify-build-system)
(ice-9 match))
#:imported-modules
`(,@%r-build-system-modules
(guix build minify-build-system))
#:phases
'(modify-phases %standard-phases
'(modify-phases (@ (guix build r-build-system) %standard-phases)
(add-after 'unpack 'process-javascript
(lambda* (#:key inputs #:allow-other-keys)
(call-with-values
(lambda ()
(unzip2
`((,(assoc-ref inputs "_")
"inst/doc/jslib/jquery-1.8.0.min.js"))))
(lambda (sources targets)
(for-each (lambda (source target)
(format #true "Processing ~a --> ~a~%"
source target)
(invoke "esbuild" source "--minify"
(string-append "--outfile=" target)))
sources targets)))
(copy-file "inst/doc/jslib/jquery-1.8.0.min.js"
"inst/extdata/jslib/jquery-1.8.0.min.js"))))))
(for-each (match-lambda
((source . target)
(minify source #:target target)))
`((,(assoc-ref inputs "_")
. "inst/extdata/jslib/jquery-1.8.0.min.js"))))))))
(propagated-inputs
(list r-annotate
r-annotationdbi
@ -9896,7 +9889,7 @@ region sets and other genomic features.")
r-r-utils
r-xml))
(native-inputs
(list esbuild r-knitr
(list esbuild r-rmarkdown
(origin
(method url-fetch)
(uri "https://code.jquery.com/jquery-1.8.0.js")