diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2020-02-09 19:26:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 19:26:31 -0600 |
commit | 30b30e11dcdd8ea0894b61d427fcbe2dfe30d525 (patch) | |
tree | efe107f72c31d9d47402318ae39d758f0385a65f | |
parent | 6d2e6e1f4d403ec445888b2da21b5969ab128033 (diff) | |
download | spack-30b30e11dcdd8ea0894b61d427fcbe2dfe30d525.tar.gz spack-30b30e11dcdd8ea0894b61d427fcbe2dfe30d525.tar.bz2 spack-30b30e11dcdd8ea0894b61d427fcbe2dfe30d525.tar.xz spack-30b30e11dcdd8ea0894b61d427fcbe2dfe30d525.zip |
New package - r-rmariadb (#14762)
* New package - r-rmariadb
This PR creates the r-rmariadb package. It also includes an update to
the r-dbi package as a newer version of that is needed.
* Update var/spack/repos/builtin/packages/r-rmariadb/package.py
Argh, copy/paste. I wish the mirror would list itself as the archive site as well, but it just mirrors that data field from CRAN site. Thanks for catching that, I will make sure to look for that in the future.
Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>
* Use mariadb-client
Use mariadb-client so people can set a preferred provider.
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/r-dbi/package.py | 1 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/r-rmariadb/package.py | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-dbi/package.py b/var/spack/repos/builtin/packages/r-dbi/package.py index 49cfa2a22e..cca20df5ec 100644 --- a/var/spack/repos/builtin/packages/r-dbi/package.py +++ b/var/spack/repos/builtin/packages/r-dbi/package.py @@ -15,6 +15,7 @@ class RDbi(RPackage): url = "https://cloud.r-project.org/src/contrib/DBI_0.7.tar.gz" list_url = "https://cloud.r-project.org/src/contrib/Archive/DBI" + version('1.1.0', sha256='a96db7fa39a58f1ed34c6e78d8f5f7e4cf0882afb301323b5c6975d6729203e4') version('1.0.0', sha256='ff16f118eb3f759183441835e932b87358dd80ab9800ce576a8f3df1b6f01cf5') version('0.4-1', sha256='eff14a9af4975f23f8e1f4347d82c33c32c0b4f4f3e11370c582a89aeb8ac68e') version('0.7', sha256='2557d5d59a45620ec9de340c2c25eec4cc478d3fc3f8b87979cf337c5bcfde11') diff --git a/var/spack/repos/builtin/packages/r-rmariadb/package.py b/var/spack/repos/builtin/packages/r-rmariadb/package.py new file mode 100644 index 0000000000..ac7ea12323 --- /dev/null +++ b/var/spack/repos/builtin/packages/r-rmariadb/package.py @@ -0,0 +1,29 @@ +# 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 RRmariadb(RPackage): + """Implements a 'DBI'-compliant interface to 'MariaDB' + (<https://mariadb.org/>) and 'MySQL' (<https://www.mysql.com/>) + databases.""" + + homepage = "https://rmariadb.r-dbi.org/" + url = "https://cloud.r-project.org/src/contrib/RMariaDB_1.0.8.tar.gz" + list_url = "https://cloud.r-project.org/src/contrib/Archive/RMariaDB" + + version('1.0.8', sha256='3c8aedc519dc063ceb068535a3700bc5caf26f867078cc5a228aa8961e2d99f5') + + depends_on('r@2.8.0:', type=('build', 'run')) + depends_on('r-bit64', type=('build', 'run')) + depends_on('r-dbi@1.1.0:', type=('build', 'run')) + depends_on('r-hms@0.5.0:', type=('build', 'run')) + depends_on('r-rcpp@0.12.4:', type=('build', 'run')) + depends_on('r-bh', type=('build', 'run')) + depends_on('r-plogr', type=('build', 'run')) + + # non-R dependencies + depends_on('mariadb-client') |