summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <7978778+snehring@users.noreply.github.com>2024-05-03 14:20:58 -0500
committerGitHub <noreply@github.com>2024-05-03 12:20:58 -0700
commitecc4336bf97da0072ebb777624097b4deac6da5a (patch)
tree62de417bb72b9fe05e341fea6cc69d97953663c5
parentd2ed2177966d1c7c125167291709dc9e67d06e1d (diff)
downloadspack-ecc4336bf97da0072ebb777624097b4deac6da5a.tar.gz
spack-ecc4336bf97da0072ebb777624097b4deac6da5a.tar.bz2
spack-ecc4336bf97da0072ebb777624097b4deac6da5a.tar.xz
spack-ecc4336bf97da0072ebb777624097b4deac6da5a.zip
r-asreml: adding new package (#43970)
Signed-off-by: Shane Nehring <snehring@iastate.edu>
-rw-r--r--var/spack/repos/builtin/packages/r-asreml/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-asreml/package.py b/var/spack/repos/builtin/packages/r-asreml/package.py
new file mode 100644
index 0000000000..5cd9e69c6f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-asreml/package.py
@@ -0,0 +1,43 @@
+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+import os
+
+from spack.package import *
+
+
+class RAsreml(RPackage):
+ """ASReml-R is a statistical package that fits linear mixed models using
+ Residual Maximum Likelihood (REML) in the R environment."""
+
+ homepage = "https://vsni.co.uk/software/asreml-r"
+
+ manual_download = True
+ license_required = True
+ license_vars = ["vsni_LICENSE"]
+ license_files = ["vsni.lic"]
+
+ maintainers("snehring")
+
+ license("UNKNOWN", checked_by="snehring")
+
+ version(
+ "4.2.0.302_R42", sha256="93196b68a987fd0a8d26fa7463cab60bd35c7be750c4832332945d71907425cd"
+ )
+ version(
+ "4.2.0.302_R43", sha256="0a685521c80e3263ebb852886d3e1bd31213bd83507e7fffca34261ae18523f9"
+ )
+
+ depends_on("r@4.2.0:4.2", type=("build", "run"), when="@4.2.0.302_R42")
+ depends_on("r@4.3.0:4.3", type=("build", "run"), when="@4.2.0.302_R43")
+ depends_on("r-data-table", type=("build", "run"))
+ depends_on("r-ggplot2", type=("build", "run"))
+ depends_on("r-jsonlite", type=("build", "run"))
+
+ def url_for_version(self, version):
+ return f"file://{os.getcwd()}//asreml_{version}_x86_64-pc-linux-gnu.tar.gz"
+
+ def setup_run_environment(self, env):
+ env.set("vsni_LICENSE", join_path(self.prefix, "vsni.lic"))