From a0fc573ff4f49f07ea25d4b8950a22649508194d Mon Sep 17 00:00:00 2001 From: Neil Flood Date: Sun, 25 Nov 2018 06:21:54 +1000 Subject: r-geor: new package, and a couple of its dependencies (#9920) * r-geor: new package, and a couple of its dependencies * Update to new copyright header * Include the list_url for the R package archive dir * Added explicit version ranges on dependencies, as per the relevant CRAN pages * Correct dependency types in r-splancs. --- var/spack/repos/builtin/packages/r-geor/package.py | 23 ++++++++++++++++++++++ .../builtin/packages/r-randomfields/package.py | 22 +++++++++++++++++++++ .../packages/r-randomfieldsutils/package.py | 21 ++++++++++++++++++++ .../repos/builtin/packages/r-splancs/package.py | 19 ++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 var/spack/repos/builtin/packages/r-geor/package.py create mode 100644 var/spack/repos/builtin/packages/r-randomfields/package.py create mode 100644 var/spack/repos/builtin/packages/r-randomfieldsutils/package.py create mode 100644 var/spack/repos/builtin/packages/r-splancs/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/r-geor/package.py b/var/spack/repos/builtin/packages/r-geor/package.py new file mode 100644 index 0000000000..b0573fed08 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-geor/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2018 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 RGeor(RPackage): + """Geostatistical analysis including traditional, likelihood-based + and Bayesian methods.""" + + homepage = "https://cran.r-project.org/web/packages/geoR/" + url = "https://cran.r-project.org/src/contrib/geoR_1.7-5.2.1.tar.gz" + list_url = "https://cran.r-project.org/src/contrib/Archive/geoR" + + version('1.7-5.2.1', 'a50f477bea1bec9070a4de01f69b831c') + + depends_on('r@2.10:', type=('build', 'run')) + depends_on('r-mass', type=('build', 'run')) + depends_on('r-sp', type=('build', 'run')) + depends_on('r-splancs', type=('build', 'run')) + depends_on('r-randomfields', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-randomfields/package.py b/var/spack/repos/builtin/packages/r-randomfields/package.py new file mode 100644 index 0000000000..d5465ae4d3 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-randomfields/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2018 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 RRandomfields(RPackage): + """Methods for the inference on and the simulation of Gaussian fields + are provided, as well as methods for the simulation of extreme + value random fields.""" + + homepage = "https://cran.r-project.org/web/packages/RandomFields" + url = "https://cran.r-project.org/src/contrib/RandomFields_3.1.50.tar.gz" + list_url = "https://cran.r-project.org/src/contrib/Archive/RandomFields" + + version('3.1.50', 'fd91aea76365427c0ba3b25fb3af43a6') + + depends_on('r@3.3:', type=('build', 'run')) + depends_on('r-sp', type=('build', 'run')) + depends_on('r-randomfieldsutils@0.3.25:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-randomfieldsutils/package.py b/var/spack/repos/builtin/packages/r-randomfieldsutils/package.py new file mode 100644 index 0000000000..a6c0acaf4e --- /dev/null +++ b/var/spack/repos/builtin/packages/r-randomfieldsutils/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2018 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 RRandomfieldsutils(RPackage): + """Various utilities are provided that might be used in spatial statistics + and elsewhere. It delivers a method for solving linear equations that + checks the sparsity of the matrix before any algorithm is used. + Furthermore, it includes the Struve functions.""" + + homepage = "https://cran.r-project.org/web/packages/RandomFieldsUtils" + url = "https://cran.r-project.org/src/contrib/RandomFieldsUtils_0.3.25.tar.gz" + list_url = "https://cran.r-project.org/src/contrib/Archive/RandomFieldsUtils" + + version('0.3.25', '026c15a23296c9726012135891f016d5') + + depends_on('r@3.3:', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/r-splancs/package.py b/var/spack/repos/builtin/packages/r-splancs/package.py new file mode 100644 index 0000000000..79441b2323 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-splancs/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2018 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 RSplancs(RPackage): + """Spatial and Space-Time Point Pattern Analysis""" + + homepage = "https://cran.r-project.org/web/packages/splancs/index.html" + url = "https://cran.r-project.org/src/contrib/splancs_2.01-40.tar.gz" + list_url = "https://cran.r-project.org/src/contrib/Archive/splancs" + + version('2.01-40', 'dc08a5c9a1fd2098d78459152f4917ce') + + depends_on('r@2.10:', type=('build', 'run')) + depends_on('r-sp@0.9:', type=('build', 'run')) -- cgit v1.2.3-70-g09d2