diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-10-25 16:53:11 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-25 07:53:11 -0700 |
commit | b27e78cd78dae11f7fa7cc2ba3849cfcff2e1880 (patch) | |
tree | 71257154ff035f2d5adc436ac2f05d4efd9900fd /var | |
parent | d7b624457ff3765c35e4adb9be70d1a2e86e0f2e (diff) | |
download | spack-b27e78cd78dae11f7fa7cc2ba3849cfcff2e1880.tar.gz spack-b27e78cd78dae11f7fa7cc2ba3849cfcff2e1880.tar.bz2 spack-b27e78cd78dae11f7fa7cc2ba3849cfcff2e1880.tar.xz spack-b27e78cd78dae11f7fa7cc2ba3849cfcff2e1880.zip |
spack setup : fixed regression after #1186 (#2117)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gromacs/package.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index 8611dc2026..d079188db6 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -25,7 +25,7 @@ from spack import * -class Gromacs(Package): +class Gromacs(CMakePackage): """GROMACS (GROningen MAchine for Chemical Simulations) is a molecular dynamics package primarily designed for simulations of proteins, lipids and nucleic acids. It was originally developed in the Biophysical @@ -64,28 +64,22 @@ class Gromacs(Package): if '+plumed' in self.spec: self.spec['plumed'].package.apply_patch(self) - def install(self, spec, prefix): + def cmake_args(self): options = [] - if '+mpi' in spec: + if '+mpi' in self.spec: options.append('-DGMX_MPI:BOOL=ON') - if '+double' in spec: + if '+double' in self.spec: options.append('-DGMX_DOUBLE:BOOL=ON') - if '~shared' in spec: + if '~shared' in self.spec: options.append('-DBUILD_SHARED_LIBS:BOOL=OFF') - if '+debug' in spec: + if '+debug' in self.spec: options.append('-DCMAKE_BUILD_TYPE:STRING=Debug') else: options.append('-DCMAKE_BUILD_TYPE:STRING=Release') - options.extend(std_cmake_args) - - with working_dir('spack-build', create=True): - - cmake('..', *options) - make() - make('install') + return options |