summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-03-22 06:48:06 -0500
committerGitHub <noreply@github.com>2021-03-22 12:48:06 +0100
commit2741b69791988095ac0349443639141fd647d7dd (patch)
tree6db07dbd055e3035fd193c9fb4dcafa5f5f77f0f
parentd203456790b0b7516f0ef7969f13fe7acec8c4f3 (diff)
downloadspack-2741b69791988095ac0349443639141fd647d7dd.tar.gz
spack-2741b69791988095ac0349443639141fd647d7dd.tar.bz2
spack-2741b69791988095ac0349443639141fd647d7dd.tar.xz
spack-2741b69791988095ac0349443639141fd647d7dd.zip
r-s2: new package plus new dependency r-wk (#22443)
-rw-r--r--var/spack/repos/builtin/packages/r-s2/package.py26
-rw-r--r--var/spack/repos/builtin/packages/r-wk/package.py24
2 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-s2/package.py b/var/spack/repos/builtin/packages/r-s2/package.py
new file mode 100644
index 0000000000..55c928466b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-s2/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2021 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 RS2(RPackage):
+ """Spherical Geometry Operators Using the S2 Geometry Library
+
+ Provides R bindings for Google's s2 library for geometric calculations on
+ the sphere. High-performance constructors and exporters provide high
+ compatibility with existing spatial packages, transformers construct new
+ geometries from existing geometries, predicates provide a means to select
+ geometries based on spatial relationships, and accessors extract
+ information about geometries."""
+
+ homepage = "https://r-spatial.github.io/s2/"
+ cran = "s2"
+
+ version('1.0.4', sha256='3c274ebae33aa5473f94afb3066c6f388aced17ff3b5f6add9edcc9af22b985e')
+
+ depends_on('r@3.0.0:', type=('build', 'run'))
+ depends_on('r-rcpp', type=('build', 'run'))
+ depends_on('r-wk', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/r-wk/package.py b/var/spack/repos/builtin/packages/r-wk/package.py
new file mode 100644
index 0000000000..d6d9aea2d9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-wk/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2021 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 RWk(RPackage):
+ """Lightweight Well-Known Geometry Parsing
+
+ Provides a minimal R and C++ API for parsing well-known binary and
+ well-known text representation of geometries to and from R-native formats.
+ Well-known binary is compact and fast to parse; well-known text is
+ human-readable and is useful for writing tests. These formats are only
+ useful in R if the information they contain can be accessed in R, for which
+ high-performance functions are provided here."""
+
+ homepage = "https://paleolimbot.github.io/wk/"
+ cran = "wk"
+
+ version('0.4.1', sha256='daa7351af0bd657740972016906c686f335b8fa922ba10250e5000ddc2bb8950')
+
+ depends_on('r-cpp11', type=('build', 'run'))