diff options
author | miheer vaidya <v.miheer@gmail.com> | 2021-06-28 02:52:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 10:52:45 +0200 |
commit | 90dc90e8d1383252122f65642501de0da8dfbd34 (patch) | |
tree | 2dfefdf172d8a2a8328fd389009f86e9e4f04e78 /var | |
parent | f5ef532bdcffdd8affb7749d589388c6d8094b08 (diff) | |
download | spack-90dc90e8d1383252122f65642501de0da8dfbd34.tar.gz spack-90dc90e8d1383252122f65642501de0da8dfbd34.tar.bz2 spack-90dc90e8d1383252122f65642501de0da8dfbd34.tar.xz spack-90dc90e8d1383252122f65642501de0da8dfbd34.zip |
barvinok: add new package (#24477)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/barvinok/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/barvinok/package.py b/var/spack/repos/builtin/packages/barvinok/package.py new file mode 100644 index 0000000000..783a02ff79 --- /dev/null +++ b/var/spack/repos/builtin/packages/barvinok/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2021 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 Barvinok(AutotoolsPackage): + """barvinok is a library for counting the number of integer points in parametric and + non-parametric polytopes.""" + + homepage = "http://barvinok.gforge.inria.fr" + url = "http://barvinok.gforge.inria.fr/barvinok-0.41.5.tar.bz2" + + version('0.41.5', sha256='e70493318fe76c0c202f98d7861bdf5dda8c4d79c21024af2e04b009ffa79734') + variant('pet', default=False, description="Enable an X toolkit") + + depends_on('gmp') + depends_on('llvm +clang', when='+pet') + depends_on('libyaml', when='+pet') + + def configure_args(self): + spec = self.spec + args = [ + '--with-gmp-prefix={0}'.format(self.spec['gmp'].prefix) + ] + + if '+pet' in spec: + args.append('--with-pet=bundled') + return args |