diff options
author | Justin Stanley <molecuul@users.noreply.github.com> | 2018-11-13 11:02:39 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-11-13 11:02:39 -0600 |
commit | e1f9ddd574dc460a43870617051f2865bf53be31 (patch) | |
tree | f620c9afefcb2a5da9ef0b16b6d50ffb88efc9d8 /var | |
parent | 4f27bb4f4e22c023612075340cf690a83fd36d96 (diff) | |
download | spack-e1f9ddd574dc460a43870617051f2865bf53be31.tar.gz spack-e1f9ddd574dc460a43870617051f2865bf53be31.tar.bz2 spack-e1f9ddd574dc460a43870617051f2865bf53be31.tar.xz spack-e1f9ddd574dc460a43870617051f2865bf53be31.zip |
erne: new package starting at 2.1.1 (#9676)
* erne: new package starting at 2.1.1
* erne: remove unused configure args
* erne: remove unused prefix arg
* erne: add explicit mpi disable
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/erne/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/erne/package.py b/var/spack/repos/builtin/packages/erne/package.py new file mode 100644 index 0000000000..912976cf42 --- /dev/null +++ b/var/spack/repos/builtin/packages/erne/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2018 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 Erne(AutotoolsPackage): + """The Extended Randomized Numerical alignEr using BWT""" + + homepage = "http://erne.sourceforge.net/" + url = "https://downloads.sourceforge.net/project/erne/2.1.1/erne-2.1.1-source.tar.gz" + + version('2.1.1', sha256='f32ab48481fd6c129b0a0246ab02b6e3a2a9da84024e1349510a59c15425d983') + + variant('mpi', default=False, + description='Build with OpenMPI support') + + depends_on('boost@1.40.0:', type=('build', 'link', 'run')) + depends_on('openmpi', type=('build', 'run'), when='+mpi') + + def configure_args(self): + if '+mpi' in self.spec: + return ['--enable-openmpi'] + else: + return ['--disable-openmpi'] + + def build(self, spec, prefix): + # override the AUTOCONF environment to prevent double configure + # this catches any invocations and ignores them + make('AUTOCONF=:') + + def install(self, spec, prefix): + # same catch with installing + make('install', 'AUTOCONF=:') |