Update MrBayes to 3.2.7a and correct MPI variants (#13929)

* Update MrBayes and correct MPI variant

* Use tarballs and remove autotools dependencies

* MrBayes: remove ISA variants
This commit is contained in:
Yuanqi Wang 2019-12-04 00:31:00 +08:00 committed by Adam J. Stewart
parent 7e2d01b238
commit a5d872f510

View file

@ -13,21 +13,18 @@ class Mrbayes(AutotoolsPackage):
of model parameters.""" of model parameters."""
homepage = "http://mrbayes.sourceforge.net" homepage = "http://mrbayes.sourceforge.net"
git = "https://github.com/NBISweden/MrBayes.git" url = "https://github.com/NBISweden/MrBayes/releases/download/v3.2.7a/mrbayes-3.2.7a.tar.gz"
version('2017-11-22', commit='8a9adb11bcc538cb95d91d57568dff383f924503') version('3.2.7a', sha256='1a4670be84e6b968d59382328294db4c8ceb73e0c19c702265deec6f2177815c')
version('3.2.7', sha256='39d9eb269969b501268d5c27f77687c6eaa2c71ccf15c724e6f330fc405f24b9')
variant('mpi', default=True, description='Enable MPI parallel support') variant('mpi', default=True, description='Enable MPI parallel support')
variant('beagle', default=True, description='Enable BEAGLE library for speed benefits') variant('beagle', default=True, description='Enable BEAGLE library for speed benefits')
variant('sse', default=True, description='Enable SSE in order to substantially speed up execution') variant('readline', default=False, description='Enable readline library, not recommended with MPI')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on('libbeagle', when='+beagle') depends_on('libbeagle', when='+beagle')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
depends_on('readline', when='+readline')
def configure_args(self): def configure_args(self):
args = [] args = []
@ -35,14 +32,14 @@ def configure_args(self):
args.append('--with-beagle=no') args.append('--with-beagle=no')
else: else:
args.append('--with-beagle=%s' % self.spec['libbeagle'].prefix) args.append('--with-beagle=%s' % self.spec['libbeagle'].prefix)
if '~sse' in self.spec: if '+readline' in self.spec:
args.append('--enable-sse=no') args.append('--with-readline=yes')
else: else:
args.append('--enable-sse=yes') args.append('--with-readline=no')
if '~mpi' in self.spec: if '~mpi' in self.spec:
args.append('--enable-mpi=no') args.append('--with-mpi=no')
else: else:
args.append('--enable-mpi=yes') args.append('--with-mpi=yes')
return args return args
def install(self, spec, prefix): def install(self, spec, prefix):