diff options
author | Justin S <3630356+codeandkey@users.noreply.github.com> | 2019-07-12 18:50:04 -0500 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-07-12 16:50:04 -0700 |
commit | 9b361bea5a9eeb20afb1e28135f950ac5f00b1ea (patch) | |
tree | f682b409cce960ca051189727f05b24f6f849259 | |
parent | d1af7ae5abdfbca7ff6fb6c2d24699625ac027f0 (diff) | |
download | spack-9b361bea5a9eeb20afb1e28135f950ac5f00b1ea.tar.gz spack-9b361bea5a9eeb20afb1e28135f950ac5f00b1ea.tar.bz2 spack-9b361bea5a9eeb20afb1e28135f950ac5f00b1ea.tar.xz spack-9b361bea5a9eeb20afb1e28135f950ac5f00b1ea.zip |
r package: add rmath variant for standalone rmath library (#11693)
-rw-r--r-- | var/spack/repos/builtin/packages/r/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py index eb5a6f4a8f..65276d9269 100644 --- a/var/spack/repos/builtin/packages/r/package.py +++ b/var/spack/repos/builtin/packages/r/package.py @@ -49,6 +49,8 @@ class R(AutotoolsPackage): description='Enable X11 support (call configure --with-x)') variant('memory_profiling', default=False, description='Enable memory profiling') + variant('rmath', default=False, + description='Build standalone Rmath library') # Virtual dependencies depends_on('blas', when='+external-lapack') @@ -89,6 +91,18 @@ class R(AutotoolsPackage): def etcdir(self): return join_path(prefix, 'rlib', 'R', 'etc') + @run_after('build') + def build_rmath(self): + if '+rmath' in self.spec: + with working_dir('src/nmath/standalone'): + make() + + @run_after('install') + def install_rmath(self): + if '+rmath' in self.spec: + with working_dir('src/nmath/standalone'): + make('install') + def configure_args(self): spec = self.spec prefix = self.prefix |