
We'd like to use a consistent checksum scheme everywhere so that we can: a) incorporate archive checksums into our specs and have a consistent hashing algorithm across all specs. b) index mirrors with a consistent type of checksum, and not one that is dependent on how spack packages are written. - [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
# Copyright 2013-2019 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 Jags(AutotoolsPackage):
|
|
"""JAGS is Just Another Gibbs Sampler. It is a program for analysis of
|
|
Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC)
|
|
simulation not wholly unlike BUGS"""
|
|
|
|
tags = ['mcmc', 'Gibbs sampler']
|
|
|
|
homepage = "http://mcmc-jags.sourceforge.net/"
|
|
url = "https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Source/JAGS-4.2.0.tar.gz"
|
|
|
|
version('4.3.0', sha256='8ac5dd57982bfd7d5f0ee384499d62f3e0bb35b5f1660feb368545f1186371fc')
|
|
version('4.2.0', sha256='af3e9d2896d3e712f99e2a0c81091c6b08f096650af6aa9d0c631c0790409cf7')
|
|
|
|
depends_on('blas')
|
|
depends_on('lapack')
|
|
|
|
def configure_args(self):
|
|
args = ['--with-blas=%s' % self.spec['blas'].libs.ld_flags,
|
|
'--with-lapack=%s' % self.spec['lapack'].libs.ld_flags]
|
|
return args
|