summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJulius-Plehn <Julius-Plehn@users.noreply.github.com>2020-07-15 19:05:39 +0200
committerGitHub <noreply@github.com>2020-07-15 12:05:39 -0500
commit4ac1a532f384641c2a9b6ad4493a87b34cc0824a (patch)
tree2c463e626add1a94edb54077945162db402f3cc1 /var
parentf42dc4fa4dde1bb91358f27b78b1f8ef5b2cbfbc (diff)
downloadspack-4ac1a532f384641c2a9b6ad4493a87b34cc0824a.tar.gz
spack-4ac1a532f384641c2a9b6ad4493a87b34cc0824a.tar.bz2
spack-4ac1a532f384641c2a9b6ad4493a87b34cc0824a.tar.xz
spack-4ac1a532f384641c2a9b6ad4493a87b34cc0824a.zip
Adds new R package: GSODR (#17529)
* R GSODR package * use cloud mirror
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r-countrycode/package.py19
-rw-r--r--var/spack/repos/builtin/packages/r-data-table/package.py1
-rw-r--r--var/spack/repos/builtin/packages/r-gsodr/package.py24
3 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-countrycode/package.py b/var/spack/repos/builtin/packages/r-countrycode/package.py
new file mode 100644
index 0000000000..b2b07ff2e4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-countrycode/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2020 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)
+
+from spack import *
+
+
+class RCountrycode(RPackage):
+ """Countrycode standardizes country names, converts them into
+ ~40 different coding schemes, and assigns region descriptors."""
+
+ homepage = "https://vincentarelbundock.github.io/countrycode/"
+ url = "https://cloud.r-project.org/src/contrib/countrycode_1.2.0.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/countrycode"
+
+ version('1.2.0', sha256='32c65702dcc33d512ff99f14c12f4e0c48fe7ed7c8aa2f0a64194576d129dd40')
+
+ depends_on('r@2.10:', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/r-data-table/package.py b/var/spack/repos/builtin/packages/r-data-table/package.py
index b9a008eff0..87d5735541 100644
--- a/var/spack/repos/builtin/packages/r-data-table/package.py
+++ b/var/spack/repos/builtin/packages/r-data-table/package.py
@@ -16,6 +16,7 @@ class RDataTable(RPackage):
url = "https://cloud.r-project.org/src/contrib/data.table_1.10.0.tar.gz"
list_url = "https://cloud.r-project.org/src/contrib/Archive/data.table"
+ version('1.12.8', sha256='d3a75f3a355ff144cc20a476041617e21fcf2a9f79265fd9bbd4693f3671f9dc')
version('1.12.2', sha256='db55c18f0d703a8bc1c806dd1f7551bb405cb867717f52ef9dd64405394d22f5')
version('1.12.0', sha256='611b112123dbd4ebd5200770fcdfaaeaab622adeb2b290d36018d3092742e3f7')
version('1.11.8', sha256='dc427465599cadd848b28a78e2fce3362867847b44148252054385999fe566d9')
diff --git a/var/spack/repos/builtin/packages/r-gsodr/package.py b/var/spack/repos/builtin/packages/r-gsodr/package.py
new file mode 100644
index 0000000000..8f1fa82e4d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-gsodr/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2020 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)
+
+from spack import *
+
+
+class RGsodr(RPackage):
+ """A Global Surface Summary of the Day (GSOD) Weather Data Client for R"""
+
+ homepage = "https://docs.ropensci.org/GSODR/"
+ url = "https://cloud.r-project.org/src/contrib/GSODR_2.1.1.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/GSODR"
+
+ version('2.1.1', sha256='dba732e5bd1e367b9d710e6b8924f0c02fa4546202f049124dba02bc2e3329f5')
+
+ depends_on('r@3.5.0:', type=('build', 'run'))
+ depends_on('r-countrycode', type=('build', 'run'))
+ depends_on('r-curl', type=('build', 'run'))
+ depends_on('r-data-table@1.11.6:', type=('build', 'run'))
+ depends_on('r-future-apply', type=('build', 'run'))
+ depends_on('r-httr', type=('build', 'run'))
+ depends_on('r-r-utils', type=('build', 'run'))