unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#71476] [PATCH] gnu: Add r-rphyloxml.
@ 2024-06-10 15:41 Afkhami, Navid
  2024-06-28 20:49 ` bug#71476: " Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Afkhami, Navid @ 2024-06-10 15:41 UTC (permalink / raw)
  To: 71476; +Cc: Afkhami, Navid

* gnu/packages/bioinformatics.scm (r-rphyloxml): New variable.

Change-Id: I5b799986064f2af5fe74454f2e78fea7d9947260
---
 gnu/packages/bioinformatics.scm | 43 +++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index cecd94bbb7..3282258b48 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -14096,6 +14096,49 @@ (define-public sambamba
 sort, markdup, and depth.")
     (license license:gpl2+)))
 
+(define-public r-rphyloxml
+  (let ((commit "a30e39249239b2de01d6964ae2a2205a6c48b475")
+        (revision "1"))
+    (package
+      (name "r-rphyloxml")
+      (version (git-version "0.0-9000" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/USCbiostats/rphyloxml")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "15ijzqvjxx6vqyqlg5asdbqlhw1g0ix6palf1rism3si0qapddgw"))))
+      (properties `((upstream-name . "rphyloxml")))
+      (build-system r-build-system)
+      (arguments
+       (list
+        #:modules '((guix build r-build-system)
+                    (guix build minify-build-system)
+                    (guix build utils)
+                    (ice-9 match))
+        #:imported-modules `(,@%r-build-system-modules (guix build
+                                                        minify-build-system))
+        #:phases '(modify-phases %standard-phases
+                    (add-after 'unpack 'process-javascript
+                      (lambda* (#:key inputs #:allow-other-keys)
+                        (with-directory-excursion "inst/"
+                          (for-each (match-lambda
+                                      ((source . target) (minify source
+                                                                 #:target
+                                                                 target)))
+                                    '())))))))
+      (propagated-inputs (list r-ape r-xml2))
+      (native-inputs (list esbuild))
+      (home-page "https://github.com/USCbiostats/rphyloxml")
+      (synopsis "Read and write phyloXML files in R")
+      (description
+       "The package reads phylogenetic data in the @code{phyloXML} format.
+It also includes functions for writing data in this format.")
+      (license license:expat))))
+
 (define-public ritornello
   (package
     (name "ritornello")

base-commit: 2b2337f275a6421a0d0964c54987df4ac74162e6
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#71476: [PATCH] gnu: Add r-rphyloxml.
  2024-06-10 15:41 [bug#71476] [PATCH] gnu: Add r-rphyloxml Afkhami, Navid
@ 2024-06-28 20:49 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2024-06-28 20:49 UTC (permalink / raw)
  To: 71476-done

Thanks for the patch.  This one was incomplete: the importer only
generates a skeleton to replace minified JavaScript files.  I fleshed it
out and added the missing inputs.

-- 
Ricardo




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-28 20:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10 15:41 [bug#71476] [PATCH] gnu: Add r-rphyloxml Afkhami, Navid
2024-06-28 20:49 ` bug#71476: " Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).