diff options
author | Neil Flood <neilflood@fastmail.fm> | 2018-09-14 23:11:16 +1000 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-09-14 08:11:16 -0500 |
commit | 1122fc3d1e715c3ceb2bb3d112960f8be52ae3e3 (patch) | |
tree | dfe01116cc800d8b645a08af9d00d243ce820aa2 | |
parent | 98d8c4d7cac604ee53d8ba41d81bb7a727a461c9 (diff) | |
download | spack-1122fc3d1e715c3ceb2bb3d112960f8be52ae3e3.tar.gz spack-1122fc3d1e715c3ceb2bb3d112960f8be52ae3e3.tar.bz2 spack-1122fc3d1e715c3ceb2bb3d112960f8be52ae3e3.tar.xz spack-1122fc3d1e715c3ceb2bb3d112960f8be52ae3e3.zip |
r-nloptr: Explicit depends_on(nlopt). Previously there was a hidden d… (#9176)
* r-nloptr: Explicit depends_on(nlopt). Previously there was a hidden dependency, masked by the package's configure script.
* r-nloptr: Change spelling of variables to satisfy pyflake8
* r-nloptr: Break a long line to satisfy pyflake8
* r-nloptr: larger indent on continuation, to satisfy pyflake8
* r-nloptr: another attempt at larger indent on continuation, to satisfy pyflake8
* r-nloptr: now a smaller indent on continuation, to satisfy pyflake8
* r-nloptr: Another attempt at right amount of indent.
* r-nloptr: Another attempt at right amount of indent.
* Use the correct attributes for finding the nlopt includes and libs.
* Lines too long, split into pieces
-rw-r--r-- | var/spack/repos/builtin/packages/r-nloptr/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-nloptr/package.py b/var/spack/repos/builtin/packages/r-nloptr/package.py index e5ac989522..f1fd3eaa83 100644 --- a/var/spack/repos/builtin/packages/r-nloptr/package.py +++ b/var/spack/repos/builtin/packages/r-nloptr/package.py @@ -42,3 +42,13 @@ class RNloptr(RPackage): version('1.0.4', 'f2775dfb4f7f5552d46937a04c062b0d') depends_on('r-testthat', type=('build', 'run')) + depends_on('nlopt') + + def configure_args(self): + include_flags = self.spec['nlopt'].headers.include_flags + libs = self.spec['nlopt'].libs.libraries[0] + args = [ + '--with-nlopt-cflags={0}'.format(include_flags), + '--with-nlopt-libs={0}'.format(libs) + ] + return args |