diff options
author | Derick Huth <derickhuth@gmail.com> | 2019-06-27 14:41:06 -0600 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-06-27 13:41:06 -0700 |
commit | 81db89b5e724bc4635817824745e769bebf3c26f (patch) | |
tree | b0aeddc6b64d773eb4da4e303115bb2262b4d9ee /var | |
parent | f5f2b05c5b94854fd954afdc4540ed16adeb1992 (diff) | |
download | spack-81db89b5e724bc4635817824745e769bebf3c26f.tar.gz spack-81db89b5e724bc4635817824745e769bebf3c26f.tar.bz2 spack-81db89b5e724bc4635817824745e769bebf3c26f.tar.xz spack-81db89b5e724bc4635817824745e769bebf3c26f.zip |
New packages: Chill and IEGenLib (#11406)
* Add Chill package
* Add IEGenLib package, a dependency of Chill
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/chill/package.py | 56 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/iegenlib/package.py | 26 |
2 files changed, 82 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/chill/package.py b/var/spack/repos/builtin/packages/chill/package.py new file mode 100644 index 0000000000..fff0471a45 --- /dev/null +++ b/var/spack/repos/builtin/packages/chill/package.py @@ -0,0 +1,56 @@ +# 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 Chill(AutotoolsPackage): + """A polyheadral compiler for autotuning""" + + homepage = "http://github.com/CtopCsUtahEdu/chill" + url = "https://github.com/CtopCsUtahEdu/chill/archive/v0.3.tar.gz" + git = "https://github.com/CtopCsUtahEdu/chill.git" + + maintainers = ['dhuth'] + + version('master', branch='master') + version('0.3', sha256='574b622368a6bfaadbe9c1fa02fabefdc6c006069246f67d299f943b7e1d8aa3') + + depends_on('rose@0.9.10.0 +cxx11 ^boost@1.66.0 cxxstd=11', type='build') + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('iegenlib', type='build') + depends_on('python') + + @run_before('configure') + def bootstrap(self, spec, prefix): + bash = wich('bash') + bash('./bootstrap') + + def setup_environment(self, spack_env, run_env): + rose_home = self.spec['rose'].prefix + boost_home = self.spec['boost'].prefix + iegen_home = self.spec['iegenlib'].prefix + + spack_env.append_path('LD_LIBRARY_PATH', rose_home.lib) + spack_env.append_path('LD_LIBRARY_PATH', boost_home.lib) + spack_env.append_path('LD_LIBRARY_PATH', iegen_home.lib) + + run_env.append_path('LD_LIBRARY_PATH', rose_home.lib) + run_env.append_path('LD_LIBRARY_PATH', boost_home.lib) + run_env.append_path('LD_LIBRARY_PATH', iegen_home.lib) + + spack_env.set('ROSEHOME', rose_home) + spack_env.set('BOOSTHOME', boost_home) + spack_env.set('IEGENHOME', iegen_home) + + def configure_args(self): + args = ['--with-rose={0}'.format(self.spec['rose'].prefix), + '--with-boost={0}'.format(self.spec['boost'].prefix), + '--with-iegen={0}'.format(self.sepc['iegenlib'].prefix)] + + return args diff --git a/var/spack/repos/builtin/packages/iegenlib/package.py b/var/spack/repos/builtin/packages/iegenlib/package.py new file mode 100644 index 0000000000..c139bda26b --- /dev/null +++ b/var/spack/repos/builtin/packages/iegenlib/package.py @@ -0,0 +1,26 @@ +# 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 Iegenlib(AutotoolsPackage): + """Inspector/Executor Generation Library for manipulating sets + and relations with uninterpreted function symbols. """ + + homepage = "http://github.com/CompOpt4Apps/IEGenLib" + git = "https://github.com/CompOpt4Apps/IEGenLib.git" + url = "https://github.com/CompOpt4Apps/IEGenLib/archive/fc479ee6ff01dba26beffc1dc6bacdba03262138.zip" + + maintainers = ['dhuth'] + + version('master', branch='master') + version('2018-07-03', + url="https://github.com/CompOpt4Apps/IEGenLib/archive/fc479ee6ff01dba26beffc1dc6bacdba03262138.zip", + sha256='b4c0b368363fcc1e34b388057cc0940bb87fc336cebb0772fd6055f45009b12b') + + depends_on('cmake@2.6:', type='build') + depends_on('isl') + depends_on('texinfo', type='build') |