diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/librom/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/librom/package.py | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/var/spack/repos/builtin/packages/librom/package.py b/var/spack/repos/builtin/packages/librom/package.py index 8793edb069..56423792ca 100644 --- a/var/spack/repos/builtin/packages/librom/package.py +++ b/var/spack/repos/builtin/packages/librom/package.py @@ -11,18 +11,18 @@ class Librom(AutotoolsPackage): """libROM: library for computing large-scale reduced order models""" homepage = "https://github.com/LLNL/libROM" - git = "https://github.com/LLNL/libROM.git" + git = "https://github.com/LLNL/libROM.git" - version('develop', branch='master') + version("develop", branch="master") - depends_on('lapack') - depends_on('mpi') - depends_on('zlib') - depends_on('libszip') - depends_on('hdf5') - depends_on('perl') - depends_on('graphviz') - depends_on('doxygen') + depends_on("lapack") + depends_on("mpi") + depends_on("zlib") + depends_on("libszip") + depends_on("hdf5") + depends_on("perl") + depends_on("graphviz") + depends_on("doxygen") # TODO: replace this with an explicit list of components of Boost, # for instance depends_on('boost +filesystem') @@ -31,30 +31,32 @@ class Librom(AutotoolsPackage): def configure_args(self): spec = self.spec - args = ['--with-lapack={0}'.format(spec['lapack'].prefix), - '--with-lapack-libs={0}'.format(spec['lapack'].libs.ld_flags), - '--with-zlib={0}'.format(spec['zlib'].prefix), - '--with-szlib={0}'.format(spec['libszip'].prefix), - '--with-hdf5={0}'.format(spec['hdf5'].prefix), - '--with-MPICC={0}'.format(spec['mpi'].mpicc), - '--with-mpi-include={0}'.format(spec['mpi'].prefix.include), - '--with-mpi-libs={0}'.format(spec['mpi'].libs.ld_flags), - '--with-perl={0}'.format(spec['perl'].prefix), - '--with-doxygen={0}'.format(spec['doxygen'].prefix)] + args = [ + "--with-lapack={0}".format(spec["lapack"].prefix), + "--with-lapack-libs={0}".format(spec["lapack"].libs.ld_flags), + "--with-zlib={0}".format(spec["zlib"].prefix), + "--with-szlib={0}".format(spec["libszip"].prefix), + "--with-hdf5={0}".format(spec["hdf5"].prefix), + "--with-MPICC={0}".format(spec["mpi"].mpicc), + "--with-mpi-include={0}".format(spec["mpi"].prefix.include), + "--with-mpi-libs={0}".format(spec["mpi"].libs.ld_flags), + "--with-perl={0}".format(spec["perl"].prefix), + "--with-doxygen={0}".format(spec["doxygen"].prefix), + ] return args # TODO(oxberry1@llnl.gov): Submit PR upstream that implements # install phase in autotools def install(self, spec, prefix): mkdirp(prefix.lib) - install('libROM.a', join_path(prefix.lib, 'libROM.a')) + install("libROM.a", join_path(prefix.lib, "libROM.a")) mkdirp(prefix.include) - install('*.h', prefix.include) + install("*.h", prefix.include) mkdirp(prefix.share) - install('libROM_Design_and_Theory.pdf', - join_path(prefix.share, - 'libROM_Design_and_Theory.pdf')) + install( + "libROM_Design_and_Theory.pdf", join_path(prefix.share, "libROM_Design_and_Theory.pdf") + ) - install_tree('docs', prefix.share.docs) + install_tree("docs", prefix.share.docs) |