summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAmjad Kotobi <amjadkotbi@gmail.com>2020-05-13 19:42:16 +0200
committerGitHub <noreply@github.com>2020-05-13 12:42:16 -0500
commit9b8082ecf3103d1393792f17565f10917457ac30 (patch)
tree4301c7af08788620509860a2eb6864782cc3ece9 /var
parentfa57f1da2991e4205c4ece0ef7754a2c4ffe50dd (diff)
downloadspack-9b8082ecf3103d1393792f17565f10917457ac30.tar.gz
spack-9b8082ecf3103d1393792f17565f10917457ac30.tar.bz2
spack-9b8082ecf3103d1393792f17565f10917457ac30.tar.xz
spack-9b8082ecf3103d1393792f17565f10917457ac30.zip
r-exactextractr: new package (#16626)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r-exactextractr/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-exactextractr/package.py b/var/spack/repos/builtin/packages/r-exactextractr/package.py
new file mode 100644
index 0000000000..abe1b945e9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-exactextractr/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2019 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 RExactextractr(AutotoolsPackage):
+ """Provides a replacement for the 'extract' function from the 'raster'
+ package that is suitable for extracting raster values using 'sf'
+ polygons.
+ """
+
+ homepage = "https://cloud.r-project.org/package=exactextractr"
+ url = "https://cran.r-project.org/src/contrib/exactextractr_0.3.0.tar.gz"
+ list_url = "https://cran.r-project.org/src/contrib/Archive/exactextractr"
+
+ version('0.3.0', sha256='c7fb38b38b9dc8b3ca5b8f1f84f4ba3256efd331f2b4636b496d42689ffc3fb0')
+ version('0.2.1', sha256='d0b998c77c3fd9265a600a0e08e9bf32a2490a06c19df0d0c0dea4b5c9ab5773')
+
+ depends_on('r@3.4:', type=('build', 'run'))
+ depends_on('r-raster', type=('build', 'run'))
+ depends_on('r-sf', type=('build', 'run'))
+ depends_on('r-rcpp@0.12.12:', type=('build', 'run'))
+ depends_on('geos@3.5:', type=('build', 'run', 'link'))