From 8873fc3a2024677d7970d248825e9c8ba080f985 Mon Sep 17 00:00:00 2001 From: kansakar Date: Wed, 12 Jul 2017 11:23:00 -0500 Subject: Jags: Adding jags defination --- var/spack/repos/builtin/packages/jags/package.py | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 var/spack/repos/builtin/packages/jags/package.py diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py new file mode 100644 index 0000000000..7aa15c876c --- /dev/null +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -0,0 +1,42 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the NOTICE and LICENSE files for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## + +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""" + + 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.2.0', '9e521b3cfb23d3290a8c6bc0b79bf426') + + depends_on('m4', type='build') + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + + depends_on('atlas') -- cgit v1.2.3-70-g09d2 From d930c8d01abef0c772f1f4e2e0dc19ca88903290 Mon Sep 17 00:00:00 2001 From: Alen Kansakar Date: Wed, 12 Jul 2017 11:31:27 -0500 Subject: Jags: Fixing problems found by flack8 --- var/spack/repos/builtin/packages/jags/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py index 7aa15c876c..95d25a1caf 100644 --- a/var/spack/repos/builtin/packages/jags/package.py +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -27,10 +27,12 @@ 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""" + """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""" homepage = "http://mcmc-jags.sourceforge.net/" - url = "https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Source/JAGS-4.2.0.tar.gz" + url = "https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Source/JAGS-4.2.0.tar.gz" version('4.2.0', '9e521b3cfb23d3290a8c6bc0b79bf426') -- cgit v1.2.3-70-g09d2 From 6ce33d7773cb65b0664a67b409e718eaa1b2e06d Mon Sep 17 00:00:00 2001 From: Alen Kansakar Date: Wed, 12 Jul 2017 14:52:54 -0500 Subject: Jags: Changing depends on to only include lapack --- var/spack/repos/builtin/packages/jags/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py index 95d25a1caf..07d7d5efe2 100644 --- a/var/spack/repos/builtin/packages/jags/package.py +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -41,4 +41,4 @@ class Jags(AutotoolsPackage): depends_on('automake', type='build') depends_on('libtool', type='build') - depends_on('atlas') + depends_on('netlib-lapack') -- cgit v1.2.3-70-g09d2 From 29fd8961794df3bf3c526739ed81704cac4d8e14 Mon Sep 17 00:00:00 2001 From: Alen Kansakar Date: Thu, 13 Jul 2017 09:48:30 -0500 Subject: jags: Adding atlas as it depends on atlas --- var/spack/repos/builtin/packages/jags/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py index 07d7d5efe2..95d25a1caf 100644 --- a/var/spack/repos/builtin/packages/jags/package.py +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -41,4 +41,4 @@ class Jags(AutotoolsPackage): depends_on('automake', type='build') depends_on('libtool', type='build') - depends_on('netlib-lapack') + depends_on('atlas') -- cgit v1.2.3-70-g09d2 From c1f3ed6f67da1bfcc05346015616dfd0d247fee5 Mon Sep 17 00:00:00 2001 From: Alen Kansakar Date: Tue, 8 Aug 2017 14:21:08 -0500 Subject: Removing blanks. --- var/spack/repos/builtin/packages/jags/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py index 95d25a1caf..cccab17bf1 100644 --- a/var/spack/repos/builtin/packages/jags/package.py +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -29,7 +29,7 @@ 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""" + simulation not wholly unlike BUGS""" homepage = "http://mcmc-jags.sourceforge.net/" url = "https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Source/JAGS-4.2.0.tar.gz" -- cgit v1.2.3-70-g09d2 From cc3d8bacd7982dd190bc1bac54d569499b8d0b1d Mon Sep 17 00:00:00 2001 From: las_thoma15 Date: Thu, 31 Aug 2017 09:37:24 -0500 Subject: adding config args and virtual dependencies --- var/spack/repos/builtin/packages/jags/package.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/var/spack/repos/builtin/packages/jags/package.py b/var/spack/repos/builtin/packages/jags/package.py index cccab17bf1..2909f24e9d 100644 --- a/var/spack/repos/builtin/packages/jags/package.py +++ b/var/spack/repos/builtin/packages/jags/package.py @@ -22,7 +22,6 @@ # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## - from spack import * @@ -36,9 +35,10 @@ class Jags(AutotoolsPackage): version('4.2.0', '9e521b3cfb23d3290a8c6bc0b79bf426') - depends_on('m4', type='build') - depends_on('autoconf', type='build') - depends_on('automake', type='build') - depends_on('libtool', type='build') + depends_on('blas') + depends_on('lapack') - depends_on('atlas') + def configure_args(self): + args = ['--with-blas=-L%s' % self.spec['blas'].prefix.lib, + '--with-lapack=-L%s' % self.spec['lapack'].prefix.lib] + return args -- cgit v1.2.3-70-g09d2