summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Duckworth <quackmaster@protonmail.com>2017-05-18 16:37:47 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-18 15:37:47 -0500
commitf72cd79ad1737f44616827c96f3ea32d7ac93738 (patch)
tree1b349e86be364a63f0e0aebf0b99af30804fda7d
parent04ccb8f774ebe415e0cc7c8a37fc6662a0125f73 (diff)
downloadspack-f72cd79ad1737f44616827c96f3ea32d7ac93738.tar.gz
spack-f72cd79ad1737f44616827c96f3ea32d7ac93738.tar.bz2
spack-f72cd79ad1737f44616827c96f3ea32d7ac93738.tar.xz
spack-f72cd79ad1737f44616827c96f3ea32d7ac93738.zip
add mpi support to meme (#4265)
* added openmpi support to meme * openmpi is a link dependency which leverages r_path * openmpi support now the default - meme does not have configure argument for mpi - if it's found then it's used * added serial option and set mpi to not be default * modified meme
-rw-r--r--var/spack/repos/builtin/packages/meme/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/meme/package.py b/var/spack/repos/builtin/packages/meme/package.py
index ca7554c565..87174c391e 100644
--- a/var/spack/repos/builtin/packages/meme/package.py
+++ b/var/spack/repos/builtin/packages/meme/package.py
@@ -35,9 +35,20 @@ class Meme(AutotoolsPackage):
version('4.11.4', '371f513f82fa0888205748e333003897')
+ variant('mpi', default=True, description='Enable MPI support')
+
depends_on('zlib', type=('link'))
depends_on('libxml2', type=('link'))
depends_on('libxslt', type=('link'))
depends_on('libgcrypt', type=('link'))
depends_on('perl', type=('build', 'run'))
depends_on('python@2.7:', type=('build', 'run'))
+ depends_on('mpi', when='+mpi')
+
+ # disable mpi support
+ def configure_args(self):
+ spec = self.spec
+ args = []
+ if '~mpi' in spec:
+ args += ['--enable-serial']
+ return args